|
@@ -24,10 +24,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.jeecg.common.aspect.annotation.PermissionData;
|
|
|
import org.jeecg.common.util.DateUtils;
|
|
|
-import org.jeecg.modules.baseCode.entity.BaseProductArchive;
|
|
|
-import org.jeecg.modules.baseCode.entity.BaseProductClass;
|
|
|
-import org.jeecg.modules.baseCode.entity.BaseShipArchive;
|
|
|
-import org.jeecg.modules.baseCode.entity.BaseTemplates;
|
|
|
+import org.jeecg.modules.baseCode.entity.*;
|
|
|
import org.jeecg.modules.baseCode.service.*;
|
|
|
import org.jeecg.modules.cuspCode.entity.CuspCustomerProfile;
|
|
|
import org.jeecg.modules.cuspCode.service.ICuspCustomerProfileService;
|
|
@@ -114,6 +111,8 @@ public class SaleOrderController {
|
|
|
private IBaseShipArchiveService baseShipArchiveService;
|
|
|
@Autowired
|
|
|
private IBaseProductArchiveService baseProductArchiveService;
|
|
|
+ @Autowired
|
|
|
+ private IBaseProjectArchiveService baseProjectArchiveService;
|
|
|
|
|
|
@Value(value = "${jeecg.path.upload}")
|
|
|
private String uploadpath;
|
|
@@ -952,7 +951,15 @@ public class SaleOrderController {
|
|
|
}
|
|
|
saleOrder.setShipName(shipname);
|
|
|
saleOrder.setImo(imo);
|
|
|
- saleOrder.setContactsNo(saleOrder.getProjectName());
|
|
|
+ // 项目名称
|
|
|
+ if (saleOrder.getProject() != null){
|
|
|
+ BaseProjectArchive projectArchive = baseProjectArchiveService.getById(saleOrder.getProject());
|
|
|
+ if (projectArchive != null){
|
|
|
+ saleOrder.setContactsNo(projectArchive.getName());
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if(productList.size() > 0){
|
|
|
|
|
|
saleOrder.setQualityGrade(productList.get(0).getQualityGrade());
|