This commit is contained in:
linfso 2024-07-01 17:25:45 +08:00
parent 9536832a13
commit 2134c18b51
2 changed files with 21 additions and 1 deletions

View File

@ -134,5 +134,10 @@
select a.settle_name from emis_settle_type a where a.settle_type = #{settleType} limit 1
</select>
<!-- 查询运单调整类型 -->
<select id="selectAjustTypeNameByCode" parameterType="string" resultType="string">
select a.type_name from emis_waybill_ajust_type a where a.type_code = #{typeCode} limit 1
</select>
</mapper>

View File

@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xdadan.erp.emis.mapper.EmisWaybillAjustApplyMapper">
<resultMap type="EmisWaybillAjustApply" id="BaseEmisWaybillAjustApplyResult">
<resultMap type="EmisWaybillAjustApply" id="BaseEmisWaybillAjustApplyResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
<result property="id" column="id" />
<result property="billCode" column="bill_code" />
<result property="applyType" column="apply_type" />
@ -27,6 +27,21 @@
<result property="centerConfirmManCode" column="center_confirm_man_code" />
<result property="centerConfirmDate" column="center_confirm_date" />
<result property="centerConfirmNote" column="center_confirm_note" />
<association property="applyTypeName" column="apply_type" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectAjustTypeNameByCode"/>
<association property="applyManName" column="apply_man_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectEmpNameByCode"/>
<association property="applySiteName" column="apply_site_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"/>
<association property="applyFinanceCenterName" column="apply_finance_center_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"/>
<association property="destConfirmSiteName" column="dest_confirm_site_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"/>
<association property="destConfirmManName" column="dest_confirm_man_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectEmpNameByCode"/>
<association property="destFinanceCenterName" column="dest_finance_center_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"/>
<association property="centerConfirmSiteName" column="center_confirm_site_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"/>
<association property="centerConfirmManName" column="center_confirm_man_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectEmpNameByCode"/>
</resultMap>