Commit 1d211d21 by shiwenbo

修改合同数量统计sql,排除掉版本号是999的合同

parent 536b9ba9
......@@ -207,7 +207,7 @@ public class ContractDao {
hql.append("sum(case when m.contractState='EXECUTING' then 1 else 0 end), ");//执行中
hql.append("sum(case when m.contractState='COMPLETED' then 1 else 0 end) ");//已完成
// hql.append("sum(case when m.contract_state=\"MODIFIED\" then 1 else 0 end) ");//已变更
hql.append("from ").append(ContractConstant.ENTITY_CONTRACT).append(" as m where 1=1 ");
hql.append("from ").append(ContractConstant.ENTITY_CONTRACT).append(" as m where 1=1 and m.contractVersion != 999 ");
hql.append("and (discard is null or discard = 0) ");
if(regionalCompany.getString("type").equals(OrganizationTypeEnum.REGIONAL_COMPANY.name())) {
hql.append("and regionalCompany.id=:regionalCompany ");
......
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