Browse Source

Merge branch 'dev' of depot-qinghai/depot-business-qinghai into master

gdd 6 months ago
parent
commit
4a383d5f42

+ 7 - 1
src/main/java/com/chinaitop/depot/business/service/impl/BusinessContractServiceImpl.java

@@ -126,7 +126,10 @@ public class BusinessContractServiceImpl implements BusinessContractService {
126
         // 设置审批状态为,审批待提交.
126
         // 设置审批状态为,审批待提交.
127
         contract.setAuditState(AuditType.UNSUBMIT.getAuditCode());
127
         contract.setAuditState(AuditType.UNSUBMIT.getAuditCode());
128
         // 创建时间.
128
         // 创建时间.
129
-        contract.setCreateTime(new Date());
129
+        Date date = new Date();
130
+        contract.setCreateTime(date);
131
+        contract.setUpdateTime(date);
132
+        contract.setUpdatetime(date);
130
         // 设置登录人信息.
133
         // 设置登录人信息.
131
         contract.setCreater(realName);
134
         contract.setCreater(realName);
132
         contract.setCreaterId(userId);
135
         contract.setCreaterId(userId);
@@ -183,6 +186,9 @@ public class BusinessContractServiceImpl implements BusinessContractService {
183
      * 修改.
186
      * 修改.
184
      */
187
      */
185
     public void update(BusinessContract contract, List<BusinessStoreWareDetail> storeWareDetailList) {
188
     public void update(BusinessContract contract, List<BusinessStoreWareDetail> storeWareDetailList) {
189
+    	Date date = new Date();
190
+        contract.setUpdateTime(date);
191
+        contract.setUpdatetime(date);
186
         contractMapper.updateByPrimaryKey(contract);
192
         contractMapper.updateByPrimaryKey(contract);
187
        /* // 修改fileIds对应附件的bid为当前计划的id.
193
        /* // 修改fileIds对应附件的bid为当前计划的id.
188
         businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"contract");
194
         businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"contract");

+ 3 - 0
src/main/java/com/chinaitop/depot/pg/mapper/BusinessPgGopsPlanMapper.xml

@@ -407,6 +407,9 @@
407
     LEFT JOIN depot_qh.org_info d on a.org_id = d.org_id
407
     LEFT JOIN depot_qh.org_info d on a.org_id = d.org_id
408
     LEFT JOIN province_all.biz_unit_info b on d.unit_info_id = b.id
408
     LEFT JOIN province_all.biz_unit_info b on d.unit_info_id = b.id
409
     where 1=1
409
     where 1=1
410
+    <if test="pageParam.orgId !=null and pageParam.orgId!=''">
411
+      and a.org_id =#{pageParam.orgId}
412
+    </if>
410
     <if test="pageParam.unitName !=null and pageParam.unitName!=''">
413
     <if test="pageParam.unitName !=null and pageParam.unitName!=''">
411
       and b.dwmc like concat("%",#{pageParam.unitName},"%")
414
       and b.dwmc like concat("%",#{pageParam.unitName},"%")
412
     </if>
415
     </if>

+ 3 - 0
src/main/java/com/chinaitop/depot/pg/param/BusinessPgGopsPlanPageParam.java

@@ -19,6 +19,9 @@ public class BusinessPgGopsPlanPageParam {
19
     @ApiModelProperty(value = "库区名称")
19
     @ApiModelProperty(value = "库区名称")
20
     private String orgName;
20
     private String orgName;
21
 
21
 
22
+    @ApiModelProperty(value = "库区Id")
23
+    private String orgId;
24
+
22
     @ApiModelProperty(value = "企业名称")
25
     @ApiModelProperty(value = "企业名称")
23
     private String unitName;
26
     private String unitName;
24
     /** 性质id */
27
     /** 性质id */

+ 4 - 3
src/main/java/com/chinaitop/depot/rp/service/impl/BusinessRpReportServiceImpl.java

@@ -121,12 +121,13 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
121
         BusinessRpInboundExample businessRpInboundExample =new BusinessRpInboundExample();
121
         BusinessRpInboundExample businessRpInboundExample =new BusinessRpInboundExample();
122
        businessRpReport.setUpdateTime(new Date());
122
        businessRpReport.setUpdateTime(new Date());
123
         if(businessRpReport.getStatus()==0){
123
         if(businessRpReport.getStatus()==0){
124
-            if(businessRpReport.getId()!=null){//修改
124
+            if(businessRpReport.getId()!=null){
125
                 businessRpReportMapper.updateByPrimaryKeySelective(businessRpReport);
125
                 businessRpReportMapper.updateByPrimaryKeySelective(businessRpReport);
126
                 businessRpInboundMapper.deleteByReportId(businessRpReport.getId());
126
                 businessRpInboundMapper.deleteByReportId(businessRpReport.getId());
127
                 businessRpOutboundMapper.deleteByReportId(businessRpReport.getId());
127
                 businessRpOutboundMapper.deleteByReportId(businessRpReport.getId());
128
                 List<BusinessRpInbound> inList =businessRpReport.getBusinessRpInboundList();
128
                 List<BusinessRpInbound> inList =businessRpReport.getBusinessRpInboundList();
129
                 for (BusinessRpInbound br: inList) {
129
                 for (BusinessRpInbound br: inList) {
130
+
130
                     br.setCreatedate(new Date());
131
                     br.setCreatedate(new Date());
131
                     br.setUpdatedate(new Date());
132
                     br.setUpdatedate(new Date());
132
                     br.setRpReportId(businessRpReport.getId());
133
                     br.setRpReportId(businessRpReport.getId());
@@ -139,7 +140,7 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
139
                     ou.setRpReportId(businessRpReport.getId());
140
                     ou.setRpReportId(businessRpReport.getId());
140
                     businessRpOutboundMapper.insertSelective(ou);
141
                     businessRpOutboundMapper.insertSelective(ou);
141
                 }
142
                 }
142
-            }else{//保存
143
+            }else{
143
                 businessRpReport.setCreateTime(new Date());
144
                 businessRpReport.setCreateTime(new Date());
144
                 businessRpReport.setUpdateTime(new Date());
145
                 businessRpReport.setUpdateTime(new Date());
145
                 businessRpReportMapper.insert(businessRpReport);
146
                 businessRpReportMapper.insert(businessRpReport);
@@ -148,7 +149,7 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
148
                     br.setCreatedate(new Date());
149
                     br.setCreatedate(new Date());
149
                     br.setUpdatedate(new Date());
150
                     br.setUpdatedate(new Date());
150
                     br.setRpReportId(businessRpReport.getId());
151
                     br.setRpReportId(businessRpReport.getId());
151
-                    businessRpInboundMapper.insertSelective1(br);
152
+                    businessRpInboundMapper.insertSelective(br);
152
                 }
153
                 }
153
                 List<BusinessRpOutbound> outlist =businessRpReport.getBusinessRpOutboundList();
154
                 List<BusinessRpOutbound> outlist =businessRpReport.getBusinessRpOutboundList();
154
                 for (BusinessRpOutbound ou: outlist) {
155
                 for (BusinessRpOutbound ou: outlist) {