|
@@ -19,6 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="deptId" column="dept_id" />
|
|
|
<result property="remarks" column="remarks" />
|
|
|
<result property="deptName" column="dept_name" />
|
|
|
+ <result property="createrName" column="creater_name" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTInvoiceContractorVo">
|
|
@@ -27,8 +28,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectTInvoiceContractorList" parameterType="TInvoiceContractor" resultMap="TInvoiceContractorResult">
|
|
|
- select d.id, d.contractor_name, d.contact, d.phonenumber, d.address, d.username, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks ,u.password from t_invoice_contractor d
|
|
|
- left join sys_user u on d.username=u.user_name and u.del_flag=0
|
|
|
+ select d.id, d.contractor_name, d.contact, d.phonenumber, d.address, d.username, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks ,u.password,su.nick_name creater_name from t_invoice_contractor d
|
|
|
+ left join sys_user u on d.username=u.user_name
|
|
|
+ left join sys_user su on su.user_id=to_number(d.creater_code) and u.del_flag=0
|
|
|
<where>
|
|
|
<if test="contractorName != null and contractorName != ''"> and contractor_name like concat(concat('%', #{contractorName}), '%')</if>
|
|
|
<if test="contact != null and contact != ''"> and contact = #{contact}</if>
|