|
@@ -28,10 +28,12 @@ import com.ruoyi.base.domain.vo.BaseLocationLotattVO;
|
|
|
import com.ruoyi.base.mapper.BaseLocationInfoMapper;
|
|
|
import com.ruoyi.base.service.IBaseLocationInfoService;
|
|
|
import com.ruoyi.base.service.IBaseSkuService;
|
|
|
+import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.core.redis.RedisCache;
|
|
|
import com.ruoyi.common.core.redis.RedisKey;
|
|
|
import com.ruoyi.common.exception.ServiceException;
|
|
|
+import com.ruoyi.common.utils.SecurityUtils;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.common.utils.uuid.SnowflakeIdWorker;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -78,6 +80,8 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
|
@Autowired
|
|
|
private IFlowConfigHeaderService flowConfigHeaderService;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
public static int geniKey(String taskNo) {
|
|
|
int res = CRC16Util.calcCrc16(ByteUtil.string2byteArray(taskNo));
|
|
|
if (res == 0) {
|
|
@@ -555,6 +559,8 @@ public class BusinessServiceImpl implements IBusinessService {
|
|
|
}else {
|
|
|
wcsTask.setPriority(10L);
|
|
|
}
|
|
|
+ Object userName = redisCache.getCacheObject("userName");
|
|
|
+ wcsTask.setCreateUser(userName.toString());
|
|
|
wcsTask.setShopId(Constant.WAREHOUSE_ID.toString());
|
|
|
wcsTask.setCreateDate(new Date());
|
|
|
wcsTask.setBusinessType("01");
|