Commit e7723a96 by wancheng

app生产入库更新

parent 479dd957
......@@ -58,6 +58,9 @@
<isNotEmpty prepend=" AND " property="inventCode">
INVENT_CODE = #inventCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventCodes">
INVENT_CODE IN <iterate close=")" open="(" conjunction="," property="inventCodes">#inventCodes[]#</iterate>
</isNotEmpty>
<isNotEmpty prepend=" AND " property="inventName">
INVENT_NAME = #inventName#
</isNotEmpty>
......
......@@ -551,4 +551,110 @@ public class ServiceHPMT002 extends ServiceBase {
return resultMap;
}
}
//获取领料单存货下拉框信息
/**
* 生产管理-滚动图片
*
* @param inInfo
* @return
*/
public Map kcPickInventList(EiInfo inInfo) {
Map resultMap = new HashMap();
try {
String companyCode = inInfo.getString("companyCode");
Map sqlMap = new HashMap();
sqlMap.put("companyCode", companyCode);
List<Map> rows = this.dao.query("HPMT002.kcPickInventList", sqlMap);
resultMap.put("result",rows);
resultMap.put("status",EiConstant.STATUS_SUCCESS);
resultMap.put("message","SUCCESS");
return resultMap;
} catch (Exception e) {
resultMap.put("status", 500);
resultMap.put("message",LogUtils.getMsg(e));
return resultMap;
}
}
/**
* 生产入库-获取生产订单项目下拉框信息
*
* @param inInfo
* @return
*/
public Map kcEnterPmList(EiInfo inInfo) {
Map resultMap = new HashMap();
try {
String companyCode = inInfo.getString("companyCode");
Map sqlMap = new HashMap();
sqlMap.put("companyCode", companyCode);
List<Map> rows = this.dao.query("HPMT002.kcEnterPmList", sqlMap);
resultMap.put("result",rows);
resultMap.put("status",EiConstant.STATUS_SUCCESS);
resultMap.put("message","SUCCESS");
return resultMap;
} catch (Exception e) {
resultMap.put("status", 500);
resultMap.put("message",LogUtils.getMsg(e));
return resultMap;
}
}
/**
* 生产入库--获取生产订单部件下拉框信息
*
* @param inInfo
* @return
*/
public Map kcEnterPrdtList(EiInfo inInfo) {
Map resultMap = new HashMap();
try {
String companyCode = inInfo.getString("companyCode");
String projCode = inInfo.getString("projCode");
Map sqlMap = new HashMap();
sqlMap.put("companyCode", companyCode);
sqlMap.put("projCode", projCode);
List<Map> rows = this.dao.query("HPMT002.kcEnterPrdtList", sqlMap);
resultMap.put("result",rows);
resultMap.put("status",EiConstant.STATUS_SUCCESS);
resultMap.put("message","SUCCESS");
return resultMap;
} catch (Exception e) {
resultMap.put("status", 500);
resultMap.put("message",LogUtils.getMsg(e));
return resultMap;
}
}
/**
* 生产入库--滚动图片
*
* @param inInfo
* @return
*/
public Map kcEnterPartList(EiInfo inInfo) {
Map resultMap = new HashMap();
try {
String companyCode = inInfo.getString("companyCode");
String projCode = inInfo.getString("projCode");
String prdtCode = inInfo.getString("prdtCode");
Map sqlMap = new HashMap();
sqlMap.put("companyCode", companyCode);
sqlMap.put("projCode", projCode);
sqlMap.put("prdtCode", prdtCode);
List<Map> rows = this.dao.query("HPMT002.kcEnterPartList", sqlMap);
resultMap.put("result",rows);
resultMap.put("status",EiConstant.STATUS_SUCCESS);
resultMap.put("message","SUCCESS");
return resultMap;
} catch (Exception e) {
resultMap.put("status", 500);
resultMap.put("message",LogUtils.getMsg(e));
return resultMap;
}
}
}
......@@ -403,4 +403,35 @@
where PROJ_CODE = #projCode# and COMPANY_CODE = #companyCode# and PRDT_CODE = #prdtCode#
</select>
<select id="kcPickInventList" resultClass="java.util.HashMap">
select distinct INVENT_CODE as "inventCode",INVENT_NAME as "inventName"
from hpjx.T_HPKC010
where COMPANY_CODE = #companyCode# and AMOUNT != 0
</select>
<select id="kcEnterPmList" resultClass="java.util.HashMap">
select distinct A.PROJ_CODE as "projCode",A.PROJ_NAME as "projName"
FROM HPJX.T_HPSC005 A
INNER JOIN HPJX.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where A.COMPANY_CODE = #companyCode# AND B.NUM - B.COMPLETE_NUM > 0
AND B.ORG_NO != 'R24050801'
</select>
<select id="kcEnterPrdtList" resultClass="java.util.HashMap">
select distinct A.PRDT_CODE as "prdtCode",A.PRDT_NAME as "prdtName"
FROM HPJX.T_HPSC005 A
INNER JOIN HPJX.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where A.PROJ_CODE = #projCode# and A.COMPANY_CODE = #companyCode#
AND B.NUM - B.COMPLETE_NUM > 0 AND B.ORG_NO != 'R24050801'
</select>
<select id="kcEnterPartList" resultClass="java.util.HashMap">
select distinct A.PART_CODE as "partCode",A.PART_NAME as "partName"
FROM HPJX.T_HPSC005 A
INNER JOIN HPJX.T_HPSC005A B ON A.PROD_ORDER_NO = B.PROD_ORDER_NO
where A.PROJ_CODE = #projCode# and A.COMPANY_CODE = #companyCode#
and A.PRDT_CODE = #prdtCode# AND B.NUM - B.COMPLETE_NUM > 0 AND B.ORG_NO != 'R24050801'
</select>
</sqlMap>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment