Files
GEAR-OA/gear-oa/src/main/resources/mapper/oa/OaExpressMapper.xml
Joshi b3feb0d1c7 refactor(gear-oa):移除 OaExpressVo 查询中的 detail_id 字段
- 从 selectVoPagePlus 和 selectVoByIdPlus 查询中删除了 oe.detail_id 字段
- 此修改简化了查询结果结构,可能与业务需求变更或代码优化相关
2025-08-08 17:05:26 +08:00

75 lines
2.7 KiB
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.gear.oa.mapper.OaExpressMapper">
<resultMap type="com.gear.oa.domain.OaExpress" id="OaExpressResult">
<result property="expressId" column="express_id"/>
<result property="expressCode" column="express_code"/>
<result property="status" column="status"/>
<result property="supplyName" column="supply_name"/>
<result property="supplyPhone" column="supply_phone"/>
<result property="ownerId" column="owner_id"/>
<result property="ownerPhone" column="owner_phone"/>
<result property="planDate" column="plan_date"/>
<result property="expressType" column="express_type"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="delFlag" column="del_flag"/>
<result property="remark" column="remark"/>
</resultMap>
<select id="selectVoPagePlus" resultType="com.gear.oa.domain.vo.OaExpressVo">
select oe.express_id,
oe.express_code,
oe.status,
oe.supply_name,
oe.supply_phone,
oe.owner_id,
oe.owner_phone,
oe.plan_date,
oe.express_type,
oe.create_by,
oe.create_time,
oe.update_by,
oe.update_time,
oe.last_status,
oe.last_update_time,
oe.del_flag,
oe.remark,
su.nick_name as ownerName
from oa_express oe
left join sys_user su on su.user_id = oe.owner_id
${ew.customSqlSegment}
</select>
<select id="selectVoByIdPlus" resultType="com.gear.oa.domain.vo.OaExpressVo">
select oe.express_id,
oe.express_code,
oe.status,
oe.supply_name,
oe.supply_phone,
oe.owner_id,
oe.owner_phone,
oe.plan_date,
oe.express_type,
oe.create_by,
oe.create_time,
oe.update_by,
oe.update_time,
oe.last_status,
oe.last_update_time,
oe.del_flag,
oe.remark,
su.nick_name as ownerName
from oa_express oe
left join sys_user su on su.user_id = oe.owner_id
where express_id = #{expressId}
</select>
</mapper>