d93e826b 康伟

kangwei:合同、入库、结算审批都增加消息推送提醒功能

        移动端也需要添加
1 个父辈 fc1d58f9
...@@ -134,6 +134,11 @@ public class ERPPurchaseContractServiceImpl extends ServiceImpl<ERPPurchaseContr ...@@ -134,6 +134,11 @@ public class ERPPurchaseContractServiceImpl extends ServiceImpl<ERPPurchaseContr
134 134
135 purchaseContractVO.setPurchaseMoney( purchaseMoney ) ; 135 purchaseContractVO.setPurchaseMoney( purchaseMoney ) ;
136 this.baseMapper.updateById(purchaseContractVO ) ; 136 this.baseMapper.updateById(purchaseContractVO ) ;
137 if("1".equals( purchaseContractVO.getStatus() )){
138 //发送信息
139 String roleId = configService.queryValueByKey("TGHT_SP_ROLE_ID");
140 smsService.pushMsgNoProcessByRoleId("统购合同审批","有统购合同["+purchaseContractVO.getContractName()+"]需要审批审批",roleId,"PurchaseContract");
141 }
137 } 142 }
138 143
139 /** 144 /**
...@@ -159,6 +164,12 @@ public class ERPPurchaseContractServiceImpl extends ServiceImpl<ERPPurchaseContr ...@@ -159,6 +164,12 @@ public class ERPPurchaseContractServiceImpl extends ServiceImpl<ERPPurchaseContr
159 int count = this.baseMapper.updateById( purchaseContractVO ); 164 int count = this.baseMapper.updateById( purchaseContractVO );
160 165
161 purchaseMaterialMapper.changePurchaseContract( purchaseContractVO.getId(),purchaseContractVO.getUseFlag()) ; 166 purchaseMaterialMapper.changePurchaseContract( purchaseContractVO.getId(),purchaseContractVO.getUseFlag()) ;
167
168 if("1".equals( purchaseContractVO.getStatus() )){
169 //发送信息
170 String roleId = configService.queryValueByKey("TGHT_SP_ROLE_ID");
171 smsService.pushMsgNoProcessByRoleId("统购合同审批","有统购合同["+purchaseContractVO.getContractName()+"]需要审批审批",roleId,"PurchaseContract");
172 }
162 return count > 0 ? true :false; 173 return count > 0 ? true :false;
163 } 174 }
164 /*** 175 /***
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!