修改车辆结算金额 计算
This commit is contained in:
parent
7a488e4a10
commit
87db4f408e
1
pom.xml
1
pom.xml
|
|
@ -346,6 +346,7 @@
|
|||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>gz_car_info</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
|
|
|
|||
|
|
@ -256,4 +256,29 @@ public interface SupDispatchCarMapper {
|
|||
* @return
|
||||
*/
|
||||
int updateOutFileStatus(String params);
|
||||
|
||||
/**
|
||||
* 查询派车记录信息
|
||||
* @return
|
||||
*/
|
||||
List<CarPlanOutVo> getOutPlanList();
|
||||
|
||||
/**
|
||||
* 查询派车详情
|
||||
* @param listVo
|
||||
* @return
|
||||
*/
|
||||
List<CarSltApplyDetailsVo> getOutDetailsList(CarPlanOutVo listVo);
|
||||
|
||||
/**
|
||||
* 修改派车金额
|
||||
* @param listVo
|
||||
*/
|
||||
void updateMoney(CarPlanOutVo listVo);
|
||||
|
||||
/**
|
||||
* 修改结算数据
|
||||
* @param vo
|
||||
*/
|
||||
void updatePlanOutDetails(CarSltApplyDetailsVo vo);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,6 +107,17 @@
|
|||
update car_plan_out set file_status=0
|
||||
WHERE id= #{id}
|
||||
</update>
|
||||
<update id="updateMoney">
|
||||
update car_plan_out set money=#{money} where id=#{id}
|
||||
|
||||
</update>
|
||||
<update id="updatePlanOutDetails">
|
||||
update car_plan_out_details set remark=#{remark},es_cost=#{cost},
|
||||
day_or_m=#{isDayOrMonth},day_price=#{dayPrice},month_price=#{monthPrice},
|
||||
gls_price=#{glsPrice},price_id=#{priceId},gls_money=#{glsMoney},
|
||||
yg_money=#{cost}
|
||||
where id=#{id}
|
||||
</update>
|
||||
|
||||
<delete id="delCarPlanOutData">
|
||||
delete
|
||||
|
|
@ -155,7 +166,7 @@
|
|||
cpa.need_time needTime, cpa.creator,DATE_FORMAT(cpa.create_time,'%Y-%m-%d') appLyTime,pro.name proName, bpt.`NAME` as proType,
|
||||
cpa.remark, cpa.updater, cpa.update_time updateTime,cpa.dispatch_day dispatchDay ,
|
||||
if(cpa.type=1,'车辆','吊车') typeName ,cpas.sup_id supId ,cs.name supName,
|
||||
need_num needNum, dispatch_num dispatchNum,need_num-dispatch_num-IFNULL(outData.num,0) noDispatchNum,
|
||||
need_num needNum, dispatch_num dispatchNum,if(need_num-dispatch_num>0,need_num-dispatch_num,0) noDispatchNum,
|
||||
cpa.apply_type applyType, cpa.status_type statusType,cpa.user_name userName,
|
||||
if(cpa.dispatch_num>0,'已派车',if(cpa.dispatch_status=0,'待审核','待派车')) statusName,
|
||||
if(cpa.dispatch_status=0,'待审核', if(cpa.dispatch_status=5,'待派车',if(cpa.dispatch_status=2,'已通过','已驳回') ) ) auditStatus
|
||||
|
|
@ -171,7 +182,7 @@
|
|||
WHERE (`status` = 0 OR `status` = 1 )
|
||||
GROUP BY apply_id
|
||||
) outData on outData.apply_id=cpa.id
|
||||
where cpa.status_type=1
|
||||
where cpa.status_type=1 AND cpas.apply_id is not null
|
||||
<if test="userId!=null and userId!=''">
|
||||
AND csu.user_id=#{userId}
|
||||
</if>
|
||||
|
|
@ -388,5 +399,19 @@
|
|||
WHERE
|
||||
cpod.out_id = #{id}
|
||||
</select>
|
||||
<select id="getOutPlanList" resultType="com.bonus.gzcar.business.backstage.entity.CarPlanOutVo">
|
||||
select cpo.id,cpo.sup_id supId,cpo.contract_id contractId,cpo.money,cpo.type planType
|
||||
from car_plan_out cpo
|
||||
left join car_slt_plan csp on csp.plan_id=cpo.apply_id
|
||||
WHERE csp.id is null
|
||||
|
||||
</select>
|
||||
<select id="getOutDetailsList" resultType="com.bonus.gzcar.business.backstage.entity.CarSltApplyDetailsVo">
|
||||
select cpo.id,cpo.model_id modelId,cpo.plan_type type,cpo.contract_id contractId,cpo.gls,cpo.use_day useDay,csi.ton
|
||||
from car_plan_out_details cpo
|
||||
LEFT JOIN car_supplier_info csi on csi.id=cpo.car_id
|
||||
where cpo.out_id=#{id}
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue