|
|
@ -97,6 +97,7 @@ public class QuotationSheetServiceImpl extends MPJBaseServiceImpl<QuotationSheet
|
|
|
|
quotationSheet.setDeptId(user.getDeptId());
|
|
|
|
quotationSheet.setDeptId(user.getDeptId());
|
|
|
|
quotationSheet.setApplicant(loginUser.getId());
|
|
|
|
quotationSheet.setApplicant(loginUser.getId());
|
|
|
|
quotationSheet.setQuotationStatus(1);
|
|
|
|
quotationSheet.setQuotationStatus(1);
|
|
|
|
|
|
|
|
quotationSheet.setReleaseStatus(1);
|
|
|
|
quotationSheet.setStatus("0");
|
|
|
|
quotationSheet.setStatus("0");
|
|
|
|
saveOrUpdate(quotationSheet);
|
|
|
|
saveOrUpdate(quotationSheet);
|
|
|
|
if (createReqVO.getQuotationDetails().size() > 0){
|
|
|
|
if (createReqVO.getQuotationDetails().size() > 0){
|
|
|
@ -453,17 +454,17 @@ public class QuotationSheetServiceImpl extends MPJBaseServiceImpl<QuotationSheet
|
|
|
|
QuotationSheetDO apply = getById(id);
|
|
|
|
QuotationSheetDO apply = getById(id);
|
|
|
|
if (BpmProcessInstanceResultEnum.APPROVE.getResult().equals(result)) {
|
|
|
|
if (BpmProcessInstanceResultEnum.APPROVE.getResult().equals(result)) {
|
|
|
|
//审核通过
|
|
|
|
//审核通过
|
|
|
|
apply.setQuotationStatus(3);
|
|
|
|
apply.setReleaseStatus(3);
|
|
|
|
apply.setStatus(QuotationSheetEnum.APPROVE.getValue());
|
|
|
|
apply.setStatus(QuotationSheetEnum.APPROVE.getValue());
|
|
|
|
updateById(apply);
|
|
|
|
updateById(apply);
|
|
|
|
} else if (BpmProcessInstanceResultEnum.REJECT.getResult().equals(result)) {
|
|
|
|
} else if (BpmProcessInstanceResultEnum.REJECT.getResult().equals(result)) {
|
|
|
|
//驳回
|
|
|
|
//驳回
|
|
|
|
apply.setQuotationStatus(2);
|
|
|
|
apply.setReleaseStatus(2);
|
|
|
|
apply.setStatus(QuotationSheetEnum.APPROVE.getValue());
|
|
|
|
apply.setStatus(QuotationSheetEnum.APPROVE.getValue());
|
|
|
|
updateById(apply);
|
|
|
|
updateById(apply);
|
|
|
|
}else if (BpmProcessInstanceResultEnum.CANCEL.getResult().equals(result)) {
|
|
|
|
}else if (BpmProcessInstanceResultEnum.CANCEL.getResult().equals(result)) {
|
|
|
|
//驳回
|
|
|
|
//驳回
|
|
|
|
apply.setQuotationStatus(1);
|
|
|
|
apply.setReleaseStatus(1);
|
|
|
|
apply.setStatus(QuotationSheetEnum.APPROVE.getValue());
|
|
|
|
apply.setStatus(QuotationSheetEnum.APPROVE.getValue());
|
|
|
|
updateById(apply);
|
|
|
|
updateById(apply);
|
|
|
|
}
|
|
|
|
}
|
|
|
|