Commit bf4958c2 by jianan

客户告知书10

parent cd55ff84
......@@ -3654,6 +3654,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
// 商机更新一条告知书待签署的记录
MktLeadsAssignedTrack track = new MktLeadsAssignedTrack();
track.setPractitionerId(requestVO.getPractitionerId());
track.setCustomerId(newerCustomer.getId());// 商机的id还是得用旧的customerId
track.setLeadsAssignedId(requestVO.getLeadsAssignedId());
track.setTrackTime(curDate);
......
......@@ -47,6 +47,7 @@ public class AgPoInformed implements Serializable {
* practitioner_id
*/
private Long practitionerId;
private String practitionerName;
/**
* 保单号
......@@ -326,4 +327,12 @@ public class AgPoInformed implements Serializable {
public void setSignOssPath(String signOssPath) {
this.signOssPath = signOssPath;
}
public String getPractitionerName() {
return practitionerName;
}
public void setPractitionerName(String practitionerName) {
this.practitionerName = practitionerName;
}
}
\ No newline at end of file
......@@ -1404,7 +1404,7 @@
SELECT
a.customer_id opportunityId,
IFNULL(a.customer_name,c.NAME) name,
IFNULL(a.customer_mobile,c.mobile_no) mobileNo,
IFNULL(c.mobile_no,a.customer_mobile) mobileNo,
date_format(a.created_at, '%Y-%m-%d %H:%i:%s') opportunityDate,
if (p.source_from = 0 ,(SELECT cam.name from ag_md_mk_campaign cam where cam.id = p.mkt_campaign ),(SELECT md.drop_option_name from ag_md_drop_options md where p.source_from = md.id )) opportunityFrom,
a.id leadsAssignedId ,
......
......@@ -10,6 +10,7 @@
<result column="customer_name" jdbcType="VARCHAR" property="customerName" />
<result column="customer_mobile" jdbcType="VARCHAR" property="customerMobile" />
<result column="practitioner_id" jdbcType="BIGINT" property="practitionerId" />
<result column="practitioner_name" jdbcType="VARCHAR" property="practitionerName" />
<result column="policy_no" jdbcType="VARCHAR" property="policyNo" />
<result column="sign_date" jdbcType="VARCHAR" property="signDate" />
<result column="status" jdbcType="VARCHAR" property="status" />
......@@ -231,23 +232,24 @@
</update>
<select id="selectByRecord" parameterType="com.yd.dal.entity.customer.AgPoInformed" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ag_po_informed
p.name practitioner_name,
t.*
from ag_po_informed t left join ag_acl_practitioner p on t.practitioner_id = p.id
where 1=1
<if test="customerName != null">
and customer_name = #{customerName,jdbcType=VARCHAR}
and t.customer_name = #{customerName,jdbcType=VARCHAR}
</if>
<if test="customerMobile != null">
and customer_mobile = #{customerMobile,jdbcType=VARCHAR}
and t.customer_mobile = #{customerMobile,jdbcType=VARCHAR}
</if>
<if test="practitionerId != null">
and practitioner_id = #{practitionerId,jdbcType=BIGINT}
and t.practitioner_id = #{practitionerId,jdbcType=BIGINT}
</if>
<if test="policyNo != null">
and policy_no = #{policyNo,jdbcType=VARCHAR}
and t.policy_no = #{policyNo,jdbcType=VARCHAR}
</if>
<if test="signDate != null">
and sign_date = #{signDate,jdbcType=VARCHAR}
and t.sign_date = #{signDate,jdbcType=VARCHAR}
</if>
</select>
<select id="getNextInformedNo" resultType="java.lang.String" statementType="CALLABLE">
......
......@@ -13,7 +13,7 @@
<result column="pieces" jdbcType="INTEGER" property="pieces" />
<result column="remark" jdbcType="LONGVARCHAR" property="remark" />
<result column="customer_name" jdbcType="VARCHAR" property="customerName" />
<result column="customer_mobile" jdbcType="VARCHAR" property="customerMobile" />
<result column="customer_mobile" jdbcType="VARCHAR" property="customerMobile" typeHandler="com.yd.util.deshandler.DESTypeHandler"/>
<result column="is_active" jdbcType="INTEGER" property="isActive" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
......@@ -174,7 +174,7 @@
customer_name = #{customerName,jdbcType=VARCHAR},
</if>
<if test="customerMobile != null">
customer_mobile = #{customerMobile,jdbcType=VARCHAR},
customer_mobile = #{customerMobile,jdbcType=VARCHAR,typeHandler=com.yd.util.deshandler.DESTypeHandler},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment