Commit 479dd957 by wancheng

app生产订单更新

parent d9d74eca
......@@ -470,4 +470,85 @@ public class ServiceHPMT002 extends ServiceBase {
return resultMap;
}
}
//获取生产订单项目下拉框信息
/**
* 生产订单-获取生产订单项目下拉框信息
*
* @param inInfo
* @return
*/
public Map scOrderPmList(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.scOrderPmList", 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 scOrderPrdtList(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.scOrderPrdtList", 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 scOrderPartList(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.scOrderPartList", 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;
}
}
}
......@@ -386,4 +386,21 @@
a.PROJ_NAME LIKE CONCAT('%', #projName#, '%')
</isNotEmpty>
</select>
<select id="scOrderPmList" resultClass="java.util.HashMap">
select distinct PROJ_CODE as "projCode",PROJ_NAME as "projName"
from hpjx.t_hpsc005
where COMPANY_CODE = #companyCode#
</select>
<select id="scOrderPrdtList" resultClass="java.util.HashMap">
select distinct PRDT_CODE as "prdtCode",PRDT_NAME as "prdtName" from hpjx.t_hpsc005
where PROJ_CODE = #projCode# and COMPANY_CODE = #companyCode#
</select>
<select id="scOrderPartList" resultClass="java.util.HashMap">
select distinct PART_CODE as "partCode",PART_NAME as "partName" from hpjx.t_hpsc005
where PROJ_CODE = #projCode# and COMPANY_CODE = #companyCode# and PRDT_CODE = #prdtCode#
</select>
</sqlMap>
......@@ -74,6 +74,9 @@
<isNotEmpty prepend=" AND " property="prdtCode">
PRDT_CODE = #prdtCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partCode">
PART_CODE = #partCode#
</isNotEmpty>
<isNotEmpty prepend=" AND " property="partName">
PART_NAME LIKE CONCAT('%', #partName#, '%')
</isNotEmpty>
......
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