|
|
@ -166,8 +166,8 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
if (StringUtils.isNotBlank(query.getModelName())) { |
|
|
|
qw.like("sai.modelName", query.getModelName()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(query.getApplicationCode())) { |
|
|
|
qw.like("bva.applicationCode", query.getApplicationCode()); |
|
|
|
if (StringUtils.isNotBlank(query.getPcApplicationCode())) { |
|
|
|
qw.like("sai.pcApplicationCode", query.getPcApplicationCode()); |
|
|
|
} |
|
|
|
qw.eq("sai.useOrgSid", query.getCreateOrgSid()); |
|
|
|
return qw; |
|
|
@ -429,10 +429,10 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
updateFlowFiled(BeanUtil.beanToMap(uff)); |
|
|
|
return resultBean1; |
|
|
|
} |
|
|
|
return submitBusinessData(dto, busSid, scmApplyInbound1.getOrgSidPath()); |
|
|
|
return submitBusinessData(dto, busSid, scmApplyInbound1); |
|
|
|
} |
|
|
|
|
|
|
|
private synchronized ResultBean submitBusinessData(SubmitScmApplyInboundDto dto, String businessSid, String orgSidPath) { |
|
|
|
private synchronized ResultBean submitBusinessData(SubmitScmApplyInboundDto dto, String businessSid, ScmApplyInbound scmApplyInbound) { |
|
|
|
Map<String, Object> variables = BeanUtil.beanToMap(dto); |
|
|
|
List<ScmApplyInboundVehicleDto> scmApplyInboundVehicleDtos1 = new ArrayList<>(); |
|
|
|
List<ScmApplyInboundVehicleDto> scmApplyInboundVehicleDtos2 = new ArrayList<>(); |
|
|
@ -452,6 +452,7 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
if (scmApplyInboundVehicleDtos1.size() > 0) { |
|
|
|
scmApplyInboundDto.setVehicleList(scmApplyInboundVehicleDtos1); |
|
|
|
scmApplyInboundDto.setNum(String.valueOf(scmApplyInboundVehicleDtos1.size())); |
|
|
|
scmApplyInboundDto.setPcApplicationCode(scmApplyInbound.getPcApplicationCode()); |
|
|
|
saveOrUpdateApplyInBound(scmApplyInboundDto); |
|
|
|
} |
|
|
|
baseMapper.updateNumBySid(String.valueOf(scmApplyInboundVehicleDtos2.size()), businessSid); |
|
|
@ -459,7 +460,7 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
String businessTaskid = entity.getTaskId(); |
|
|
|
BusinessVariables bv = new BusinessVariables(); |
|
|
|
BeanUtil.copyProperties(dto, bv); |
|
|
|
bv.setOrgSidPath(orgSidPath); |
|
|
|
bv.setOrgSidPath(scmApplyInbound.getOrgSidPath()); |
|
|
|
bv.setBusinessSid(businessSid); |
|
|
|
bv.setUserSid(dto.getUserSid()); |
|
|
|
//variables.put("businessSid", businessSid);
|
|
|
@ -682,6 +683,7 @@ public class ScmApplyInboundService extends MybatisBaseService<ScmApplyInboundMa |
|
|
|
baseVehicleDtos.add(baseVehicleDto); |
|
|
|
} |
|
|
|
ThreadUtil.execute(() -> baseVehicleFeign.saveOrUpdate(baseVehicleDtos, OperVehicleState.EventType.RZ_SAVEVEH.getCode())); |
|
|
|
//baseVehicleFeign.saveOrUpdate(baseVehicleDtos, OperVehicleState.EventType.RZ_SAVEVEH.getCode());
|
|
|
|
} |
|
|
|
|
|
|
|
private void saveItem(ResultBean<List<String>> resultBean1) { |
|
|
|