| | |
| | | import com.bstek.bdf2.core.orm.hibernate.HibernateDao; |
| | | import com.bstek.dorado.data.provider.Page; |
| | | import com.ld.igds.m.InoutManageUtil; |
| | | import com.ld.igds.models.MContract; |
| | | import com.ld.igds.models.InoutContract; |
| | | import com.ld.igds.util.ContextUtil; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.hibernate.Session; |
| | |
| | | @Component |
| | | public class HContractManageService extends HibernateDao { |
| | | |
| | | public void pageContract(Page<MContract> page, Map<String, Object> param) |
| | | public void pageContract(Page<InoutContract> page, Map<String, Object> param) |
| | | throws Exception { |
| | | String hql = " from " + MContract.class.getName() |
| | | String hql = " from " + InoutContract.class.getName() |
| | | + " where companyId =:companyId and deptId =:deptId"; |
| | | |
| | | Map<String, Object> args = new HashMap<String, Object>(); |
| | |
| | | } |
| | | |
| | | |
| | | public void saveContract(MContract data) { |
| | | public void saveContract(InoutContract data) { |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | public String delContract(MContract data) { |
| | | public String delContract(InoutContract data) { |
| | | Session session = this.getSessionFactory().openSession(); |
| | | try { |
| | | if (null != data.getId()) { |