|
@@ -1,10 +1,9 @@
|
|
|
package com.tld.service.impl;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
+import com.tld.mapper.DictionaryMapper;
|
|
|
import com.tld.mapper.InviteMapper;
|
|
|
-import com.tld.model.AskGoods;
|
|
|
-import com.tld.model.Inventory;
|
|
|
-import com.tld.model.Notice;
|
|
|
-import com.tld.model.ReturRemoval;
|
|
|
+import com.tld.model.*;
|
|
|
import com.tld.service.InviteService;
|
|
|
import org.redisson.api.RLock;
|
|
|
import org.redisson.api.RedissonClient;
|
|
@@ -23,6 +22,8 @@ public class InviteServiceImpl implements InviteService {
|
|
|
//redis锁
|
|
|
@Autowired
|
|
|
private RedissonClient redissonClient;
|
|
|
+ @Autowired
|
|
|
+ private DictionaryMapper dictionaryMapper;
|
|
|
|
|
|
@Override
|
|
|
public Map<String, Object> getAskGoodsfList(AskGoods askGoods) {
|
|
@@ -188,6 +189,9 @@ public class InviteServiceImpl implements InviteService {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
try {
|
|
|
inviteMapper.addNotice(mapList);
|
|
|
+ //新增日志
|
|
|
+ Access access = new Access().setType("报工单").setData(JSON.toJSONString(mapList)).setAccessType("0");
|
|
|
+ dictionaryMapper.addAccess(access);
|
|
|
map.put("status", "0000");
|
|
|
map.put("msg","成功");
|
|
|
}catch (Exception e){
|
|
@@ -207,6 +211,9 @@ public class InviteServiceImpl implements InviteService {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
try {
|
|
|
inviteMapper.addDelivery(mapList);
|
|
|
+ //新增日志
|
|
|
+ Access access = new Access().setType("交货单").setData(JSON.toJSONString(mapList)).setAccessType("0");
|
|
|
+ dictionaryMapper.addAccess(access);
|
|
|
map.put("status", "0000");
|
|
|
map.put("msg","成功");
|
|
|
}catch (Exception e){
|
|
@@ -226,6 +233,9 @@ public class InviteServiceImpl implements InviteService {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
try {
|
|
|
inviteMapper.addWarehouseTransfer(mapList);
|
|
|
+ //新增日志
|
|
|
+ Access access = new Access().setType("移库单").setData(JSON.toJSONString(mapList)).setAccessType("0");
|
|
|
+ dictionaryMapper.addAccess(access);
|
|
|
map.put("status", "0000");
|
|
|
map.put("msg","成功");
|
|
|
}catch (Exception e){
|
|
@@ -297,6 +307,9 @@ public class InviteServiceImpl implements InviteService {
|
|
|
}
|
|
|
inviteMapper.addAskGoodsLog(askGoods);
|
|
|
}
|
|
|
+ //新增日志
|
|
|
+ Access access = new Access().setType("非生产领料信息").setData(JSON.toJSONString(mapList)).setAccessType("0");
|
|
|
+ dictionaryMapper.addAccess(access);
|
|
|
map.put("status", "0000");
|
|
|
map.put("msg","成功");
|
|
|
}catch (Exception e){
|