|
@@ -21,10 +21,9 @@ import com.chinaitop.depot.business.mapper.BusinessDeliveryStorageNoticeMapper;
|
21
|
21
|
import com.chinaitop.depot.business.model.BusinessApproval;
|
22
|
22
|
import com.chinaitop.depot.business.model.BusinessContract;
|
23
|
23
|
import com.chinaitop.depot.business.model.BusinessContractExample;
|
|
24
|
+import com.chinaitop.depot.business.model.BusinessContractReceive;
|
24
|
25
|
import com.chinaitop.depot.business.model.BusinessDeliveryStorageNotice;
|
25
|
26
|
import com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample;
|
26
|
|
-import com.chinaitop.depot.business.model.BusinessLading;
|
27
|
|
-import com.chinaitop.depot.business.model.BusinessLadingExample;
|
28
|
27
|
import com.chinaitop.depot.business.model.BusinessDeliveryStorageNoticeExample.Criteria;
|
29
|
28
|
import com.chinaitop.depot.business.model.BusinessPlan;
|
30
|
29
|
import com.chinaitop.depot.business.model.BusinessStoreWareDetail;
|
|
@@ -35,12 +34,14 @@ import com.chinaitop.depot.business.model.enums.StoreWareType;
|
35
|
34
|
import com.chinaitop.depot.business.model.enums.TaskType;
|
36
|
35
|
import com.chinaitop.depot.business.model.vo.BusinessDeliveryStorageNoticeAuditVO;
|
37
|
36
|
import com.chinaitop.depot.business.service.BusinessApprovalService;
|
|
37
|
+import com.chinaitop.depot.business.service.BusinessContractReceiveService;
|
38
|
38
|
import com.chinaitop.depot.business.service.BusinessContractService;
|
39
|
39
|
import com.chinaitop.depot.business.service.BusinessDeliveryStorageNoticeService;
|
40
|
40
|
import com.chinaitop.depot.business.service.BusinessLadingService;
|
41
|
41
|
import com.chinaitop.depot.business.service.BusinessPlanService;
|
42
|
42
|
import com.chinaitop.depot.business.service.BusinessStoreWareDetailService;
|
43
|
43
|
import com.chinaitop.depot.business.service.FeignAgileService;
|
|
44
|
+import com.chinaitop.depot.business.service.ReceiveNoticeService;
|
44
|
45
|
import com.chinaitop.depot.business.service.UserInfoService;
|
45
|
46
|
import com.github.pagehelper.PageHelper;
|
46
|
47
|
import com.github.pagehelper.PageInfo;
|
|
@@ -70,6 +71,10 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
|
70
|
71
|
private BusinessApprovalService businessApprovalService;
|
71
|
72
|
@Resource
|
72
|
73
|
private UserInfoService userInfoService;
|
|
74
|
+ @Resource
|
|
75
|
+ private ReceiveNoticeService receiveNoticeService;
|
|
76
|
+ @Resource
|
|
77
|
+ private BusinessContractReceiveService businessContractReceiveService;
|
73
|
78
|
|
74
|
79
|
// 入库通知单枚举id,出入库系统使用.
|
75
|
80
|
private static Integer STORAGENOTICEENUMID = 2816;
|
|
@@ -388,11 +393,34 @@ public class BusinessDeliveryStorageNoticeServiceImpl implements BusinessDeliver
|
388
|
393
|
approval.setTaskId(taskId);
|
389
|
394
|
|
390
|
395
|
businessApprovalService.add(approval);
|
|
396
|
+
|
|
397
|
+ //符合以下条件,说明是储备粮下的入库通知单
|
|
398
|
+ if ("1".equals(businessDeliveryStorageNoticeB.getBillType()) && "1".equals(businessDeliveryStorageNoticeB.getCreateUnit())) {
|
|
399
|
+ //给市平台推送合同被引用的消息
|
|
400
|
+ pushHtStatus(businessDeliveryStorageNoticeB.getContractBid());
|
|
401
|
+ }
|
391
|
402
|
|
392
|
403
|
return returnMap;
|
393
|
404
|
}
|
394
|
|
-
|
395
|
|
- /**
|
|
405
|
+
|
|
406
|
+ private void pushHtStatus(Integer id) {
|
|
407
|
+ try {
|
|
408
|
+ BusinessContractReceive contractReceive = businessContractReceiveService.findbyParmaryKey(id);
|
|
409
|
+ if (null != contractReceive) {
|
|
410
|
+ //businessNoticeReceive.getHtbh(), businessNoticeReceive.getOrgId()
|
|
411
|
+ JSONObject object = new JSONObject();
|
|
412
|
+ object.put("htbh", contractReceive.getHtbh());
|
|
413
|
+ object.put("orgId", contractReceive.getOrgId());
|
|
414
|
+ receiveNoticeService.pushHtStatus(object.toString());
|
|
415
|
+ }
|
|
416
|
+ } catch (Exception e) {
|
|
417
|
+ // TODO Auto-generated catch block
|
|
418
|
+ e.printStackTrace();
|
|
419
|
+ }
|
|
420
|
+ }
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+ /**
|
396
|
424
|
* 获取审批列表.
|
397
|
425
|
*/
|
398
|
426
|
public List<BusinessDeliveryStorageNoticeAuditVO> getApprovalList(Map<String, Object> paramMap) {
|