BUG修改

This commit is contained in:
haozq 2025-01-24 17:19:24 +08:00
parent cc1e9f025a
commit 8e92545027
3 changed files with 10 additions and 0 deletions

View File

@ -158,4 +158,10 @@ public interface DispatchCarMapper {
void deleteOutDataRecord(CarNeedPlanVo data);
void deleteOutDetailsRecord(CarNeedPlanVo data);
/**
* 修改计划状态
* @param data
*/
void updatePlanData(CarNeedPlanVo data);
}

View File

@ -214,6 +214,7 @@ public class DispatchCarServiceImpl implements DispatchCarService{
String contractId=hisData.getContractId();
if(!supId.equals(data.getSupId()) || !contractId.equals(data.getContractId())){
deleteData(data);
mapper.updatePlanData(data);
}
}

View File

@ -37,6 +37,9 @@
<update id="updatePlanInfo">
update car_plan_apply SET dispatch_status=#{status} where id=#{id}
</update>
<update id="updatePlanData">
update car_plan_apply SET dispatch_status=5 where id=#{id}
</update>
<!--查询工程统计-->
<select id="getProStatisticsList" resultType="com.bonus.gzcar.business.backstage.entity.DispatchCarVo">
select cpa.pro_id proId,pro.`name` proName ,count(1) planNum ,