|
@ -49,6 +49,7 @@ import com.yxt.anrui.flowable.api.flowtask.FlowTaskFeign; |
|
|
import com.yxt.anrui.flowable.api.flowtask.FlowTaskVo; |
|
|
import com.yxt.anrui.flowable.api.flowtask.FlowTaskVo; |
|
|
import com.yxt.anrui.flowable.api.utils.ProcDefEnum; |
|
|
import com.yxt.anrui.flowable.api.utils.ProcDefEnum; |
|
|
import com.yxt.anrui.flowable.sqloperationsymbol.BusinessVariables; |
|
|
import com.yxt.anrui.flowable.sqloperationsymbol.BusinessVariables; |
|
|
|
|
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
|
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrg; |
|
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrg; |
|
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
|
|
import com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgFeign; |
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
|
@ -89,6 +90,8 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
@Autowired |
|
|
@Autowired |
|
|
private SysStaffOrgFeign sysStaffOrgFeign; |
|
|
private SysStaffOrgFeign sysStaffOrgFeign; |
|
|
@Autowired |
|
|
@Autowired |
|
|
|
|
|
private SysOrganizationFeign sysOrganizationFeign; |
|
|
|
|
|
@Autowired |
|
|
private BusDeliveredService busDeliveredService; |
|
|
private BusDeliveredService busDeliveredService; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private CrmCustomerTempFeign crmCustomerTempFeign; |
|
|
private CrmCustomerTempFeign crmCustomerTempFeign; |
|
@ -714,10 +717,10 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
public ResultBean saveRetrievalApplyInfo(AppDeliveredApplyDto appDeliveredApplyDto) { |
|
|
public ResultBean saveRetrievalApplyInfo(AppDeliveredApplyDto appDeliveredApplyDto) { |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
String dtoSid = appDeliveredApplyDto.getSid(); |
|
|
String dtoSid = appDeliveredApplyDto.getSid(); |
|
|
|
|
|
SysUserVo sysUserVo = sysUserFeign.fetchBySid(appDeliveredApplyDto.getUserSid()).getData(); |
|
|
if (StringUtils.isBlank(dtoSid)) { |
|
|
if (StringUtils.isBlank(dtoSid)) { |
|
|
BusDeliveredApply busDeliveredApply = new BusDeliveredApply(); |
|
|
BusDeliveredApply busDeliveredApply = new BusDeliveredApply(); |
|
|
BeanUtil.copyProperties(appDeliveredApplyDto, busDeliveredApply, "sid"); |
|
|
BeanUtil.copyProperties(appDeliveredApplyDto, busDeliveredApply, "sid"); |
|
|
save(busDeliveredApply); |
|
|
|
|
|
List<AppCarListDto> carList = appDeliveredApplyDto.getCarList(); |
|
|
List<AppCarListDto> carList = appDeliveredApplyDto.getCarList(); |
|
|
if (carList.size() > 0) { |
|
|
if (carList.size() > 0) { |
|
|
busDeliveredApplyDetailsService.appSaveList(carList, busDeliveredApply.getSid()); |
|
|
busDeliveredApplyDetailsService.appSaveList(carList, busDeliveredApply.getSid()); |
|
@ -727,6 +730,8 @@ public class BusDeliveredApplyService extends MybatisBaseService<BusDeliveredApp |
|
|
if (stringResultBean.getSuccess()) { |
|
|
if (stringResultBean.getSuccess()) { |
|
|
busDeliveredApply.setOrgSid(stringResultBean.getData()); |
|
|
busDeliveredApply.setOrgSid(stringResultBean.getData()); |
|
|
} |
|
|
} |
|
|
|
|
|
busDeliveredApply.setApplySid(sysUserVo.getSid()); |
|
|
|
|
|
busDeliveredApply.setApplyName(sysUserVo.getName()); |
|
|
save(busDeliveredApply); |
|
|
save(busDeliveredApply); |
|
|
} else { |
|
|
} else { |
|
|
BusDeliveredApply busDeliveredApply = fetchBySid(dtoSid); |
|
|
BusDeliveredApply busDeliveredApply = fetchBySid(dtoSid); |
|
|