禅道bug解决
This commit is contained in:
parent
bdd8222eef
commit
d44dd94380
|
|
@ -159,7 +159,8 @@ public class RepairServiceImpl implements RepairService {
|
|||
partDetails.setPartCost("0");
|
||||
}
|
||||
BigDecimal partCost = new BigDecimal(partDetails.getPartCost());
|
||||
sfCosts = sfCosts.add(partCost);
|
||||
BigDecimal partNumber = new BigDecimal(partDetails.getPartNum());
|
||||
sfCosts = sfCosts.add(partCost.multiply(partNumber));
|
||||
} else if (bsfPart.equals(partDetails.getPartType())) {
|
||||
if (StringUtils.isEmpty(partDetails.getPartCost())) {
|
||||
partDetails.setPartCost("0");
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@
|
|||
values (#{taskId},#{id},#{maId},#{typeId},#{repairNum},#{repairedNum},#{scrapNum},'0',#{createBy},now(),#{companyId});
|
||||
</insert>
|
||||
<insert id="addRepairCost">
|
||||
insert into repair_cost (task_id,repair_id,type_id,ma_id,repair_num,costs,part_type,status,company_id)
|
||||
values (#{bean.taskId},#{bean.id},#{bean.typeId},#{bean.maId},#{bean.repairNum},#{costs},#{partType},'0',#{bean.companyId});
|
||||
insert into repair_cost (task_id,repair_id,type_id,ma_id,repair_num,costs,part_type,status,company_id,repair_type)
|
||||
values (#{bean.taskId},#{bean.id},#{bean.typeId},#{bean.maId},#{bean.repairNum},#{costs},#{partType},'0',#{bean.companyId},#{bean.repairType});
|
||||
</insert>
|
||||
<update id="updateRepairedNum">
|
||||
update repair_apply_details
|
||||
|
|
|
|||
|
|
@ -185,9 +185,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
mt1.type_name as typeName,
|
||||
mt.type_name as modelName,
|
||||
mt.unit_name as nuitName,
|
||||
sum(rc.repair_num ) as num,
|
||||
sum(rc.costs * rc.repair_num) as costs,
|
||||
case rc.part_type when '0' then '不收费' when '1' then '收费' else '' end as partType,
|
||||
rc.repair_num as num,
|
||||
rc.costs as costs,
|
||||
case rc.repair_type when '1' then '内部维修' when '2' then '返厂维修' else '' end as partType,
|
||||
sd.name as repairStatus,
|
||||
rc.company_id as companyId
|
||||
from repair_cost rc
|
||||
|
|
@ -206,7 +206,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
#{task.taskId}
|
||||
</foreach>
|
||||
</if>
|
||||
group by rc.type_id,rc.ma_id,rc.part_type,rc.status
|
||||
</select>
|
||||
<select id="getScrapDetailsList" resultType="com.bonus.sgzb.base.api.domain.SltAgreementInfo">
|
||||
select tta.agreement_id as agreementId,
|
||||
|
|
|
|||
Loading…
Reference in New Issue