Commit ab7650de by jianan

客户告知书16

parent b5d9caa8
...@@ -3657,6 +3657,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -3657,6 +3657,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
// 商机更新一条告知书待签署的记录 // 商机更新一条告知书待签署的记录
MktLeadsAssignedTrack track = new MktLeadsAssignedTrack(); MktLeadsAssignedTrack track = new MktLeadsAssignedTrack();
track.setInformedId(informed.getId());
track.setPractitionerId(requestVO.getPractitionerId()); track.setPractitionerId(requestVO.getPractitionerId());
track.setCustomerId(newerCustomer.getId());// 商机的id还是得用旧的customerId track.setCustomerId(newerCustomer.getId());// 商机的id还是得用旧的customerId
track.setLeadsAssignedId(requestVO.getLeadsAssignedId()); track.setLeadsAssignedId(requestVO.getLeadsAssignedId());
...@@ -3705,8 +3706,8 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -3705,8 +3706,8 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
CommonResultIDResponseVO resp = new CommonResultIDResponseVO(); CommonResultIDResponseVO resp = new CommonResultIDResponseVO();
try { try {
String policyNo = requestVO.getPolicyNo(); String policyNo = requestVO.getPolicyNo();
String orderNo = poOrderDALService.findOrderNoByPolicyNo(policyNo); List<PoOrder> orderList = poOrderDALService.findByPolicyNo(policyNo);
if (StringUtils.isBlank(orderNo)) { if (CollectionUtils.isEmpty(orderList)) {
resp.setCommonResult(new CommonResult(false, "保单号不存在")); resp.setCommonResult(new CommonResult(false, "保单号不存在"));
return resp; return resp;
} }
...@@ -3772,6 +3773,8 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -3772,6 +3773,8 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
// 商机更新一条告知书已签署的记录 // 商机更新一条告知书已签署的记录
MktLeadsAssignedTrack track = new MktLeadsAssignedTrack(); MktLeadsAssignedTrack track = new MktLeadsAssignedTrack();
track.setPractitionerId(informed.getPractitionerId());
track.setLeadsAssignedId(informed.getLeadsId());
track.setInformedId(id); track.setInformedId(id);
track.setCustomerId(informed.getCustomerId()); track.setCustomerId(informed.getCustomerId());
track.setTrackTime(curDate); track.setTrackTime(curDate);
......
...@@ -31,5 +31,7 @@ public interface PoOrderMapper { ...@@ -31,5 +31,7 @@ public interface PoOrderMapper {
List<PoOrder> findByIds(List<Long> orderIds); List<PoOrder> findByIds(List<Long> orderIds);
List<PoOrder> findByPolicyNo(@Param("policyNo") String policyNo);
List<Long> findVehiclePolicyInfoByCustomerId(Long customerId); List<Long> findVehiclePolicyInfoByCustomerId(Long customerId);
} }
\ No newline at end of file
...@@ -76,4 +76,9 @@ public class PoOrderDALServiceImpl implements PoOrderDALService { ...@@ -76,4 +76,9 @@ public class PoOrderDALServiceImpl implements PoOrderDALService {
public List<Long> findVehiclePolicyInfoByCustomerId(Long customerId) { public List<Long> findVehiclePolicyInfoByCustomerId(Long customerId) {
return poOrderMapper.findVehiclePolicyInfoByCustomerId(customerId); return poOrderMapper.findVehiclePolicyInfoByCustomerId(customerId);
} }
@Override
public List<PoOrder> findByPolicyNo(String policyNo) {
return poOrderMapper.findByPolicyNo(policyNo);
}
} }
...@@ -29,4 +29,6 @@ public interface PoOrderDALService { ...@@ -29,4 +29,6 @@ public interface PoOrderDALService {
List<PoOrder> findByIds(List<Long> orderIds); List<PoOrder> findByIds(List<Long> orderIds);
List<Long> findVehiclePolicyInfoByCustomerId(Long customerId); List<Long> findVehiclePolicyInfoByCustomerId(Long customerId);
List<PoOrder> findByPolicyNo(String policyNo);
} }
...@@ -1151,6 +1151,13 @@ ...@@ -1151,6 +1151,13 @@
</foreach> </foreach>
</select> </select>
<select id="findByPolicyNo" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from ag_po_order
where policy_no = #{policyNo,jdbcType=VARCHAR}
</select>
<select id="findVehiclePolicyInfoByCustomerId" resultType="java.lang.Long"> <select id="findVehiclePolicyInfoByCustomerId" resultType="java.lang.Long">
select o.id select o.id
from ag_po_quotation_vehicle_relation v from ag_po_quotation_vehicle_relation v
......
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