md
This commit is contained in:
parent
9f2e721f86
commit
fb19ee1859
@ -157,5 +157,9 @@ public class EmisCustomerUser extends BaseEntity
|
|||||||
/* 专属业务员 */
|
/* 专属业务员 */
|
||||||
private String opEmpName;
|
private String opEmpName;
|
||||||
|
|
||||||
|
// 最近下单时间
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private Date lastOrderTime;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -73,7 +73,9 @@
|
|||||||
|
|
||||||
<association property="payeeName" column="payee" select="selectEmpNameByCode"/>
|
<association property="payeeName" column="payee" select="selectEmpNameByCode"/>
|
||||||
<association property="salesmenName" column="salesmen" select="selectEmpNameByCode"/>
|
<association property="salesmenName" column="salesmen" select="selectEmpNameByCode"/>
|
||||||
<association property="opEmpName" column="op_emp_code" select="selectEmpNameByCode"/>
|
<!-- <association property="opEmpName" column="op_emp_code" select="selectEmpNameByCode"/>-->
|
||||||
|
|
||||||
|
<association property="lastOrderTime" column="customer_code" select="selectLastOrderTimeByCustomerCode"/>
|
||||||
|
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
@ -82,6 +84,12 @@
|
|||||||
select a.name from emis_country a where a.code = #{code} limit 1
|
select a.name from emis_country a where a.code = #{code} limit 1
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectLastOrderTimeByCustomerCode" parameterType="String" resultType="date">
|
||||||
|
select send_date from emis_waybill where customer_code=#{code} order by send_date desc limit 1;
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<select id="selectRegionNameByCode" parameterType="String" resultType="string">
|
<select id="selectRegionNameByCode" parameterType="String" resultType="string">
|
||||||
select a.region_name from emis_region a where a.region_code = #{code} limit 1
|
select a.region_name from emis_region a where a.region_code = #{code} limit 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user