修改语句bug

This commit is contained in:
YY
2025-07-15 11:05:19 +08:00
parent 086dc0fcb3
commit 1967931886
3 changed files with 4 additions and 2 deletions

View File

@ -221,7 +221,7 @@
ccl.remark, ccl.remark,
CASE CASE
WHEN ccl.approve_status = 0 AND ccl.work_flow_id IS NULL THEN '未开始' WHEN ccl.approve_status = 0 AND ccl.work_flow_id IS NULL THEN '未开始'
WHEN ccl.approve_status = 0 AND ccl.work_flow_id IS NOT NULL THEN '进行中' WHEN ccl.approve_status = 3 THEN '进行中'
ELSE '已结束' ELSE '已结束'
END AS approveStatusName, END AS approveStatusName,
CASE CASE

View File

@ -186,7 +186,7 @@
select cclsa.id, ccl.name,ccl.area,'张三' as applyUser , select cclsa.id, ccl.name,ccl.area,'张三' as applyUser ,
ccl.create_time as applyTime,cclsa.approve_status as approveStatus, ccl.create_time as applyTime,cclsa.approve_status as approveStatus,
case when cclsa.approve_status=0 then '未开始' case when cclsa.approve_status=0 and cclsa.work_flow_id is null then '未开始'
when cclsa.approve_status=0 and cclsa.work_flow_id is not null then '进行中' when cclsa.approve_status=0 and cclsa.work_flow_id is not null then '进行中'
else '已结束' else '已结束'
end as processStatusName, end as processStatusName,

View File

@ -87,11 +87,13 @@
</if> </if>
</where> </where>
order by cc.order_by asc
</select> </select>
<select id="selectMyPage" parameterType="object" <select id="selectMyPage" parameterType="object"
resultMap="CoscoCategoryResult"> resultMap="CoscoCategoryResult">
<include refid="selectCoscoCategoryVo"/> <include refid="selectCoscoCategoryVo"/>
order by order_by asc
</select> </select>
<select id="selectCoscoCategoryById" parameterType="String" <select id="selectCoscoCategoryById" parameterType="String"