需求计划撤回

This commit is contained in:
cwchen 2025-03-24 15:14:21 +08:00
parent c47dff7eb7
commit 48a8b40094
1 changed files with 11 additions and 2 deletions

View File

@ -13,12 +13,21 @@
where id=#{id} where id=#{id}
</update> </update>
<select id="getCarAuditList" resultType="com.bonus.gzcar.business.backstage.entity.CarNeedPlanVo"> <select id="getCarAuditList" resultType="com.bonus.gzcar.business.backstage.entity.CarNeedPlanVo">
select select
cpa.id, cpa.code, cpa.type , cpa.pro_id proId, cpa.project_part projectPart, cpa.project_content projectContent, cpa.id, cpa.code, cpa.type , cpa.pro_id proId, cpa.project_part projectPart, cpa.project_content projectContent,
cpa.need_time needTime, cpa.creator,DATE_FORMAT(cpa.create_time,'%Y-%m-%d') appLyTime,pro.name proName, cpa.need_time needTime, cpa.creator,DATE_FORMAT(cpa.create_time,'%Y-%m-%d') appLyTime,pro.name proName,
if(status_type=1,'已通过',if(status=1,'待审核','审核驳回')) auditStatus,cpa.create_time createTime, CASE WHEN cpa.status_type = '1' then '审核通过'
WHEN cpa.status_type = '2' AND cpa.status = '1' then '待分公司审核'
WHEN cpa.status_type = '2' AND cpa.status = '2' then '分公司审核通过'
WHEN cpa.status_type = '2' AND cpa.status = '3' then '分公司审核驳回'
WHEN cpa.status_type = '3' AND cpa.status = '1' then '待项目管理中心审核'
WHEN cpa.status_type = '3' AND cpa.status = '2' then '项目管理中心审核通过'
WHEN cpa.status_type = '3' AND cpa.status = '3' then '项目管理中心审核驳回'
WHEN cpa.status_type = '4' AND cpa.status = '1' then '待机具公司审核'
WHEN cpa.status_type = '4' AND cpa.status = '3' then '机具公司审核驳回'
WHEN cpa.status_type = '0' AND cpa.status = '0' then '已撤回'
END AS auditStatus,cpa.create_time createTime,
cpa.remark, cpa.status, cpa.updater, cpa.update_time updateTime, cpa.remark, cpa.status, cpa.updater, cpa.update_time updateTime,
if(cpa.type=1,'车辆','吊车') typeName , if(cpa.type=1,'车辆','吊车') typeName ,
cpa.apply_type applyType, cpa.status_type statusType,cpa.user_name userName cpa.apply_type applyType, cpa.status_type statusType,cpa.user_name userName