Преглед на файлове

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

gdd преди 6 месеца
родител
ревизия
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 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 134
         contract.setCreater(realName);
132 135
         contract.setCreaterId(userId);
@@ -183,6 +186,9 @@ public class BusinessContractServiceImpl implements BusinessContractService {
183 186
      * 修改.
184 187
      */
185 188
     public void update(BusinessContract contract, List<BusinessStoreWareDetail> storeWareDetailList) {
189
+    	Date date = new Date();
190
+        contract.setUpdateTime(date);
191
+        contract.setUpdatetime(date);
186 192
         contractMapper.updateByPrimaryKey(contract);
187 193
        /* // 修改fileIds对应附件的bid为当前计划的id.
188 194
         businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"contract");

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

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

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

@@ -19,6 +19,9 @@ public class BusinessPgGopsPlanPageParam {
19 19
     @ApiModelProperty(value = "库区名称")
20 20
     private String orgName;
21 21
 
22
+    @ApiModelProperty(value = "库区Id")
23
+    private String orgId;
24
+
22 25
     @ApiModelProperty(value = "企业名称")
23 26
     private String unitName;
24 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 121
         BusinessRpInboundExample businessRpInboundExample =new BusinessRpInboundExample();
122 122
        businessRpReport.setUpdateTime(new Date());
123 123
         if(businessRpReport.getStatus()==0){
124
-            if(businessRpReport.getId()!=null){//修改
124
+            if(businessRpReport.getId()!=null){
125 125
                 businessRpReportMapper.updateByPrimaryKeySelective(businessRpReport);
126 126
                 businessRpInboundMapper.deleteByReportId(businessRpReport.getId());
127 127
                 businessRpOutboundMapper.deleteByReportId(businessRpReport.getId());
128 128
                 List<BusinessRpInbound> inList =businessRpReport.getBusinessRpInboundList();
129 129
                 for (BusinessRpInbound br: inList) {
130
+
130 131
                     br.setCreatedate(new Date());
131 132
                     br.setUpdatedate(new Date());
132 133
                     br.setRpReportId(businessRpReport.getId());
@@ -139,7 +140,7 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
139 140
                     ou.setRpReportId(businessRpReport.getId());
140 141
                     businessRpOutboundMapper.insertSelective(ou);
141 142
                 }
142
-            }else{//保存
143
+            }else{
143 144
                 businessRpReport.setCreateTime(new Date());
144 145
                 businessRpReport.setUpdateTime(new Date());
145 146
                 businessRpReportMapper.insert(businessRpReport);
@@ -148,7 +149,7 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
148 149
                     br.setCreatedate(new Date());
149 150
                     br.setUpdatedate(new Date());
150 151
                     br.setRpReportId(businessRpReport.getId());
151
-                    businessRpInboundMapper.insertSelective1(br);
152
+                    businessRpInboundMapper.insertSelective(br);
152 153
                 }
153 154
                 List<BusinessRpOutbound> outlist =businessRpReport.getBusinessRpOutboundList();
154 155
                 for (BusinessRpOutbound ou: outlist) {