Commit a9613a15 by huluobin

update

parent f5ab27c5
......@@ -432,7 +432,9 @@ public class CostController {
@RequestParam Integer hasInvoice,
@RequestParam Integer updateuserid) {
CostDomain costDomain = new CostDomain();
costService= CostServiceFactory.getCostService();
CostDomain costDomain = costService.getCostByCostNo(costNo);
costDomain.setHasInvoice(hasInvoice);
costDomain.setCostNo(costNo);
......
......@@ -21,9 +21,6 @@ public class ResetItemReq {
private Integer id;
private Boolean delecteFile;
private MultipartFile fileSelect2;
@ApiModelProperty("费用计划编号")
private String costPlanNo; // 费用计划编号
......
......@@ -3,7 +3,6 @@ package com.blt.other.module.cost.service.impl.costplan;
import com.bailuntec.cost.api.dto.CostPlanTempDto;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.blt.other.common.util.CurUtils;
import com.blt.other.common.util.PathUtil;
import com.blt.other.database.model.CostPlanDomain;
import com.blt.other.database.model.CostPlanTempDomain;
import com.blt.other.database.model.CostTypeDomain;
......@@ -18,7 +17,6 @@ import com.blt.other.module.cost.dto.response.GetCostTempByPlanNoResp;
import com.blt.other.module.cost.model.AccountingSubject;
import com.blt.other.module.cost.service.CostPlanTempService;
import com.blt.other.module.cost.service.CostTypeKindService;
import com.blt.other.module.cost.utils.CostFileUtil;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.lang.NonNull;
......@@ -178,20 +176,11 @@ public class CostPlanTempServiceImpl implements CostPlanTempService {
costPlanTempDomain.setAccountingSubjectNo(accountingSubject.getSubjectNo());
costPlanTempDomain.setAccountingSubjectName(accountingSubject.getName());
if (req.getDelecteFile()) {
costPlanTempDao.deletedFilePath(req.getTempNo());
}
costPlanTempDao.updateById(costPlanTempDomain);
this.chalkResetDec(costPlanTempDomain.getCostPlanNo());
if (req.getFileSelect2() != null) {
String filePath = PathUtil.getBasePath() + PathUtil.getPath("cost/" + costPlanTempDomain.getTempNo() + "/");
String path = CostFileUtil.upload(req.getFileSelect2(), filePath);
costPlanTempDomain.setFilePath(path);
}
// 同步更新费用计划金额
CostPlanDomain plan = costPlanDao.selectByNo(req.getCostPlanNo());
if (plan != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment