Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -26,7 +26,6 @@ import java.util.List;
|
||||
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.error;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
import static com.zt.plat.module.contractorder.enums.ErrorCodeConstants.CONTRACT_PUSH_FAIL;
|
||||
import static com.zt.plat.module.contractorder.enums.ErrorCodeConstants.CONTRACT_SUBMIT_ERP_FAIL;
|
||||
|
||||
@Slf4j
|
||||
@@ -197,11 +196,7 @@ public class ContractController implements BusinessControllerMarker {
|
||||
@Operation(summary = "国贸2.0系统推送合同")
|
||||
@PreAuthorize("@ss.hasPermission('base:contract:create')")
|
||||
CommonResult<Boolean> push(@Valid @RequestBody IntContract reqVO) {
|
||||
try {
|
||||
return contractApi.push(reqVO);
|
||||
} catch (Exception e) {
|
||||
return error(CONTRACT_PUSH_FAIL, e.getMessage());
|
||||
}
|
||||
return contractApi.push(reqVO);
|
||||
}
|
||||
|
||||
@PostMapping("/logistics/list/page")
|
||||
|
||||
@@ -61,6 +61,7 @@ public interface PurchaseOrderMapper extends BaseMapperX<PurchaseOrderDO> {
|
||||
.eqIfPresent(PurchaseOrderDO::getSplyBsnTp, reqVO.getSplyBsnTp() != null ? reqVO.getSplyBsnTp() : "PUR")
|
||||
.eqIfPresent(PurchaseOrderDO::getCause, reqVO.getCause())
|
||||
.eqIfPresent(PurchaseOrderDO::getStatus, reqVO.getStatus())
|
||||
.eqIfPresent(PurchaseOrderDO::getMtrlTp, reqVO.getMtrlTp())
|
||||
.likeIfPresent(PurchaseOrderDO::getPurchaseGroupName, reqVO.getPurchaseGroupName())
|
||||
.orderByDesc(PurchaseOrderDO::getId));
|
||||
}
|
||||
|
||||
@@ -921,8 +921,10 @@ public class ContractServiceImpl implements ContractService {
|
||||
}
|
||||
|
||||
// 更新合同主信息
|
||||
Long instanceId = newContractMainDO.getInstanceId();
|
||||
newContractMainDO.setInstanceId(null);
|
||||
contractMainMapper.update(newContractMainDO, new LambdaUpdateWrapper<>(ContractMainDO.class)
|
||||
.set(ContractMainDO::getInstanceId, newContractMainDO.getInstanceId())
|
||||
.set(ContractMainDO::getInstanceId, instanceId)
|
||||
.eq(ContractMainDO::getId, newContractMainDO.getId()));
|
||||
|
||||
if (DictEnum.BSE_CTRT_STS_IN_PROGRESS.getCode().equals(newContractMainDO.getStatus())) {
|
||||
|
||||
Reference in New Issue
Block a user