| | |
| | | if(Objects.isNull(platformBooks)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"未查询到业务数据信息"); |
| | | } |
| | | title = "[物流车入园预约]申请人-" + platformBooks.getDriverName(); |
| | | jsonMap.put("inType", "入库类型:"+(Constants.equalsInteger(platformBooks.getInType(),Constants.ZERO)?"整托盘":"件烟")); |
| | | title = ApproveServiceImpl.creatPlatformBookNotice(platformBooks,jsonMap); |
| | | // title = "[物流车入园预约]申请人-" + platformBooks.getDriverName(); |
| | | // jsonMap.put("inType", "入库类型:"+(Constants.equalsInteger(platformBooks.getInType(),Constants.ZERO)?"整托盘":"件烟")); |
| | | // jsonMap.put("totalNum", "总运输量:"+platformBooks.getTotalNum()+"万支"); |
| | | // jsonMap.put("arriveDate", "到场时间:" + DateUtil.DateToStr(platformBooks.getArriveDate() , "yyyy-MM-dd HH:mm")); |
| | | // jsonMap.put("carNum", "车牌照:"+platformBooks.getCarCodeFront()); |
| | | } |
| | | return title; |
| | | } |
| | | |
| | | public static String creatPlatformBookNotice(PlatformBooks platformBooks,Map<String,Object> jsonMap){ |
| | | jsonMap.put("inType", "作业类型:"+(Constants.equalsInteger(platformBooks.getInType(),Constants.ZERO)?"整托盘":"件烟")); |
| | | jsonMap.put("totalNum", "总运输量:"+platformBooks.getTotalNum()+"万支"); |
| | | jsonMap.put("arriveDate", "到场时间:" + DateUtil.DateToStr(platformBooks.getArriveDate() , "yyyy-MM-dd HH:mm")); |
| | | jsonMap.put("carNum", "车牌照:"+platformBooks.getCarCodeFront()); |
| | | } |
| | | return title; |
| | | return "[物流车入园预约]申请人-" + platformBooks.getDriverName() ; |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * 月台入园预约信息表Service实现 |
| | |
| | | platformBooks.setReasonId(null); |
| | | platformBooks.setInReason(null); |
| | | platformBooksMapper.updateById(platformBooks); |
| | | |
| | | |
| | | |
| | | Map<String,Object> jsonMap = new HashMap<>(); |
| | | String title = ApproveServiceImpl.creatPlatformBookNotice(platformBooks,jsonMap); |
| | | noticesJoinMapper.update(null,new UpdateWrapper<Notices>().lambda() |
| | | .set(Notices::getParam1,JSONObject.toJSONString(jsonMap)) |
| | | .set(Notices::getTitle,title) |
| | | .eq(Notices::getObjType,Constants.noticesObjectType.reason) |
| | | .eq(Notices::getTitle,title) |
| | | .eq(Notices::getObjId,platformBooks.getId()) |
| | | ); |
| | | |
| | | return platformBooks.getId(); |
| | | } |
| | | |