|
@@ -34,6 +34,7 @@ import com.github.zuihou.business.util.DynamicRabbitMq;
|
|
|
import com.github.zuihou.business.util.MsgUtil;
|
|
|
import com.github.zuihou.common.constant.CacheKey;
|
|
|
import com.github.zuihou.common.constant.ParameterKey;
|
|
|
+import com.github.zuihou.context.BaseContextHandler;
|
|
|
import com.github.zuihou.database.mybatis.conditions.query.LbqWrapper;
|
|
|
import com.github.zuihou.log.annotation.SysLog;
|
|
|
import com.google.common.collect.Maps;
|
|
@@ -130,6 +131,7 @@ public class ToolbarController {
|
|
|
@ApiOperation(value = "手动操作回调更新", notes = "手动操作回调更新")
|
|
|
@PostMapping("/updateStorgeCallback")
|
|
|
public R updateStorgeCallback(@RequestBody Map<String, String> data) {
|
|
|
+ BaseContextHandler.setTenant("0000");
|
|
|
String start = data.containsKey("start")? data.get("start").toString() : null;
|
|
|
String goal = data.containsKey("goal")? data.get("goal").toString() : null;
|
|
|
|
|
@@ -145,6 +147,7 @@ public class ToolbarController {
|
|
|
UpdateWrapper<StockInfo> updateWrapper = new UpdateWrapper<StockInfo>();
|
|
|
updateWrapper.lambda().eq(StockInfo::getStorgeId, startStorge.getId()).le(StockInfo::getGoodsType, 4).set(StockInfo::getStorgeId, goalStorge.getId());
|
|
|
stockInfoService.update(null, updateWrapper);
|
|
|
+ log.warn("库位{}手动操作更新{}回调成功", start, goal);
|
|
|
return R.success();
|
|
|
}
|
|
|
|