Commit 91f08aea by huluobin

update

parent 5b737410
...@@ -195,7 +195,13 @@ public abstract class AbstractCostService implements CostService { ...@@ -195,7 +195,13 @@ public abstract class AbstractCostService implements CostService {
CostDomain costDomain = new CostDomain(); CostDomain costDomain = new CostDomain();
costDomain.setCostNo(costNo); costDomain.setCostNo(costNo);
costDomain.setAmount(amount); costDomain.setAmount(amount);
costDomain.setKindName(costDetailDomains.get(0).getKindName() + " 等 " + costDetailDomains.size() + " 项"); String kindSuffix = "";
if (costDetailDomains.size() > 1) {
kindSuffix = " 等共" + costDetailDomains.size() + "项";
}
costDomain.setKindNo(costDetailDomains.get(0).getKindNo() + kindSuffix);
costDomain.setKindName(costDetailDomains.get(0).getKindName() + kindSuffix);
costDao.update(costDomain, new LambdaQueryWrapper<CostDomain>() costDao.update(costDomain, new LambdaQueryWrapper<CostDomain>()
.eq(CostDomain::getCostNo, costDomain.getCostNo())); .eq(CostDomain::getCostNo, costDomain.getCostNo()));
} }
......
...@@ -445,8 +445,7 @@ ...@@ -445,8 +445,7 @@
</if> </if>
and (t7.reviewer_user_id = #{req.userid} ) and (t7.reviewer_user_id = #{req.userid} )
</if> </if>
<if test=" req.costNo!=null and req.costNo != ''">
<if test="req.costNo != null and req.costNo !='' ">
and t1.cost_no =#{req.costNo} and t1.cost_no =#{req.costNo}
</if> </if>
group by group by
......
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