Files
senmesh-zc/src/main/java/com/senmesh/component/action/mapper/ActionMapper.xml
2026-01-05 16:35:46 +08:00

19 lines
671 B
XML

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.senmesh.component.action.dao.ActionMapper">
<select id="listActionDTO" resultType="com.senmesh.component.action.dto.ActionDTO">
select t1.*,t2.nickname as createName
from uc_action t1 left join uc_user t2 on t1.create_by = t2.id and t2.deleted = FALSE
where
t1.deleted = FALSE
<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>