Commit 4ee207de by liyanlin

fix

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