Commit dfa644d0 by wancheng

项目档案概况

parent a0b7c179
...@@ -454,9 +454,11 @@ public class ServiceHPMT002 extends ServiceBase { ...@@ -454,9 +454,11 @@ public class ServiceHPMT002 extends ServiceBase {
try { try {
String companyCode = inInfo.getString("companyCode"); String companyCode = inInfo.getString("companyCode");
String projStatus = inInfo.getString("projStatus"); String projStatus = inInfo.getString("projStatus");
String projName = inInfo.getString("projName");
Map sqlMap = new HashMap(); Map sqlMap = new HashMap();
sqlMap.put("companyCode", companyCode); sqlMap.put("companyCode", companyCode);
sqlMap.put("projStatus", projStatus); sqlMap.put("projStatus", projStatus);
sqlMap.put("projName", projName);
List<Map> rows = this.dao.query("HPMT002.pmStatusList", sqlMap); List<Map> rows = this.dao.query("HPMT002.pmStatusList", sqlMap);
resultMap.put("result",rows); resultMap.put("result",rows);
resultMap.put("status",EiConstant.STATUS_SUCCESS); resultMap.put("status",EiConstant.STATUS_SUCCESS);
......
...@@ -382,5 +382,8 @@ ...@@ -382,5 +382,8 @@
<isNotEmpty prepend=" AND " property="projStatus"> <isNotEmpty prepend=" AND " property="projStatus">
b.PROJ_STATUS = #projStatus# b.PROJ_STATUS = #projStatus#
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="projName">
a.PROJ_NAME LIKE CONCAT('%', #projName#, '%')
</isNotEmpty>
</select> </select>
</sqlMap> </sqlMap>
...@@ -205,7 +205,7 @@ ...@@ -205,7 +205,7 @@
<select id="appQuery" parameterClass="java.util.HashMap" resultClass="com.baosight.hpjx.hp.sc.domain.HPSC002"> <select id="appQuery" parameterClass="java.util.HashMap" resultClass="com.baosight.hpjx.hp.sc.domain.HPSC002">
SELECT SELECT
<include refid="column1"/> <include refid="column1"/>
,ifnull(C.CKNUM,0) as cknum,ifnull(C.RKNUM,0) as rknum ,ifnull(C.CKNUM,0) as "cknum",ifnull(C.RKNUM,0) as "rknum",C.PROJ_STATUS as "proj_status"
FROM hpjx.t_hpsc002 A FROM hpjx.t_hpsc002 A
LEFT JOIN hpjx.t_hpsc005 B on A.ID = B.MAT_ID LEFT JOIN hpjx.t_hpsc005 B on A.ID = B.MAT_ID
LEFT JOIN (select A.COMPANY_CODE,A.PROJ_CODE,A.PRDT_CODE,A.PARENT_PRDT_NAME,sum(ifnull(A.NUM,0)) as JHNUM,sum(ifnull(A.ACTUAL_COMPLETION_NUM,0)) as RKNUM,sum(ifnull(B.AMOUNT,0)) as CKNUM, LEFT JOIN (select A.COMPANY_CODE,A.PROJ_CODE,A.PRDT_CODE,A.PARENT_PRDT_NAME,sum(ifnull(A.NUM,0)) as JHNUM,sum(ifnull(A.ACTUAL_COMPLETION_NUM,0)) as RKNUM,sum(ifnull(B.AMOUNT,0)) as CKNUM,
......
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