BUG修改
This commit is contained in:
parent
cc1e9f025a
commit
8e92545027
|
|
@ -158,4 +158,10 @@ public interface DispatchCarMapper {
|
|||
void deleteOutDataRecord(CarNeedPlanVo data);
|
||||
|
||||
void deleteOutDetailsRecord(CarNeedPlanVo data);
|
||||
|
||||
/**
|
||||
* 修改计划状态
|
||||
* @param data
|
||||
*/
|
||||
void updatePlanData(CarNeedPlanVo data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 ,
|
||||
|
|
|
|||
Loading…
Reference in New Issue