Compare commits
2 Commits
d51ca296ba
...
b68eba4949
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b68eba4949 | ||
![]() |
17d99d0cee |
@ -48,6 +48,9 @@ public class BpmOASupplierProcurementPlanPageReqVO extends PageParam {
|
||||
@Schema(description = "是否上传凭证 0否 1是")
|
||||
private Integer certificateFlag;
|
||||
|
||||
@Schema(description = "是否已分配到资产中 0否 1是", example = "5984")
|
||||
private Integer assignedFlag;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
@ -17,6 +17,9 @@ public class BpmOASupplierProcurementPlanReqVO {
|
||||
@Schema(description = "供应商id", example = "123")
|
||||
private Long supplierId;
|
||||
|
||||
@Schema(description = "是否已分配到资产中 0否 1是", example = "5984")
|
||||
private Integer assignedFlag;
|
||||
|
||||
@Schema(description = "流程实例的编号", example = "5984")
|
||||
private String processInstanceId;
|
||||
|
||||
|
@ -41,6 +41,9 @@ public class BpmOASupplierProcurementPlanRespVO {
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "是否已分配到资产中 0否 1是", example = "5984")
|
||||
private Integer assignedFlag;
|
||||
|
||||
@Schema(description = "流程实例的编号", example = "5984")
|
||||
private String processInstanceId;
|
||||
|
||||
|
@ -42,6 +42,9 @@ public class BpmOASupplierProcurementPlanSaveReqVO {
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "是否已分配到资产中 0否 1是", example = "5984")
|
||||
private Integer assignedFlag;
|
||||
|
||||
@Schema(description = "流程实例的编号", example = "5984")
|
||||
private String processInstanceId;
|
||||
|
||||
|
@ -70,6 +70,10 @@ public class BpmOASupplierProcurementPlanDO extends BaseDO {
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
/**
|
||||
* 是否已分配到资产中 0否 1是
|
||||
*/
|
||||
private Integer assignedFlag;
|
||||
/**
|
||||
* 流程实例的编号
|
||||
*/
|
||||
|
@ -165,10 +165,11 @@ public class BpmOASupplierProcurementPlanServiceImpl extends BpmOABaseService im
|
||||
public void uploadDeliveryReceipt(TheArrivalFileItemsVO vo) {
|
||||
BpmOASupplierProcurementPlanDO supplierProcurementPlanDO = oaSupplierProcurementPlanMapper.selectById(vo.getId());
|
||||
//判断是否需要更新到资产
|
||||
Boolean updateAssetFlag = false;
|
||||
if (CollectionUtil.isEmpty(supplierProcurementPlanDO.getTheArrivalFileItems())) {
|
||||
boolean updateAssetFlag = false;
|
||||
if (supplierProcurementPlanDO.getAssignedFlag() == 0) {
|
||||
updateAssetFlag = true;
|
||||
}
|
||||
supplierProcurementPlanDO.setAssignedFlag(1);
|
||||
supplierProcurementPlanDO.setTheArrivalFileItems(vo.getTheArrivalFileItems());
|
||||
oaSupplierProcurementPlanMapper.updateById(supplierProcurementPlanDO);
|
||||
// ----- 如果需要更新到资产 -
|
||||
|
Loading…
Reference in New Issue
Block a user