This commit is contained in:
linfso 2025-06-29 16:04:51 +08:00
parent 1d28e4ef75
commit b33b10717b
3 changed files with 20 additions and 0 deletions

View File

@ -58,4 +58,14 @@ public class EmisTmsCostQuotePrice extends BaseEntity
@JsonFormat(pattern = "yyyy-MM-dd")
private Date endDate;
// 扩展字段 ------
/** 起始网点名称 */
private String startSiteName;
/** 下一网点名称 */
private String nextSiteName;
/** 供应商名称 */
private String supplierName;
}

View File

@ -207,5 +207,10 @@
</select>
<select id="selectSupplierNameByCode" parameterType="String" resultType="string">
select a.name from emis_supplier a where a.code = #{code} limit 1
</select>
</mapper>

View File

@ -16,6 +16,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="supplierCode" column="supplier_code" />
<result property="startDate" column="start_date" />
<result property="endDate" column="end_date" />
<association property="startSiteName" column="start_site_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"/>
<association property="nextSiteName" column="next_site_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"/>
<association property="supplierName" column="supplier_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSupplierNameByCode"/>
</resultMap>
<sql id="selectEmisTmsCostQuotePriceVo">