Files
senmesh-zc/src/main/java/com/senmesh/component/action/mapper/ActionMapper.xml

19 lines
671 B
XML
Raw Normal View History

2026-01-05 16:35:46 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2025-06-11 09:42:13 +08:00
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2025-12-29 16:06:48 +08:00
<mapper namespace="com.senmesh.component.action.dao.ActionMapper">
<select id="listActionDTO" resultType="com.senmesh.component.action.dto.ActionDTO">
2025-06-11 09:42:13 +08:00
select t1.*,t2.nickname as createName
2026-01-05 16:35:46 +08:00
from uc_action t1 left join uc_user t2 on t1.create_by = t2.id and t2.deleted = FALSE
2025-06-11 09:42:13 +08:00
where
2026-01-05 16:35:46 +08:00
t1.deleted = FALSE
2025-06-11 09:42:13 +08:00
<if test="param.id != null">
and id = #{param.id}
</if>
<if test="param.unionId != null">
and t1.union_id = #{param.unionId}
</if>
order by t1.create_time asc
</select>
</mapper>