| | |
| | | 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; |
| | |
| | | |
| | | @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()) |
| | | || WebSocketServer.contextOnLineMap.get(BizType.SCREEN_CHECK |
| | | .getCode())) { |
| | | |
| | | |
| | | |
| | | // 创建一个子任务进行推送信息 |