From c0144e9d03472072f6c9eecef3f4347520b8328e Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期五, 19 四月 2024 10:47:51 +0800 Subject: [PATCH] 接口权限精确到按钮补充 --- ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml index 5c7434a..7908573 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/YwUnitMapper.xml @@ -33,6 +33,20 @@ where id = #{id} </select> + <select id="workList" resultType="com.ycl.platform.domain.vo.YwUnitVO"> + SELECT + a.*, + COUNT(b.id) AS work_order_count + FROM + t_yw_unit a + LEFT JOIN + t_work_order b ON a.id = b.unit_id AND b.deleted = 0 AND b.status = 'WAIT_DISTRIBUTE' + WHERE + a.deleted = 0 + GROUP BY + a.id; + </select> + <insert id="insertYwUnit" parameterType="YwUnit" useGeneratedKeys="true" keyProperty="id"> insert into t_yw_unit <trim prefix="(" suffix=")" suffixOverrides=","> -- Gitblit v1.8.0