Bladeren bron

计划上报时间bug

ZeroLiYi 1 jaar geleden
bovenliggende
commit
86dbeec9f7

+ 2 - 5
src/main/java/com/chinaitop/depot/rp/service/impl/BusinessRpReportServiceImpl.java

@@ -118,10 +118,6 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
118 118
     public Map<String, Object> add(BusinessRpReport businessRpReport) {
119 119
         Map<String,Object> result = new HashMap<>();
120 120
         List<BusinessRpInbound>  businessRpInbound = businessRpReport.getBusinessRpInboundList();
121
-//        if (businessRpInbound.size() <= 0){
122
-//            result.put("msg", "出库信息不能为空");
123
-//            return result;
124
-//        }
125 121
         BusinessRpInboundExample businessRpInboundExample =new BusinessRpInboundExample();
126 122
        businessRpReport.setUpdateTime(new Date());
127 123
         if(businessRpReport.getStatus()==0){ //保存
@@ -165,7 +161,7 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
165 161
 
166 162
         }else{//提交
167 163
 
168
-            if(businessRpReport.getId()!=null){//修改
164
+            if(businessRpReport.getId()!=null){
169 165
                 //根据id查找主表数据
170 166
                 BusinessRpReportVO businessRpReportVO =businessRpReportMapper.getRpReportFindByById(businessRpReport.getId());
171 167
                 if(businessRpReportVO!=null){
@@ -199,6 +195,7 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
199 195
 
200 196
                 businessRpReport.setCreateTime(new Date());
201 197
                 businessRpReport.setUpdateTime(new Date());
198
+                businessRpReport.setReportTime(new Date());
202 199
                 businessRpReportMapper.insert(businessRpReport);
203 200
                 List<BusinessRpInbound> inList =businessRpReport.getBusinessRpInboundList();
204 201
                 for (BusinessRpInbound br: inList) {