|
@@ -25,6 +25,7 @@ import com.ruoyi.base.service.IBaseLocationInfoService;
|
|
|
import com.ruoyi.common.constant.Constants;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.exception.base.BaseException;
|
|
|
+import com.ruoyi.common.utils.SecurityUtils;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -84,7 +85,13 @@ public class WcsTaskSubService {
|
|
|
wcsTask.setAreaTo(baseLocationInfoTo.getZoneId().toString());
|
|
|
wcsTask.setLocationTo(baseLocationInfoTo.getId().toString());
|
|
|
wcsTask.setCreateDate(new Date());
|
|
|
- wcsTask.setCreateUser("Wcs");
|
|
|
+ String username = null;
|
|
|
+ try {
|
|
|
+ username = SecurityUtils.getLoginUser().getUsername();
|
|
|
+ } catch (Exception e) {
|
|
|
+ username = "WCS";
|
|
|
+ }
|
|
|
+ wcsTask.setCreateUser(username);
|
|
|
wcsTask.setShopId(Constant.WAREHOUSE_ID.toString());
|
|
|
wcsTask.setPriority(10L);
|
|
|
wcsTask.setExt1(asnNo);
|
|
@@ -123,7 +130,13 @@ public class WcsTaskSubService {
|
|
|
wcsTask.setAreaTo(baseLocationInfoTo.getZoneId().toString());
|
|
|
wcsTask.setLocationTo(baseLocationInfoTo.getId().toString());
|
|
|
wcsTask.setCreateDate(new Date());
|
|
|
- wcsTask.setCreateUser("Wcs");
|
|
|
+ String username = null;
|
|
|
+ try {
|
|
|
+ username = SecurityUtils.getLoginUser().getUsername();
|
|
|
+ } catch (Exception e) {
|
|
|
+ username = "WCS";
|
|
|
+ }
|
|
|
+ wcsTask.setCreateUser(username);
|
|
|
wcsTask.setShopId(Constant.WAREHOUSE_ID.toString());
|
|
|
wcsTask.setPriority(10L);
|
|
|
wcsTask.setExt1(asnNo);
|
|
@@ -166,7 +179,13 @@ public class WcsTaskSubService {
|
|
|
wcsTask.setTaskType(Constant.TASK_TYPE.FORWARD.getValue());
|
|
|
wcsTask.setBusinessType("01");
|
|
|
wcsTask.setCreateDate(new Date());
|
|
|
- wcsTask.setCreateUser("Wcs");
|
|
|
+ String username = null;
|
|
|
+ try {
|
|
|
+ username = SecurityUtils.getLoginUser().getUsername();
|
|
|
+ } catch (Exception e) {
|
|
|
+ username = "WCS";
|
|
|
+ }
|
|
|
+ wcsTask.setCreateUser(username);
|
|
|
wcsTask.setShopId(Constant.WAREHOUSE_ID.toString());
|
|
|
wcsTask.setPriority(10L);
|
|
|
wcsTask.setExt1(asnNo);
|