|
|
@@ -4,6 +4,7 @@ import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.*;
|
|
|
|
|
|
+import cn.hutool.core.lang.Validator;
|
|
|
import com.zhongzheng.common.core.domain.model.LoginUser;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.common.utils.SecurityUtils;
|
|
|
@@ -134,8 +135,12 @@ public class OrderController extends BaseController {
|
|
|
@PostMapping("/inputOrder")
|
|
|
public AjaxResult addInputOrder(@RequestBody OrderAddBo bo) {
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
- bo.setCreateSysUserId(loginUser.getUser().getUserId());
|
|
|
- bo.setCreateBy(SecurityUtils.getUsername());
|
|
|
+ if(Validator.isEmpty(bo.getCreateUsername())){
|
|
|
+ bo.setCreateSysUserId(loginUser.getUser().getUserId());
|
|
|
+ bo.setCreateBy(SecurityUtils.getUsername());
|
|
|
+ }else{
|
|
|
+ bo.setCreateSysUserId(-1L); //老业务系统下单标识
|
|
|
+ }
|
|
|
return AjaxResult.success(iOrderService.placePlatInputOrder(bo));
|
|
|
}
|
|
|
|