| | |
| | | import com.ld.igds.common.CoreCommonService; |
| | | import com.ld.igds.constant.BizType; |
| | | import com.ld.igds.constant.Constant; |
| | | import com.ld.igds.constant.FoodType; |
| | | import com.ld.igds.constant.RedisConst; |
| | | import com.ld.igds.data.CommonData; |
| | | import com.ld.igds.data.Page; |
| | |
| | | import com.ld.igds.inout.service.InoutService; |
| | | import com.ld.igds.io.constant.OrderRespEnum; |
| | | import com.ld.igds.models.Depot; |
| | | import com.ld.igds.models.InoutPrice; |
| | | import com.ld.igds.util.ContextUtil; |
| | | import com.ld.igds.util.DateUtil; |
| | | import com.ld.igds.util.RedisUtil; |
| | |
| | | |
| | | @Override |
| | | public String updateData(InoutData data) throws Exception { |
| | | |
| | | data.setUpdateTime(new Date()); |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | |
| | | //更新缓存 |
| | | updateInoutCache(newData); |
| | | |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public String updateDataByHandle(InoutData data) { |
| | | data.setUpdateTime(new Date()); |
| | | |
| | | if (StringUtils.isEmpty(data.getCompanyId())) { |
| | | data.setCompanyId(ContextUtil.getCompanyId()); |
| | | } |
| | | InoutData newData; |
| | | if (EntityUtils.isEntity(data)) { |
| | | newData = new InoutData(); |
| | | BeanUtils.copyProperties(data, newData, new String[]{"checkItems", "files"}); |
| | | } else { |
| | | newData = data; |
| | | } |
| | | |
| | | inoutMapper.updateDataByHandle(newData); |
| | | |
| | | //更新缓存 |
| | | updateInoutCache(newData); |
| | | |
| | | return null; |
| | | } |
| | | |
| | |
| | | .getCode())) { |
| | | |
| | | |
| | | |
| | | // 创建一个子任务进行推送信息 |
| | | FutureTask<String> futureTask = new FutureTask<>(new NotifyScreenTask(curList, completeList, deptId)); |
| | | |
| | |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public List<InoutPrice> getPrice(InoutCheckParam param) { |
| | | if(null == param.getStart()){ |
| | | param.setStart(new Date()); |
| | | } |
| | | if(null == param.getEnd()){ |
| | | param.setEnd(new Date()); |
| | | } |
| | | return inoutCheckMapper.getPrice(param); |
| | | } |
| | | } |