Commit 4ee207de by liyanlin

fix

parent 9c391e77
...@@ -68,9 +68,11 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail ...@@ -68,9 +68,11 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail
public ResetResp reset(ResetReq req) { public ResetResp reset(ResetReq req) {
CostDetailDomain costDetailDomain = this.getCostDetailByDetailNo(req.getDetailNo()); CostDetailDomain costDetailDomain = this.getCostDetailByDetailNo(req.getDetailNo());
List<CostDetailDomain> costDetailDomainList = baseMapper.selectListByCostNo(costDetailDomain.getCostNo()); //List<CostDetailDomain> costDetailDomainList = baseMapper.selectListByCostNo(costDetailDomain.getCostNo());
if (costDetailDomainList.size() > 1) { CostDomain costDomain = costDao.selectByCostNo(req.getCostNo());
throw new BizRuntimeException("大于1条不能改");
if (!req.getTypeNo().equals(costDomain.getTypeNo())) {
throw new BizRuntimeException("费用类别不一致");
} }
BeanUtils.copyProperties(req, costDetailDomain); BeanUtils.copyProperties(req, costDetailDomain);
......
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