| | |
| | | package com.ld.igds.check; |
| | | |
| | | import com.bstek.bdf2.core.orm.hibernate.HibernateDao; |
| | | import com.ld.igds.check.dto.CheckItemData; |
| | | import com.ld.igds.check.dto.CheckUpdateResult; |
| | | import com.ld.igds.check.service.CoreCheckStandardService; |
| | | import com.ld.igds.models.*; |
| | | import com.ld.igds.util.ContextUtil; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 检验项 ---- 管理业务 |
| | |
| | | * @author: chen |
| | | */ |
| | | @Component(CheckStandardManager.BEAN_ID) |
| | | public class CheckStandardManager { |
| | | public class CheckStandardManager extends HibernateDao { |
| | | |
| | | public static final String BEAN_ID = "check.checkStandardManager"; |
| | | |
| | |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /************省质检报告检验项**************/ |
| | | |
| | | /** |
| | | * 大豆 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public List<CheckItemDd> findDataDd(Map<String, Object> param){ |
| | | String hql = " from " + CheckItemDd.class.getName() |
| | | + " where 1 =1"; |
| | | |
| | | Map<String,Object> args = new HashMap<String,Object>(); |
| | | if(null != param){ |
| | | String str = (String) param.get("qlyOrgReportId"); |
| | | if (StringUtils.isNotEmpty(str)) { |
| | | hql += " and qlyOrgReportId =:qlyOrgReportId"; |
| | | args.put("qlyOrgReportId", str); |
| | | } |
| | | } |
| | | hql += " order by qlyOrgReportSoybeanId"; |
| | | return this.query(hql, args); |
| | | } |
| | | |
| | | /** |
| | | * 大米 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public List<CheckItemDm> findDataDm(Map<String, Object> param){ |
| | | String hql = " from " + CheckItemDm.class.getName() |
| | | + " where 1 =1"; |
| | | |
| | | Map<String,Object> args = new HashMap<String,Object>(); |
| | | if(null != param){ |
| | | String str = (String) param.get("qlyOrgReportId"); |
| | | if (StringUtils.isNotEmpty(str)) { |
| | | hql += " and qlyOrgReportId =:qlyOrgReportId"; |
| | | args.put("qlyOrgReportId", str); |
| | | } |
| | | } |
| | | hql += " order by qlyOrgReportRiceId"; |
| | | return this.query(hql, args); |
| | | } |
| | | |
| | | /** |
| | | * 大米 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public List<CheckItemXmf> findDataXmf(Map<String, Object> param){ |
| | | String hql = " from " + CheckItemXmf.class.getName() |
| | | + " where 1 =1"; |
| | | |
| | | Map<String,Object> args = new HashMap<String,Object>(); |
| | | if(null != param){ |
| | | String str = (String) param.get("qlyOrgReportId"); |
| | | if (StringUtils.isNotEmpty(str)) { |
| | | hql += " and qlyOrgReportId =:qlyOrgReportId"; |
| | | args.put("qlyOrgReportId", str); |
| | | } |
| | | } |
| | | hql += " order by qlyOrgReportNoodlesId"; |
| | | return this.query(hql, args); |
| | | } |
| | | |
| | | /** |
| | | * 大米 |
| | | * @param param |
| | | * @return |
| | | */ |
| | | public List<CheckItemSyy> findDataSyy(Map<String, Object> param){ |
| | | String hql = " from " + CheckItemSyy.class.getName() |
| | | + " where 1 =1"; |
| | | |
| | | Map<String,Object> args = new HashMap<String,Object>(); |
| | | if(null != param){ |
| | | String str = (String) param.get("qlyOrgReportId"); |
| | | if (StringUtils.isNotEmpty(str)) { |
| | | hql += " and qlyOrgReportId =:qlyOrgReportId"; |
| | | args.put("qlyOrgReportId", str); |
| | | } |
| | | } |
| | | hql += " order by qlyOrgReportOilId"; |
| | | return this.query(hql, args); |
| | | } |
| | | |
| | | } |