Commit 2961d4fb by Water Wang

resolve conflict

parents ac543027 2636be9b
package com.yd.api.practitioner;
import com.yd.api.practitioner.service.PractitionerPolicyService;
import com.yd.api.practitioner.service.PractitionerService;
import com.yd.api.practitioner.vo.login.PractitionerLoginRequestVO;
import com.yd.api.practitioner.vo.login.PractitionerLoginResponseVO;
import com.yd.api.practitioner.vo.media.MediaGetReqVO;
import com.yd.api.practitioner.vo.media.MediaGetRespVO;
import com.yd.api.practitioner.vo.opportunity.*;
import com.yd.api.practitioner.vo.policy.PolicyListQueryRequestVO;
import com.yd.api.practitioner.vo.policy.PolicyListQueryResponseVO;
import com.yd.api.practitioner.vo.policy.policyinfoquery.PolicyInfoQueryRequestVO;
import com.yd.api.practitioner.vo.policy.policyinfoquery.PolicyInfoQueryResponseVO;
import com.yd.api.practitioner.vo.rank.PractitionerRankRequestVO;
import com.yd.api.practitioner.vo.rank.PractitionerRankResponseVO;
import com.yd.api.practitioner.vo.recruit.*;
......@@ -27,6 +32,8 @@ public class PractitionerController {
@Autowired
private PractitionerService practitionerService;
@Autowired
private PractitionerPolicyService practitionerPolicyService;
/**
* 经纪人登录
......@@ -407,5 +414,31 @@ public class PractitionerController {
result.addResult(responseVO);
return result;
}
/**
* 经纪人保单列表查询接口
* @param requestVO 请求信息
* @return PolicyListQueryResponseVO
*/
@RequestMapping("/policyListQuery")
public Object practitionerPolicyListQuery(@RequestBody PolicyListQueryRequestVO requestVO){
JsonResult result = new JsonResult();
PolicyListQueryResponseVO responseVO = practitionerPolicyService.policyListQuery(requestVO);
result.setData(responseVO);
result.addResult(responseVO);
return result;
}
/**
* 经纪人保单详情查询接口
* @param requestVO 请求信息
* @return PolicyInfoQueryResponseVO
*/
@RequestMapping("/policyInfoQuery")
public Object policyInfoQuery(@RequestBody PolicyInfoQueryRequestVO requestVO){
JsonResult result = new JsonResult();
PolicyInfoQueryResponseVO responseVO = practitionerPolicyService.policyInfoQuery(requestVO);
result.setData(responseVO);
result.addResult(responseVO);
return result;
}
}
package com.yd.api.practitioner.service;
import com.yd.api.practitioner.vo.policy.PolicyListQueryRequestVO;
import com.yd.api.practitioner.vo.policy.PolicyListQueryResponseVO;
import com.yd.api.practitioner.vo.policy.policyinfoquery.PolicyInfoQueryRequestVO;
import com.yd.api.practitioner.vo.policy.policyinfoquery.PolicyInfoQueryResponseVO;
import org.springframework.stereotype.Service;
@Service("practitionerPolicyService")
public interface PractitionerPolicyService {
/**
* 经纪人保单列表查询
* @param requestVO 请求信息
* @return PolicyListQueryResponseVO
*/
PolicyListQueryResponseVO policyListQuery(PolicyListQueryRequestVO requestVO);
/**
* 经纪人保单详情查询
* @param requestVO 请求信息
* @return PolicyInfoQueryResponseVO
*/
PolicyInfoQueryResponseVO policyInfoQuery(PolicyInfoQueryRequestVO requestVO);
}
package com.yd.api.practitioner.vo.policy;
import com.yd.dal.entity.order.CustomerPolicyInfo;
public class PolicyInfo extends CustomerPolicyInfo {
}
\ No newline at end of file
package com.yd.api.practitioner.vo.policy;
public class PolicyListQueryRequestVO {
private Long practitionerId;
private Integer time;
public Long getPractitionerId() {
return practitionerId;
}
public void setPractitionerId(Long practitionerId) {
this.practitionerId = practitionerId;
}
public Integer getTime() {
return time;
}
public void setTime(Integer time) {
this.time = time;
}
}
package com.yd.api.practitioner.vo.policy;
import com.yd.api.result.CommonResult;
import java.util.List;
public class PolicyListQueryResponseVO {
private List<PolicyInfo> policyInfoList;
private CommonResult commonResult;
public List<PolicyInfo> getPolicyInfoList() {
return policyInfoList;
}
public void setPolicyInfoList(List<PolicyInfo> policyInfoList) {
this.policyInfoList = policyInfoList;
}
public CommonResult getCommonResult() {
return commonResult;
}
public void setCommonResult(CommonResult commonResult) {
this.commonResult = commonResult;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class BuildingOrderInfo {
private String address; //详细地址
private String roomQty; //房间数范围
/**
* 获取属性 address 详细地址
* @return address
*/
public String getAddress() {
return address;
}
/**
* 属性赋值 address 详细地址
* @param address
*/
public void setAddress(String address) {
this.address = address;
}
/**
* 获取属性 roomQty 房间数范围
* @return the roomQty
*/
public String getRoomQty() {
return roomQty;
}
/**
* 属性赋值 roomQty 房间数范围
* @param roomQty the roomQty to set
*/
public void setRoomQty(String roomQty) {
this.roomQty = roomQty;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class DestinationInfo {
private Integer destinationType;//目的地类型 1-洲;2-国家;3-地区
private Long destinationId;//对应的洲、国家、地区ID
private String destinationName;//目的地名称
public Integer getDestinationType() {
return destinationType;
}
public void setDestinationType(Integer destinationType) {
this.destinationType = destinationType;
}
public Long getDestinationId() {
return destinationId;
}
public void setDestinationId(Long destinationId) {
this.destinationId = destinationId;
}
public String getDestinationName() {
return destinationName;
}
public void setDestinationName(String destinationName) {
this.destinationName = destinationName;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class EleInvoiceInfo {
private boolean isHaveEleInvoiceUrl;//该保险公司是否有电子发票获取地址 0-无,1-有
private String eleInvoiceUrl;//保单电子发票获取地址
public boolean isHaveEleInvoiceUrl() {
return isHaveEleInvoiceUrl;
}
public void setHaveEleInvoiceUrl(boolean haveEleInvoiceUrl) {
isHaveEleInvoiceUrl = haveEleInvoiceUrl;
}
public String getEleInvoiceUrl() {
return eleInvoiceUrl;
}
public void setEleInvoiceUrl(String eleInvoiceUrl) {
this.eleInvoiceUrl = eleInvoiceUrl;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class HolderInfo extends PersonBasicInfo {
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class IDInfo {
private Long idType;//证件类型 1-身份证,2-护照,3-港澳身份证,4-台胞证,9-其他,20-组织机构代码
private String idNo;//证件号码
private Integer isIdLongTerm;//被保人证件是否长期有效 0=No 1=Yes
private String idEffectiveFrom;//证件有效日期 (起),格式yyyy-MM-dd
private String idEffectiveTo;//证件有效日期 (终),格式yyyy-MM-dd(长期有效则传3000-01-01)
private String idCardFront;//身份证正面照片上传返回地址
private String idCardFrontWx;//身份证正面照片上传返回地址
private String idCardBack;//身份证反面照片上传返回地址
private String idCardBackWx;//身份证反面照片上传返回地址
public Long getIdType() {
return idType;
}
public void setIdType(Long idType) {
this.idType = idType;
}
public String getIdNo() {
return idNo;
}
public void setIdNo(String idNo) {
this.idNo = idNo;
}
public Integer getIsIdLongTerm() {
return isIdLongTerm;
}
public void setIsIdLongTerm(Integer isIdLongTerm) {
this.isIdLongTerm = isIdLongTerm;
}
public String getIdEffectiveFrom() {
return idEffectiveFrom;
}
public void setIdEffectiveFrom(String idEffectiveFrom) {
this.idEffectiveFrom = idEffectiveFrom;
}
public String getIdEffectiveTo() {
return idEffectiveTo;
}
public void setIdEffectiveTo(String idEffectiveTo) {
this.idEffectiveTo = idEffectiveTo;
}
public String getIdCardFront() {
return idCardFront;
}
public void setIdCardFront(String idCardFront) {
this.idCardFront = idCardFront;
}
public String getIdCardFrontWx() {
return idCardFrontWx;
}
public void setIdCardFrontWx(String idCardFrontWx) {
this.idCardFrontWx = idCardFrontWx;
}
public String getIdCardBack() {
return idCardBack;
}
public void setIdCardBack(String idCardBack) {
this.idCardBack = idCardBack;
}
public String getIdCardBackWx() {
return idCardBackWx;
}
public void setIdCardBackWx(String idCardBackWx) {
this.idCardBackWx = idCardBackWx;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class InsureFactorInfo {
private Integer socialInsured;//(社保:新农合 1-有 2-无)
private String coverTerm;//保障计划(终身保障/保障至xx岁)
private Integer paymentTerm;//缴费期限
private String paymentTermUnit;//缴费单位
private Integer payInterval;//缴费间隔
private String isInsure;//是否投保(投保,不投保)
private Integer adultCount;//成年人数目
private Integer childCount;//未成年人数目
private Integer eldCount;//老年人数目
private Integer coverLength;//1-365 days
private DestinationInfo destinationInfo;//目的地信息
private VehicleOrderInfo vehicleInfo;//标的信息--驾乘险
private BuildingOrderInfo buildingInfo;//标的信息--家财险
public Integer getSocialInsured() {
return socialInsured;
}
public void setSocialInsured(Integer socialInsured) {
this.socialInsured = socialInsured;
}
public String getCoverTerm() {
return coverTerm;
}
public void setCoverTerm(String coverTerm) {
this.coverTerm = coverTerm;
}
public Integer getPaymentTerm() {
return paymentTerm;
}
public void setPaymentTerm(Integer paymentTerm) {
this.paymentTerm = paymentTerm;
}
public String getPaymentTermUnit() {
return paymentTermUnit;
}
public void setPaymentTermUnit(String paymentTermUnit) {
this.paymentTermUnit = paymentTermUnit;
}
public Integer getPayInterval() {
return payInterval;
}
public void setPayInterval(Integer payInterval) {
this.payInterval = payInterval;
}
public String getIsInsure() {
return isInsure;
}
public void setIsInsure(String isInsure) {
this.isInsure = isInsure;
}
public Integer getAdultCount() {
return adultCount;
}
public void setAdultCount(Integer adultCount) {
this.adultCount = adultCount;
}
public Integer getChildCount() {
return childCount;
}
public void setChildCount(Integer childCount) {
this.childCount = childCount;
}
public Integer getEldCount() {
return eldCount;
}
public void setEldCount(Integer eldCount) {
this.eldCount = eldCount;
}
public Integer getCoverLength() {
return coverLength;
}
public void setCoverLength(Integer coverLength) {
this.coverLength = coverLength;
}
public DestinationInfo getDestinationInfo() {
return destinationInfo;
}
public void setDestinationInfo(DestinationInfo destinationInfo) {
this.destinationInfo = destinationInfo;
}
public VehicleOrderInfo getVehicleInfo() {
return vehicleInfo;
}
public void setVehicleInfo(VehicleOrderInfo vehicleInfo) {
this.vehicleInfo = vehicleInfo;
}
public BuildingOrderInfo getBuildingInfo() {
return buildingInfo;
}
public void setBuildingInfo(BuildingOrderInfo buildingInfo) {
this.buildingInfo = buildingInfo;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class InsuredBirthAddressInfo {
private Long birthProvinceId;//被保人出生地省份
private Long birthCityId;//被保人出生地城市
private Long birthDistrictId;//被保人出生地地区
private String birthAddress;//被保人出生地地址
public Long getBirthProvinceId() {
return birthProvinceId;
}
public void setBirthProvinceId(Long birthProvinceId) {
this.birthProvinceId = birthProvinceId;
}
public Long getBirthCityId() {
return birthCityId;
}
public void setBirthCityId(Long birthCityId) {
this.birthCityId = birthCityId;
}
public Long getBirthDistrictId() {
return birthDistrictId;
}
public void setBirthDistrictId(Long birthDistrictId) {
this.birthDistrictId = birthDistrictId;
}
public String getBirthAddress() {
return birthAddress;
}
public void setBirthAddress(String birthAddress) {
this.birthAddress = birthAddress;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
import java.util.List;
public class InsuredInfo extends PersonBasicInfo{
private Long relationType;//与投保人关系,1-本人,2-配偶,3-父母,4-子女,5-其他
private Double insuredHeight;//被保人身高,单位:cm
private Double insuredWeight;//被保人体重,单位:kg
private InsuredBirthAddressInfo insuredBirthInfo;//被保人出生地信息
private List<UndQueInfo> undQueList;//健康问卷列表
private List<LifeProductElementInfo> lifeProductElementInfoList;//寿险与重疾信息
public Long getRelationType() {
return relationType;
}
public void setRelationType(Long relationType) {
this.relationType = relationType;
}
public Double getInsuredHeight() {
return insuredHeight;
}
public void setInsuredHeight(Double insuredHeight) {
this.insuredHeight = insuredHeight;
}
public Double getInsuredWeight() {
return insuredWeight;
}
public void setInsuredWeight(Double insuredWeight) {
this.insuredWeight = insuredWeight;
}
public InsuredBirthAddressInfo getInsuredBirthInfo() {
return insuredBirthInfo;
}
public void setInsuredBirthInfo(InsuredBirthAddressInfo insuredBirthInfo) { this.insuredBirthInfo = insuredBirthInfo; }
public List<UndQueInfo> getUndQueList() {
return undQueList;
}
public void setUndQueList(List<UndQueInfo> undQueList) {
this.undQueList = undQueList;
}
/**
* 获取属性 lifeProductElementInfoList
* @return lifeProductElementInfoList
*/
public List<LifeProductElementInfo> getLifeProductElementInfoList() {
return lifeProductElementInfoList;
}
/**
* 获取属性 lifeProductElementInfoList
* @param lifeProductElementInfoList
*/
public void setLifeProductElementInfoList(List<LifeProductElementInfo> lifeProductElementInfoList) {
this.lifeProductElementInfoList = lifeProductElementInfoList;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class LifeProductElementInfo {
private Long factorId;
private String factorName;
private String factorCode;
private Long elementId;
private String elementText;
private Long policyHolderId;
/**
* 获取属性 factorId
* @return factorId
*/
public Long getFactorId() {
return factorId;
}
/**
* 获取属性 factorId
* @param factorId
*/
public void setFactorId(Long factorId) {
this.factorId = factorId;
}
/**
* 获取属性 factorName
* @return factorName
*/
public String getFactorName() {
return factorName;
}
/**
* 获取属性 factorCode
* @return factorCode
*/
public String getFactorCode() {
return factorCode;
}
/**
* 获取属性 factorCode
* @param factorCode
*/
public void setFactorCode(String factorCode) {
this.factorCode = factorCode;
}
/**
* 获取属性 factorName
* @param factorName
*/
public void setFactorName(String factorName) {
this.factorName = factorName;
}
/**
* 获取属性 elementId
* @return elementId
*/
public Long getElementId() {
return elementId;
}
/**
* 获取属性 elementId
* @param elementId
*/
public void setElementId(Long elementId) {
this.elementId = elementId;
}
/**
* 获取属性 elementText
* @return elementText
*/
public String getElementText() {
return elementText;
}
/**
* 获取属性 elementText
* @param elementText
*/
public void setElementText(String elementText) {
this.elementText = elementText;
}
/**
* 获取属性 policyHolderId
* @return policyHolderId
*/
public Long getPolicyHolderId() {
return policyHolderId;
}
/**
* 获取属性 policyHolderId
* @param policyHolderId
*/
public void setPolicyHolderId(Long policyHolderId) {
this.policyHolderId = policyHolderId;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class PersonBasicInfo {
private long id;//ID
private String name;//姓名
private String mobileNo;//手机号
private String email;//邮箱
private Integer gender;//性别 1-Male,2-FeMale
private String birthDay;//生日,格式yyyy-MM-dd
private Integer age;//年龄
private Long provinceId;//省份ID
private Long cityId;//城市ID
private Long districtId;//区(县)ID
private String address;//地址
private String postCode;//邮编
private Long occupationId;//职业代码ID
private String occupationName;//职业类别
private String salaryType;//各种来源
private Double salary;//去年总收入
private IDInfo idInfo;//证件信息
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMobileNo() {
return mobileNo;
}
public void setMobileNo(String mobileNo) {
this.mobileNo = mobileNo;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public Integer getGender() {
return gender;
}
public void setGender(Integer gender) {
this.gender = gender;
}
public String getBirthDay() {
return birthDay;
}
public void setBirthDay(String birthDay) {
this.birthDay = birthDay;
}
public Integer getAge() {
return age;
}
public void setAge(Integer age) {
this.age = age;
}
public Long getProvinceId() {
return provinceId;
}
public void setProvinceId(Long provinceId) {
this.provinceId = provinceId;
}
public Long getCityId() {
return cityId;
}
public void setCityId(Long cityId) {
this.cityId = cityId;
}
public Long getDistrictId() {
return districtId;
}
public void setDistrictId(Long districtId) {
this.districtId = districtId;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getPostCode() {
return postCode;
}
public void setPostCode(String postCode) {
this.postCode = postCode;
}
public Long getOccupationId() {
return occupationId;
}
public void setOccupationId(Long occupationId) {
this.occupationId = occupationId;
}
public String getOccupationName() {
return occupationName;
}
public void setOccupationName(String occupationName) {
this.occupationName = occupationName;
}
public String getSalaryType() {
return salaryType;
}
public void setSalaryType(String salaryType) {
this.salaryType = salaryType;
}
public Double getSalary() {
return salary;
}
public void setSalary(Double salary) {
this.salary = salary;
}
public IDInfo getIdInfo() { return idInfo; }
public void setIdInfo(IDInfo idInfo) {
this.idInfo = idInfo;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class PolicyFactorInfo {
private String productId;
private String productCode;
private String productName;
private String insurerId;
private String insurerName;
private Double premium;
private Double commission;
private Double commissionRate;
private String policyType;
private String payFrequency;
private String payCommissionStatus;
private String commissionType;
private String insuredAmount;
private String relationship;
private String amountUnit;
private Integer period;
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getProductCode() {
return productCode;
}
public void setProductCode(String productCode) {
this.productCode = productCode;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getInsurerId() {
return insurerId;
}
public void setInsurerId(String insurerId) {
this.insurerId = insurerId;
}
public String getInsurerName() {
return insurerName;
}
public void setInsurerName(String insurerName) {
this.insurerName = insurerName;
}
public Double getPremium() {
return premium;
}
public void setPremium(Double premium) {
this.premium = premium;
}
public Double getCommission() {
return commission;
}
public void setCommission(Double commission) {
this.commission = commission;
}
public Double getCommissionRate() {
return commissionRate;
}
public void setCommissionRate(Double commissionRate) {
this.commissionRate = commissionRate;
}
public String getPolicyType() {
return policyType;
}
public void setPolicyType(String policyType) {
this.policyType = policyType;
}
public String getPayFrequency() {
return payFrequency;
}
public void setPayFrequency(String payFrequency) {
this.payFrequency = payFrequency;
}
public String getPayCommissionStatus() {
return payCommissionStatus;
}
public void setPayCommissionStatus(String payCommissionStatus) {
this.payCommissionStatus = payCommissionStatus;
}
public String getCommissionType() {
return commissionType;
}
public void setCommissionType(String commissionType) {
this.commissionType = commissionType;
}
public String getInsuredAmount() {
return insuredAmount;
}
public void setInsuredAmount(String insuredAmount) {
this.insuredAmount = insuredAmount;
}
public String getRelationship() {
return relationship;
}
public void setRelationship(String relationship) {
this.relationship = relationship;
}
public String getAmountUnit() {
return amountUnit;
}
public void setAmountUnit(String amountUnit) {
this.amountUnit = amountUnit;
}
public Integer getPeriod() {
return period;
}
public void setPeriod(Integer period) {
this.period = period;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class PolicyInfoQueryRequestVO {
private Long orderId;//订单ID
private String orderNo;//订单号
private Long policyId;//保单ID
private String policyNo;//保单号
private Integer platform;//平台,1--yd,2--EGolden
/**
* 获取属性 orderId 订单ID
* @return orderId
*/
public Long getOrderId(){
return this.orderId;
}
/**
* 属性赋值 orderId 订单ID
* @param orderId
*/
public void setOrderId(Long orderId){
this.orderId = orderId;
}
/**
* 获取属性 orderNo 订单号
* @return orderNo
*/
public String getOrderNo(){
return this.orderNo;
}
/**
* 属性赋值 orderNo 订单号
* @param orderNo
*/
public void setOrderNo(String orderNo){
this.orderNo = orderNo;
}
public Long getPolicyId() {
return policyId;
}
public void setPolicyId(Long policyId) {
this.policyId = policyId;
}
public String getPolicyNo() {
return policyNo;
}
public void setPolicyNo(String policyNo) {
this.policyNo = policyNo;
}
public Integer getPlatform() {
return platform;
}
public void setPlatform(Integer platform) {
this.platform = platform;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
import com.yd.api.result.CommonResult;
import java.util.List;
public class PolicyInfoQueryResponseVO {
private Long orderId;//订单ID
private String orderNo;//订单号
private Long policyId;//保单id
private String policyNo;//保单号
private Long customerId;//操作人用户Id
private String orderDate;//下单日期
private String startDate;//保险起期
private String endDate;//保险止期
private Double price;//价格
private String status;//保单状态
private ProductInfo productInfo;//产品信息
private EleInvoiceInfo eleInvoiceInfo;//电子发票信息
private ReferralInfo referralInfo;//推荐金信息
private InsureFactorInfo insureFactorInfo;//投保因子信息
private HolderInfo holderInfo;//投保人
private List<InsuredInfo> insuredInfos;//被保险人对象列表
private RenewBankInfo renewBankInfo;//续保银行卡信息
private List<PolicyFactorInfo> policyFactorInfos;//寿险投保因子相关信息
private CommonResult commonResult;
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public String getOrderNo() {
return orderNo;
}
public void setOrderNo(String orderNo) {
this.orderNo = orderNo;
}
public Long getPolicyId() {
return policyId;
}
public void setPolicyId(Long policyId) {
this.policyId = policyId;
}
public String getPolicyNo() {
return policyNo;
}
public void setPolicyNo(String policyNo) {
this.policyNo = policyNo;
}
public Long getCustomerId() {
return customerId;
}
public void setCustomerId(Long customerId) {
this.customerId = customerId;
}
public String getOrderDate() {
return orderDate;
}
public void setOrderDate(String orderDate) {
this.orderDate = orderDate;
}
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public String getStatus() {
return status;
}
public void setStatus(String status) { this.status = status; }
public ProductInfo getProductInfo() {
return productInfo;
}
public void setProductInfo(ProductInfo productInfo) {
this.productInfo = productInfo;
}
public EleInvoiceInfo getEleInvoiceInfo() {
return eleInvoiceInfo;
}
public void setEleInvoiceInfo(EleInvoiceInfo eleInvoiceInfo) {
this.eleInvoiceInfo = eleInvoiceInfo;
}
public ReferralInfo getReferralInfo() {
return referralInfo;
}
public void setReferralInfo(ReferralInfo referralInfo) {
this.referralInfo = referralInfo;
}
public InsureFactorInfo getInsureFactorInfo() {
return insureFactorInfo;
}
public void setInsureFactorInfo(InsureFactorInfo insureFactorInfo) {
this.insureFactorInfo = insureFactorInfo;
}
public HolderInfo getHolderInfo() { return holderInfo; }
public void setHolderInfo(HolderInfo holderInfo) { this.holderInfo = holderInfo; }
public List<InsuredInfo> getInsuredInfos() { return insuredInfos; }
public void setInsuredInfos(List<InsuredInfo> insuredInfos) { this.insuredInfos = insuredInfos; }
public RenewBankInfo getRenewBankInfo() {
return renewBankInfo;
}
public void setRenewBankInfo(RenewBankInfo renewBankInfo) {
this.renewBankInfo = renewBankInfo;
}
public List<PolicyFactorInfo> getPolicyFactorInfos() {
return policyFactorInfos;
}
public void setPolicyFactorInfos(List<PolicyFactorInfo> policyFactorInfos) {
this.policyFactorInfos = policyFactorInfos;
}
public CommonResult getCommonResult() { return commonResult; }
public void setCommonResult(CommonResult commonResult) { this.commonResult = commonResult; }
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class ProductInfo {
private Long planId;//计划ID
private String planName;//计划名称
private Long productId;//方案ID
private String productName;//方案ID
private Long insureId;//保险公司Id
private String insureName;//保险公司名称
private boolean noPlanProduct;//是否为无plan的方案
private Long planIdOld;//旧的方案ID
private String planNameOld;//旧的方案名称
public Long getPlanId() {
return planId;
}
public void setPlanId(Long planId) {
this.planId = planId;
}
public String getPlanName() {
return planName;
}
public void setPlanName(String planName) {
this.planName = planName;
}
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public Long getInsureId() {
return insureId;
}
public void setInsureId(Long insureId) {
this.insureId = insureId;
}
public String getInsureName() {
return insureName;
}
public void setInsureName(String insureName) {
this.insureName = insureName;
}
public boolean isNoPlanProduct() {
return noPlanProduct;
}
public void setNoPlanProduct(boolean noPlanProduct) {
this.noPlanProduct = noPlanProduct;
}
public Long getPlanIdOld() {
return planIdOld;
}
public void setPlanIdOld(Long planIdOld) {
this.planIdOld = planIdOld;
}
public String getPlanNameOld() {
return planNameOld;
}
public void setPlanNameOld(String planNameOld) {
this.planNameOld = planNameOld;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class ReferralInfo {
private Double referralRate;//推荐金比例
private Double referralAmount;//推荐金金额
public Double getReferralRate() {
return referralRate;
}
public void setReferralRate(Double referralRate) {
this.referralRate = referralRate;
}
public Double getReferralAmount() {
return referralAmount;
}
public void setReferralAmount(Double referralAmount) {
this.referralAmount = referralAmount;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class RenewBankInfo {
private String cardHolder;// 卡主名字
private Long bankId;
private String bank;//所属银行
private String cardNo;//卡号
private String reserveMobileNo; //银行预留电话号码
private String bankCityName;//开户行所在地
private String autoPayFlag;//保险费过期未付选择
public String getCardHolder() {
return cardHolder;
}
public void setCardHolder(String cardHolder) {
this.cardHolder = cardHolder;
}
public String getBank() {
return bank;
}
public void setBank(String bank) {
this.bank = bank;
}
public String getCardNo() {
return cardNo;
}
public void setCardNo(String cardNo) {
this.cardNo = cardNo;
}
public Long getBankId() {
return bankId;
}
public void setBankId(Long bankId) {
this.bankId = bankId;
}
/**
* 获取属性 reserveMobileNo
* @return reserveMobileNo
*/
public String getReserveMobileNo() {
return reserveMobileNo;
}
/**
* 获取属性 reserveMobileNo
* @param reserveMobileNo
*/
public void setReserveMobileNo(String reserveMobileNo) {
this.reserveMobileNo = reserveMobileNo;
}
/**
* 获取属性 bankCityName 开户行所在地
* @return bankCityName
*/
public String getBankCityName() {
return bankCityName;
}
/**
* 获取属性 bankCityName 开户行所在地
* @param bankCityName
*/
public void setBankCityName(String bankCityName) {
this.bankCityName = bankCityName;
}
/**
* 获取属性 autoPayFlag 保险费过期未付选择
* @return autoPayFlag
*/
public String getAutoPayFlag() {
return autoPayFlag;
}
/**
* 获取属性 autoPayFlag 保险费过期未付选择
* @param autoPayFlag
*/
public void setAutoPayFlag(String autoPayFlag) {
this.autoPayFlag = autoPayFlag;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class UndQueInfo {
private Long questionVerifyId;//问卷ID,来源于9.4疾病-问卷查询接口
private String answer;//Y 或者 N
/**
* 获取属性 questionVerifyId 问卷ID,来源于9.4疾病-问卷查询接口
* @return questionVerifyId
*/
public Long getQuestionVerifyId(){
return this.questionVerifyId;
}
/**
* 属性赋值 questionVerifyId 问卷ID,来源于9.4疾病-问卷查询接口
* @param questionVerifyId
*/
public void setQuestionVerifyId(Long questionVerifyId){
this.questionVerifyId = questionVerifyId;
}
/**
* 获取属性 answer Y 或者 N
* @return answer
*/
public String getAnswer(){
return this.answer;
}
/**
* 属性赋值 answer Y 或者 N
* @param answer
*/
public void setAnswer(String answer){
this.answer = answer;
}
}
package com.yd.api.practitioner.vo.policy.policyinfoquery;
public class VehicleOrderInfo {
private String licenseNo;//车牌号
private Integer seatCount;//核定座位数
private String frameNo;//车架号
/**
* 获取属性licenseNo 车牌号
*/
public String getLicenseNo() {
return licenseNo;
}
/**
* 属性设置licenseNo 车牌号
* @param licenseNo
*/
public void setLicenseNo(String licenseNo) {
this.licenseNo = licenseNo;
}
/**
* 获取属性seatCount 核定座位数
*/
public Integer getSeatCount() {
return seatCount;
}
/**
* 属性设置seatCount 核定座位数
* @param seatCount
*/
public void setSeatCount(Integer seatCount) {
this.seatCount = seatCount;
}
/**
* 获取属性frameNo 车架号
*/
public String getFrameNo() {
return frameNo;
}
/**
* 属性设值 frameNo 车架号
* @param frameNo
*/
public void setFrameNo(String frameNo) {
this.frameNo = frameNo;
}
}
......@@ -64,4 +64,5 @@ public class PractitionerBasicInfo {
public void setGender(String gender) {
this.gender = gender;
}
}
package com.yd.dal.entity.customer.practitioner;
public class SubordinateSystemMemberInfoE {
private Long practitionerId;
private String name;
private String levelCode;
private String levelName;
private Double fyp;
private Double fyc;
private Integer count;
private String mobileNo;
public Long getPractitionerId() {
return practitionerId;
}
public void setPractitionerId(Long practitionerId) {
this.practitionerId = practitionerId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLevelCode() {
return levelCode;
}
public void setLevelCode(String levelCode) {
this.levelCode = levelCode;
}
public String getLevelName() {
return levelName;
}
public void setLevelName(String levelName) {
this.levelName = levelName;
}
public Double getFyp() {
return fyp;
}
public void setFyp(Double fyp) {
this.fyp = fyp;
}
public Double getFyc() {
return fyc;
}
public void setFyc(Double fyc) {
this.fyc = fyc;
}
public Integer getCount() {
return count;
}
public void setCount(Integer count) {
this.count = count;
}
public String getMobileNo() {
return mobileNo;
}
public void setMobileNo(String mobileNo) {
this.mobileNo = mobileNo;
}
}
package com.yd.dal.entity.meta;
public class OptionsEGolden {
private Integer optId;
private Integer mstId;
private String optName;
private String optAttr;
private String optOrder;
public Integer getOptId() {
return optId;
}
public void setOptId(Integer optId) {
this.optId = optId;
}
public Integer getMstId() {
return mstId;
}
public void setMstId(Integer mstId) {
this.mstId = mstId;
}
public String getOptName() {
return optName;
}
public void setOptName(String optName) {
this.optName = optName;
}
public String getOptAttr() {
return optAttr;
}
public void setOptAttr(String optAttr) {
this.optAttr = optAttr;
}
public String getOptOrder() {
return optOrder;
}
public void setOptOrder(String optOrder) {
this.optOrder = optOrder;
}
}
package com.yd.dal.entity.order;
import com.google.common.base.Strings;
import com.yd.util.CommonUtil;
import java.util.Date;
public class CustomerPolicyInfo implements Comparable<CustomerPolicyInfo>{
private Long orderId;
private String orderNo;
private String policyNo;
private String holderName;
private String destination;
private String planName;
private String productName;
private String orderDate;
private String startDate;
private String endDate;
private Double referralAmount;
private Double orderPrice;
private boolean noPlanProduct;
private Integer platform;//1、银盾在线,2、EGolden
private Long planId;
private Long productId;
public Long getOrderId() {
return orderId;
}
public void setOrderId(Long orderId) {
this.orderId = orderId;
}
public String getOrderNo() {
return orderNo;
}
public void setOrderNo(String orderNo) {
this.orderNo = orderNo;
}
public String getPolicyNo() {
return policyNo;
}
public void setPolicyNo(String policyNo) {
this.policyNo = policyNo;
}
public String getHolderName() {
return holderName;
}
public void setHolderName(String holderName) {
this.holderName = holderName;
}
public String getDestination() {
return destination;
}
public void setDestination(String destination) {
this.destination = destination;
}
public String getPlanName() {
return planName;
}
public void setPlanName(String planName) {
this.planName = planName;
}
public String getOrderDate() {
return orderDate;
}
public void setOrderDate(String orderDate) {
this.orderDate = orderDate;
}
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public Double getReferralAmount() {
return referralAmount;
}
public void setReferralAmount(Double referralAmount) {
this.referralAmount = referralAmount;
}
public Double getOrderPrice() {
return orderPrice;
}
public void setOrderPrice(Double orderPrice) {
this.orderPrice = orderPrice;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public boolean isNoPlanProduct() {
return noPlanProduct;
}
public void setNoPlanProduct(boolean noPlanProduct) {
this.noPlanProduct = noPlanProduct;
}
public Integer getPlatform() {
return platform;
}
public void setPlatform(Integer platform) {
this.platform = platform;
}
public Long getPlanId() {
return planId;
}
public void setPlanId(Long planId) {
this.planId = planId;
}
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
@Override
public int compareTo(CustomerPolicyInfo o) {
String orderDate1 = o.getOrderDate();
if(!Strings.isNullOrEmpty(orderDate) && !Strings.isNullOrEmpty(orderDate1)){
Date orderDateDT = CommonUtil.stringParseDate(orderDate,"yyyy-MM-dd HH:mm:ss");
Date orderDate1DT = CommonUtil.stringParseDate(orderDate1,"yyyy-MM-dd HH:mm:ss");
if(orderDate1DT != null && orderDateDT != null){
return orderDate1DT.compareTo(orderDateDT);
}else{
return 0;
}
}else{
return 0;
}
}
}
package com.yd.dal.entity.order;
public class PolicyDetailInfoE {
private String orderNo;
private String policyNo;
private String policyStatus;
private String orderDate;
private String startDate;
private String endDate;
private String holderId;
private String holderName;
private String holderIdNoType;
private String holderIdNo;
private String holderSex;
private String holderBirthday;
private String holderMobileNo;
private String insuredId;
private String insuredName;
private String insuredIdNoType;
private String insuredIdNo;
private String insuredSex;
private String insuredBirthday;
private String insuredMobileNo;
private String productId;
private String productCode;
private String productName;
private String insurerId;
private String insurerName;
private Double premium;
private Double commission;
private Double commissionRate;
private String policyType;
private String payFrequency;
private String payCommissionStatus;
private String commissionType;
public String getOrderNo() {
return orderNo;
}
public void setOrderNo(String orderNo) {
this.orderNo = orderNo;
}
public String getPolicyNo() {
return policyNo;
}
public void setPolicyNo(String policyNo) {
this.policyNo = policyNo;
}
public String getPolicyStatus() {
return policyStatus;
}
public void setPolicyStatus(String policyStatus) {
this.policyStatus = policyStatus;
}
public String getOrderDate() {
return orderDate;
}
public void setOrderDate(String orderDate) {
this.orderDate = orderDate;
}
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public String getHolderId() {
return holderId;
}
public void setHolderId(String holderId) {
this.holderId = holderId;
}
public String getHolderName() {
return holderName;
}
public void setHolderName(String holderName) {
this.holderName = holderName;
}
public String getHolderIdNo() {
return holderIdNo;
}
public void setHolderIdNo(String holderIdNo) {
this.holderIdNo = holderIdNo;
}
public String getHolderSex() {
return holderSex;
}
public void setHolderSex(String holderSex) {
this.holderSex = holderSex;
}
public String getHolderBirthday() {
return holderBirthday;
}
public void setHolderBirthday(String holderBirthday) {
this.holderBirthday = holderBirthday;
}
public String getHolderMobileNo() {
return holderMobileNo;
}
public void setHolderMobileNo(String holderMobileNo) {
this.holderMobileNo = holderMobileNo;
}
public String getInsuredId() {
return insuredId;
}
public void setInsuredId(String insuredId) {
this.insuredId = insuredId;
}
public String getInsuredName() {
return insuredName;
}
public void setInsuredName(String insuredName) {
this.insuredName = insuredName;
}
public String getInsuredIdNo() {
return insuredIdNo;
}
public void setInsuredIdNo(String insuredIdNo) {
this.insuredIdNo = insuredIdNo;
}
public String getInsuredSex() {
return insuredSex;
}
public void setInsuredSex(String insuredSex) {
this.insuredSex = insuredSex;
}
public String getInsuredBirthday() {
return insuredBirthday;
}
public void setInsuredBirthday(String insuredBirthday) {
this.insuredBirthday = insuredBirthday;
}
public String getInsuredMobileNo() {
return insuredMobileNo;
}
public void setInsuredMobileNo(String insuredMobileNo) {
this.insuredMobileNo = insuredMobileNo;
}
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getProductCode() {
return productCode;
}
public void setProductCode(String productCode) {
this.productCode = productCode;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getInsurerId() {
return insurerId;
}
public void setInsurerId(String insurerId) {
this.insurerId = insurerId;
}
public String getInsurerName() {
return insurerName;
}
public void setInsurerName(String insurerName) {
this.insurerName = insurerName;
}
public Double getPremium() {
return premium;
}
public void setPremium(Double premium) {
this.premium = premium;
}
public Double getCommission() {
return commission;
}
public void setCommission(Double commission) {
this.commission = commission;
}
public Double getCommissionRate() {
return commissionRate;
}
public void setCommissionRate(Double commissionRate) {
this.commissionRate = commissionRate;
}
public String getPolicyType() {
return policyType;
}
public void setPolicyType(String policyType) {
this.policyType = policyType;
}
public String getPayFrequency() {
return payFrequency;
}
public void setPayFrequency(String payFrequency) {
this.payFrequency = payFrequency;
}
public String getPayCommissionStatus() {
return payCommissionStatus;
}
public void setPayCommissionStatus(String payCommissionStatus) {
this.payCommissionStatus = payCommissionStatus;
}
public String getCommissionType() {
return commissionType;
}
public void setCommissionType(String commissionType) {
this.commissionType = commissionType;
}
public String getHolderIdNoType() {
return holderIdNoType;
}
public void setHolderIdNoType(String holderIdNoType) {
this.holderIdNoType = holderIdNoType;
}
public String getInsuredIdNoType() {
return insuredIdNoType;
}
public void setInsuredIdNoType(String insuredIdNoType) {
this.insuredIdNoType = insuredIdNoType;
}
}
package com.yd.dal.entity.order;
public class PolicyFactorInfoE {
private String orderNo;
private String productId;
private String insuredAmount;
private String relationship;
private String amountUnit;
private Integer period;
public String getOrderNo() {
return orderNo;
}
public void setOrderNo(String orderNo) {
this.orderNo = orderNo;
}
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getInsuredAmount() {
return insuredAmount;
}
public void setInsuredAmount(String insuredAmount) {
this.insuredAmount = insuredAmount;
}
public String getRelationship() {
return relationship;
}
public void setRelationship(String relationship) {
this.relationship = relationship;
}
public String getAmountUnit() {
return amountUnit;
}
public void setAmountUnit(String amountUnit) {
this.amountUnit = amountUnit;
}
public Integer getPeriod() {
return period;
}
public void setPeriod(Integer period) {
this.period = period;
}
}
package com.yd.dal.entity.product;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* ag_product
* @author
*/
@Data
public class Product implements Serializable {
/**
* serial id
*/
private Long id;
/**
* FK ag_acl_insurer.id
*/
private Long insurerId;
private String insurerName;
/**
* FK ag_acl_insurer_branch.id
*/
private Long insurerBranchId;
/**
* FK ag_product_category.id
*/
private Long productCategoryId;
/**
* Product#
*/
private String no;
/**
* Product Chinese name/Description
*/
private String name;
/**
* Product English name
*/
private String nameEn;
private String description;
/**
* 0000-00-00
*/
private Date effectiveStartDate;
/**
* 0000-00-00
*/
private Date effectiveEndDate;
private BigDecimal salePrice;
/**
* 0=No, 1=Yes
*/
private Integer isActive;
/**
* 保单生效起始日计算 T+X
*/
private Integer policyEffCount;
/**
* 保单生效起始日计算单位 H=时 D=天 W=周 M=月 Y=年
*/
private String policyEffCountUnit;
/**
* 最小保障期限
*/
private Integer minCoverTerm;
/**
* 最小保障期限单位 H=时 D=天 W=周 M=月 Y=年
*/
private String minCoverTermUnit;
/**
* 犹豫期,该产品订单的财富,只有过了犹豫期才能体现(H5)
*/
private Integer hesitatePeroid;
/**
* 1人/天、1人/年
*/
private String uiDisplayUnit;
/**
* 评测icon文章的url
*/
private String articleUrl;
/**
* 是否银盾收保费 0=No, 1=Yes
*/
private Integer isPayToYd;
/**
* 0000-00-00 00:00:00
*/
private Date createdAt;
/**
* FK ag_acl_user.id
*/
private Long createdBy;
/**
* 0000-00-00 00:00:00
*/
private Date updatedAt;
/**
* latest updator
*/
private Long updatedBy;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.yd.dal.entity.product;
public class ProductE {
private String productId;
private String productName;
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
}
package com.yd.dal.entity.product;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* ag_product_plan
* @author
*/
@Data
public class ProductPlan implements Serializable {
/**
* serial id
*/
private Long id;
/**
* FK ag_acl_insurer.id
*/
private Long insurerId;
/**
* FK ag_product.id
*/
private Long productId;
/**
* plan#= plan code
*/
private String planCode;
/**
* contract_id for Starr; Risk-Duty code for Fosun
*/
private String contractId;
/**
* plan Chinese name
*/
private String name;
/**
* plan Level name 档次显示
*/
private String nameSub;
/**
* plan Eng name
*/
private String nameEn;
/**
* 0, 1=low, 2=mid 3=high, 4=super
*/
private Integer level;
private BigDecimal commisionRate;
private BigDecimal referralRate;
private BigDecimal salePrice;
/**
* 0000-00-00
*/
private Date effectiveStartDate;
/**
* 0000-00-00
*/
private Date effectiveEndDate;
/**
* 0=No, 1=Yes
*/
private Integer isActive;
/**
* 0=No, 1=Yes
*/
private Integer isGlobal;
/**
* FK ag_acl_continent.id
*/
private Long continentId;
/**
* FK ag_md_country.id
*/
private Long countryId;
/**
* FK ag_md_region.id
*/
private Long regionId;
/**
* 0=No, 1=Yes
*/
private Integer isPopular;
/**
* incremental +1
*/
private Integer salesCount;
/**
* version control
*/
private Integer version;
/**
* 支持社保类型(1-仅支持有社保; 0-仅支持无社保; 3-同时支持有、无社保)
*/
private Integer isSocialInsured;
/**
* 适用性别(1-男;2-女)
*/
private Integer appGender;
/**
* 创建时间
*/
private Date createdAt;
/**
* 创建人
*/
private Long createdBy;
/**
* 修改时间
*/
private Date updatedAt;
/**
* 修改人
*/
private Long updatedBy;
private static final long serialVersionUID = 1L;
}
\ No newline at end of file
package com.yd.dal.mapper.customer;
import com.yd.dal.entity.customer.AclCustomer;import java.util.List;
import com.yd.dal.entity.customer.AclCustomer;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface AclCustomerMapper {
int deleteByPrimaryKey(Long id);
......@@ -18,4 +21,6 @@ public interface AclCustomerMapper {
List<AclCustomer> findByLogin(String mobileNo);
AclCustomer findByMobileNo(String mobileNo);
List<AclCustomer> findByIds(@Param("customerIds") List<Long> customerIds);
}
\ No newline at end of file
......@@ -46,4 +46,12 @@ public interface AclPractitionerMapper {
List<PlayerSalesActivityInfo> playerSalesActivityQuery(@Param("practitionerId") Long practitionerId,@Param("optionsId") Long optionsId);
List<AclPractitioner> findBySubordinateSystemId(@Param("subordinateSystemId")Long subordinateSystemId);
String findMobileNoByPractitionerId(@Param("practitionerId")Long practitionerId);
PractitionerBasicInfo findByMobileNoE(@Param("mobileNo")String mobileNo);
PractitionerRankInfo getPractitionerRankInfoByPractitionerIdEG(@Param("practitionerIdEG") String practitionerIdEG, @Param("time") Integer time);
PractitionerRankInfo getPractitionerRankInfoByPractitionerIdYD(@Param("practitionerId")Long practitionerId, @Param("time")Integer time);
}
\ No newline at end of file
......@@ -2,10 +2,8 @@ package com.yd.dal.mapper.customer;
import com.yd.dal.entity.customer.AclPractitionerSubordinateSystem;
import com.yd.dal.entity.customer.practitioner.PractitionerSubordinateInfo;
import com.yd.dal.entity.customer.practitioner.SubordinateSystemMemberInfoE;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.List;
public interface AclPractitionerSubordinateSystemMapper {
......@@ -28,4 +26,8 @@ public interface AclPractitionerSubordinateSystemMapper {
List<AclPractitionerSubordinateSystem> findByOwnerPractitionerId(Long practitionerId);
List<AclPractitionerSubordinateSystem> findByOwner(@Param("practitionerId") Long practitionerId);
PractitionerSubordinateInfo findByOwnerE(@Param("practitionerId")String practitionerId);
List<SubordinateSystemMemberInfoE> findStatisticsE(@Param("subordinateIdForEGolden")String subordinateIdForEGolden, @Param("time")Integer time);
}
\ No newline at end of file
......@@ -25,4 +25,6 @@ public interface MktLeadsGoalsMapper {
List<MktLeadsGoals> selectByPractitionerIds(@Param("practitionerIds") List<Long> practitionerIds,@Param("year") Integer year);
List<MktLeadsGoals> findByTypeAndTimeUnitAndSubordinateSystemId(@Param("goalsType") Integer goalsType, @Param("statisticTimeUnit")Integer statisticTimeUnit, @Param("subordinateSystemId")Long subordinateSystemId);
List<MktLeadsGoals> findByTypeAndTimeUnitAndPractitionerId(@Param("goalsType")Integer goalsType, @Param("statisticTimeUnit")Integer statisticTimeUnit, @Param("practitionerId")Long practitionerId);
}
\ No newline at end of file
package com.yd.dal.mapper.meta;
import com.yd.dal.entity.meta.MdDropOptions;
import com.yd.dal.entity.meta.OptionsEGolden;
import org.apache.ibatis.annotations.Param;
import java.util.List;
......@@ -28,4 +29,6 @@ public interface MdDropOptionsMapper {
MdDropOptions selectByMasterCodeAndOptionsCode(@Param("masterCode") String masterCode, @Param("optionsCode") String optionsCode);
List<MdDropOptions> findByMasterCodeAndOptionsCode(@Param("masterCode")String masterCode, @Param("optionsCode")String optionsCode);
List<OptionsEGolden> findByMasterIdsE(@Param("materIds")List<Integer> materIds);
}
\ No newline at end of file
package com.yd.dal.mapper.order;
import com.yd.dal.entity.order.CustomerPolicyInfo;
import com.yd.dal.entity.order.PoOrder;
import com.yd.dal.entity.order.PolicyDetailInfoE;
import com.yd.dal.entity.order.PolicyFactorInfoE;
import org.apache.ibatis.annotations.Param;
import java.util.List;
......@@ -19,4 +22,14 @@ public interface PoOrderMapper {
int updateByPrimaryKey(PoOrder record);
List<PoOrder> findByStatusAndShareCodeInGroupByCustomerId(@Param("status") int status, @Param("customerShareCodes") List<String> customerShareCodes);
List<CustomerPolicyInfo> findPolicyInfoByCustomerId(@Param("customerId")Long customerId, @Param("time")Integer time);
List<CustomerPolicyInfo> findPolicyInfoByMobileNoE(@Param("mobileNo")String mobileNo, @Param("time")Integer time);
String findOrderNoByPolicyNo(@Param("policyNo")String policyNo);
List<PolicyDetailInfoE> findPolicyDetailsInfoByOrderNoE(@Param("orderNo")String orderNo);
List<PolicyFactorInfoE> findPolicyFactorByOrderNosE(@Param("orderNoList")List<String> orderNoList);
}
\ No newline at end of file
package com.yd.dal.mapper.product;
import com.yd.dal.entity.product.Product;
import com.yd.dal.entity.product.ProductE;
import java.util.List;
public interface ProductMapper {
int deleteByPrimaryKey(Long id);
int insert(Product record);
int insertSelective(Product record);
Product selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(Product record);
int updateByPrimaryKey(Product record);
List<Product> findAll();
List<ProductE> findAllE();
}
\ No newline at end of file
package com.yd.dal.mapper.product;
import com.yd.dal.entity.product.ProductPlan;
import java.util.List;
public interface ProductPlanMapper {
int deleteByPrimaryKey(Long id);
int insert(ProductPlan record);
int insertSelective(ProductPlan record);
ProductPlan selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(ProductPlan record);
int updateByPrimaryKey(ProductPlan record);
List<ProductPlan> findAll();
}
\ No newline at end of file
......@@ -32,5 +32,7 @@ public interface AclCustomerDALService {
AclCustomer findByCustomerId(Long customerId);
AclCustomer findByMobileNo(String mobileNo);
List<AclCustomer> findByIds(List<Long> customerIds);
}
......@@ -102,4 +102,41 @@ public interface AclPractitionerDALService {
* @return
*/
List<AclPractitioner> findBySubordinateSystemId(Long subordinateSystemId);
/**
* 更具经纪人id查询该经纪人手机号码
* @param practitionerId 经纪人id
* @return 查询结果
*/
String findMobileNoByPractitionerId(Long practitionerId);
/**
* EGolden -- 根据手机号码查询经纪人的基本信息
* @param mobileNo 手机号码
* @return 查询结果
*/
PractitionerBasicInfo findByMobileNoE(String mobileNo);
/**
* 根据id查询经纪人信息
* @param practitionerId 经纪人id
* @return 查询结果
*/
AclPractitioner findById(Long practitionerId);
/**
* EGolden -- 根据practitionerId和时间段查询
* @param practitionerIdEG 经纪人id
* @param time 时间
* @return 返回结果
*/
PractitionerRankInfo getPractitionerRankInfoByPractitionerIdEG(String practitionerIdEG, Integer time);
/**
* YD -- 根据practitionerId和时间段查询
* @param practitionerId 经纪人id
* @param time 时间
* @return 返回结果
*/
PractitionerRankInfo getPractitionerRankInfoByPractitionerIdYD(Long practitionerId, Integer time);
}
......@@ -2,6 +2,7 @@ package com.yd.dal.service.customer;
import com.yd.dal.entity.customer.AclPractitionerSubordinateSystem;
import com.yd.dal.entity.customer.practitioner.PractitionerSubordinateInfo;
import com.yd.dal.entity.customer.practitioner.SubordinateSystemMemberInfoE;
import org.springframework.stereotype.Service;
import java.util.List;
......@@ -17,4 +18,7 @@ public interface AclPractitionerSubordinateSystemDALService {
List<AclPractitionerSubordinateSystem> findByOwner(Long practitionerId);
PractitionerSubordinateInfo findByOwnerE(String practitionerId);
List<SubordinateSystemMemberInfoE> findStatisticsE(String subordinateIdForEGolden, Integer time);
}
......@@ -47,4 +47,9 @@ public class AclCustomerDALServiceImpl implements AclCustomerDALService {
return aclCustomerMapper.findByMobileNo(mobileNo);
}
@Override
public List<AclCustomer> findByIds(List<Long> customerIds) {
return aclCustomerMapper.findByIds(customerIds);
}
}
......@@ -9,6 +9,7 @@ import com.yd.dal.entity.customer.practitioner.PractitionerInfo;
import com.yd.dal.entity.customer.practitioner.PractitionerRankInfo;
import com.yd.dal.mapper.customer.AclPractitionerMapper;
import com.yd.dal.service.customer.AclPractitionerDALService;
import com.yd.util.deshandler.DESTypeHandler;
import com.yd.util.intercept.annotation.TargetDataSource;
import com.yd.util.intercept.commons.DataSourceKey;
import org.apache.log4j.Logger;
......@@ -102,4 +103,36 @@ public class AclPractitionerDALServiceImpl implements AclPractitionerDALService
public List<AclPractitioner> findBySubordinateSystemId(Long subordinateSystemId) {
return aclPractitionerMapper.findBySubordinateSystemId(subordinateSystemId);
}
@Override
public String findMobileNoByPractitionerId(Long practitionerId) {
String mobileNo = aclPractitionerMapper.findMobileNoByPractitionerId(practitionerId);
if(!Strings.isNullOrEmpty(mobileNo)){
DESTypeHandler jpaCryptoConverter = new DESTypeHandler();
mobileNo = jpaCryptoConverter.decode(mobileNo);
}
return mobileNo;
}
@Override
@TargetDataSource(dataSourceKey = DataSourceKey.DB_EGOLDEN)
public PractitionerBasicInfo findByMobileNoE(String mobileNo) {
return aclPractitionerMapper.findByMobileNoE(mobileNo);
}
@Override
public AclPractitioner findById(Long practitionerId) {
return aclPractitionerMapper.selectByPrimaryKey(practitionerId);
}
@Override
@TargetDataSource(dataSourceKey = DataSourceKey.DB_EGOLDEN)
public PractitionerRankInfo getPractitionerRankInfoByPractitionerIdEG(String practitionerIdEG, Integer time) {
return aclPractitionerMapper.getPractitionerRankInfoByPractitionerIdEG(practitionerIdEG,time);
}
@Override
public PractitionerRankInfo getPractitionerRankInfoByPractitionerIdYD(Long practitionerId, Integer time) {
return aclPractitionerMapper.getPractitionerRankInfoByPractitionerIdYD(practitionerId,time);
}
}
......@@ -2,8 +2,11 @@ package com.yd.dal.service.customer.impl;
import com.yd.dal.entity.customer.AclPractitionerSubordinateSystem;
import com.yd.dal.entity.customer.practitioner.PractitionerSubordinateInfo;
import com.yd.dal.entity.customer.practitioner.SubordinateSystemMemberInfoE;
import com.yd.dal.mapper.customer.AclPractitionerSubordinateSystemMapper;
import com.yd.dal.service.customer.AclPractitionerSubordinateSystemDALService;
import com.yd.util.intercept.annotation.TargetDataSource;
import com.yd.util.intercept.commons.DataSourceKey;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
......@@ -40,4 +43,16 @@ public class AclPractitionerSubordinateSystemDALServiceImpl implements AclPracti
public List<AclPractitionerSubordinateSystem> findByOwner(Long practitionerId) {
return aclPractitionerSubordinateSystemMapper.findByOwner(practitionerId);
}
@Override
@TargetDataSource(dataSourceKey = DataSourceKey.DB_EGOLDEN)
public PractitionerSubordinateInfo findByOwnerE(String practitionerId) {
return aclPractitionerSubordinateSystemMapper.findByOwnerE(practitionerId);
}
@Override
@TargetDataSource(dataSourceKey = DataSourceKey.DB_EGOLDEN)
public List<SubordinateSystemMemberInfoE> findStatisticsE(String subordinateIdForEGolden, Integer time) {
return aclPractitionerSubordinateSystemMapper.findStatisticsE(subordinateIdForEGolden,time);
}
}
......@@ -37,4 +37,9 @@ public class MktLeadsGoalsDALServiceImpl implements MktLeadsGoalsDALService {
public List<MktLeadsGoals> findByTypeAndTimeUnitAndSubordinateSystemId(Integer goalsType, Integer statisticTimeUnit, Long subordinateSystemId) {
return mktLeadsGoalsMapper.findByTypeAndTimeUnitAndSubordinateSystemId(goalsType,statisticTimeUnit,subordinateSystemId);
}
@Override
public List<MktLeadsGoals> findByTypeAndTimeUnitAndPractitionerId(Integer goalsType, Integer statisticTimeUnit, Long practitionerId) {
return mktLeadsGoalsMapper.findByTypeAndTimeUnitAndPractitionerId(goalsType,statisticTimeUnit,practitionerId);
}
}
......@@ -15,4 +15,6 @@ public interface MktLeadsGoalsDALService {
List<MktLeadsGoals> selectByPractitionerIds(List<Long> practitionerIds, int year);
List<MktLeadsGoals> findByTypeAndTimeUnitAndSubordinateSystemId(Integer goalsType, Integer statisticTimeUnit, Long subordinateSystemId);
List<MktLeadsGoals> findByTypeAndTimeUnitAndPractitionerId(Integer goalsType, Integer statisticTimeUnit, Long practitionerId);
}
package com.yd.dal.service.meta;
import com.yd.dal.entity.meta.MdDropOptions;
import com.yd.dal.entity.meta.OptionsEGolden;
import java.util.List;
public interface MdDropOptionsDALService {
......@@ -18,4 +19,6 @@ public interface MdDropOptionsDALService {
MdDropOptions selectByMasterCodeAndOptionsCode(String masterCode, String optionsCode);
List<MdDropOptions> findByMasterCodeAndOptionsCode(String team_building_track, String s);
List<OptionsEGolden> findByMasterIdsE(List<Integer> materIds);
}
package com.yd.dal.service.meta.impl;
import com.yd.dal.entity.meta.MdDropOptions;
import com.yd.dal.entity.meta.OptionsEGolden;
import com.yd.dal.mapper.meta.MdDropOptionsMapper;
import com.yd.dal.service.meta.MdDropOptionsDALService;
import com.yd.util.intercept.annotation.TargetDataSource;
import com.yd.util.intercept.commons.DataSourceKey;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
......@@ -52,4 +55,10 @@ public class MdDropOptionsDALServiceImpl implements MdDropOptionsDALService {
public List<MdDropOptions> findByMasterCodeAndOptionsCode(String masterCode, String optionsCode) {
return mdDropOptionsMapper.findByMasterCodeAndOptionsCode(masterCode,optionsCode);
}
@Override
@TargetDataSource(dataSourceKey = DataSourceKey.DB_EGOLDEN)
public List<OptionsEGolden> findByMasterIdsE(List<Integer> materIds) {
return mdDropOptionsMapper.findByMasterIdsE(materIds);
}
}
package com.yd.dal.service.order.Impl;
import com.yd.dal.entity.order.CustomerPolicyInfo;
import com.yd.dal.entity.order.PoOrder;
import com.yd.dal.entity.order.PolicyDetailInfoE;
import com.yd.dal.entity.order.PolicyFactorInfoE;
import com.yd.dal.mapper.order.PoOrderMapper;
import com.yd.dal.service.order.PoOrderDALService;
import com.yd.util.intercept.annotation.TargetDataSource;
import com.yd.util.intercept.commons.DataSourceKey;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
......@@ -22,4 +27,33 @@ public class PoOrderDALServiceImpl implements PoOrderDALService {
public PoOrder findByOrderId(Long orderId) {
return poOrderMapper.selectByPrimaryKey(orderId);
}
@Override
public List<CustomerPolicyInfo> findPolicyInfoByCustomerId(Long customerId, Integer time) {
return poOrderMapper.findPolicyInfoByCustomerId(customerId,time);
}
@Override
@TargetDataSource(dataSourceKey = DataSourceKey.DB_EGOLDEN)
public List<CustomerPolicyInfo> findPolicyInfoByMobileNoE(String mobileNo, Integer time) {
return poOrderMapper.findPolicyInfoByMobileNoE(mobileNo,time);
}
@Override
@TargetDataSource(dataSourceKey = DataSourceKey.DB_EGOLDEN)
public String findOrderNoByPolicyNo(String policyNo) {
return poOrderMapper.findOrderNoByPolicyNo(policyNo);
}
@Override
@TargetDataSource(dataSourceKey = DataSourceKey.DB_EGOLDEN)
public List<PolicyDetailInfoE> findPolicyDetailsInfoByOrderNoE(String orderNo) {
return poOrderMapper.findPolicyDetailsInfoByOrderNoE(orderNo);
}
@Override
@TargetDataSource(dataSourceKey = DataSourceKey.DB_EGOLDEN)
public List<PolicyFactorInfoE> findPolicyFactorByOrderNosE(List<String> orderNoList) {
return poOrderMapper.findPolicyFactorByOrderNosE(orderNoList);
}
}
package com.yd.dal.service.order;
import com.yd.dal.entity.order.CustomerPolicyInfo;
import com.yd.dal.entity.order.PoOrder;
import com.yd.dal.entity.order.PolicyDetailInfoE;
import com.yd.dal.entity.order.PolicyFactorInfoE;
import java.util.List;
......@@ -8,4 +11,14 @@ public interface PoOrderDALService {
List<PoOrder> findByStatusAndShareCodeInGroupByCustomerId(int status, List<String> customerShareCodes);
PoOrder findByOrderId(Long orderId);
List<CustomerPolicyInfo> findPolicyInfoByCustomerId(Long customerId, Integer time);
List<CustomerPolicyInfo> findPolicyInfoByMobileNoE(String mobileNo, Integer time);
String findOrderNoByPolicyNo(String policyNo);
List<PolicyDetailInfoE> findPolicyDetailsInfoByOrderNoE(String orderNo);
List<PolicyFactorInfoE> findPolicyFactorByOrderNosE(List<String> orderNoList);
}
package com.yd.dal.service.product;
import com.yd.dal.entity.product.Product;
import com.yd.dal.entity.product.ProductE;
import org.springframework.stereotype.Service;
import java.util.List;
@Service("productDALService")
public interface ProductDALService {
List<Product> findAll();
List<ProductE> findAllE();
}
package com.yd.dal.service.product;
import com.yd.dal.entity.product.ProductPlan;
import org.springframework.stereotype.Service;
import java.util.List;
@Service("productPlanDALService")
public interface ProductPlanDALService {
List<ProductPlan> findAll();
}
package com.yd.dal.service.product.impl;
import com.yd.dal.entity.product.Product;
import com.yd.dal.entity.product.ProductE;
import com.yd.dal.mapper.product.ProductMapper;
import com.yd.dal.service.product.ProductDALService;
import com.yd.util.intercept.annotation.TargetDataSource;
import com.yd.util.intercept.commons.DataSourceKey;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service("productDALService")
public class ProductDALServiceImpl implements ProductDALService {
@Autowired
private ProductMapper productMapper;
@Override
public List<Product> findAll() {
return productMapper.findAll();
}
@Override
@TargetDataSource(dataSourceKey = DataSourceKey.DB_EGOLDEN)
public List<ProductE> findAllE() {
return productMapper.findAllE();
}
}
package com.yd.dal.service.product.impl;
import com.yd.dal.entity.product.ProductPlan;
import com.yd.dal.mapper.product.ProductPlanMapper;
import com.yd.dal.service.product.ProductPlanDALService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service("productPlanDALService")
public class ProductPlanDALServiceImpl implements ProductPlanDALService {
@Autowired
private ProductPlanMapper productPlanMapper;
@Override
public List<ProductPlan> findAll() {
return productPlanMapper.findAll();
}
}
......@@ -18,9 +18,9 @@ multiple.datasource.master.password=devdbpass1
#egolden
multiple.datasource.egolden.driver-class-name=com.mysql.jdbc.Driver
multiple.datasource.egolden.url=jdbc:MySql://139.224.94.140:13307/ydinsurance?characterEncoding=UTF-8&useSSL=false&useAffectedRows=true
multiple.datasource.egolden.username=stageuser
multiple.datasource.egolden.password=AG@#$mstage234
multiple.datasource.egolden.url=jdbc:MySql://139.224.138.103:13308/stage_ydinsurance?characterEncoding=UTF-8&useSSL=false&useAffectedRows=true
multiple.datasource.egolden.username=insurance_stage
multiple.datasource.egolden.password=fWTauSswR2!$
#pagehelper分页插件配置
pagehelper.helperDialect=mysql
......
......@@ -18,9 +18,9 @@ multiple.datasource.master.password=devdbpass1
#egolden
multiple.datasource.egolden.driver-class-name=com.mysql.jdbc.Driver
multiple.datasource.egolden.url=jdbc:MySql://139.224.94.140:13307/ydinsurance?characterEncoding=UTF-8&useSSL=false&useAffectedRows=true
multiple.datasource.egolden.username=stageuser
multiple.datasource.egolden.password=AG@#$mstage234
multiple.datasource.egolden.url=jdbc:MySql://139.224.138.103:13308/stage_ydinsurance?characterEncoding=UTF-8&useSSL=false&useAffectedRows=true
multiple.datasource.egolden.username=insurance_stage
multiple.datasource.egolden.password=fWTauSswR2!$
#pagehelper分页插件配置
pagehelper.helperDialect=mysql
......
......@@ -296,9 +296,9 @@
p.id practitionerId ,
p.`name` name ,
p.subordinate_system_id subordinateSystemId ,
COUNT(f.id) count ,
SUM(f.order_price) FYP ,
SUM(f.referral_amount) FYC ,
ifnull(COUNT(f.id),0) count ,
ifnull(SUM(f.order_price),0) FYP ,
ifnull(SUM(f.fyc_amount),0) FYC ,
s.practitioner_level practitionerLevelId
FROM
((ag_acl_practitioner_setting s LEFT JOIN ag_acl_practitioner p ON s.practitioner_id = p.id)
......
......@@ -771,4 +771,13 @@
from ag_acl_customer
where mobile_no = #{mobileNo,jdbcType=VARCHAR,typeHandler=com.yd.util.deshandler.DESTypeHandler}
</select>
<select id="findByIds" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ag_acl_customer
where id in
<foreach collection="customerIds" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>
\ No newline at end of file
......@@ -540,30 +540,62 @@
<result column="fyc" property="fyc"/>
</resultMap>
<!-- <select id="getPractitionerRankInfoForOffline" resultMap="practitioner_rank_map" resultType="java.lang.Integer">-->
<!-- SELECT-->
<!-- p.SAL_MST_ID as practitionerId ,-->
<!-- p.SAL_MST_NAME as name ,&#45;&#45; 姓名-->
<!-- md.DRP_TITLE_LEVEL as titleCode,&#45;&#45; 职称code-->
<!-- md.DRP_TITLE_NAME as titleName,&#45;&#45; 职称名称-->
<!-- spc.SPC_DIV_NAME as spcDivName,&#45;&#45; 体系id-->
<!-- ifnull(count(m.MON025_002),0) as count,&#45;&#45; 保单id-->
<!-- ifnull(sum(m.MON025_401),0) as fyp,&#45;&#45; 保费-->
<!-- ifnull(sum(policy.INS001_FYCTOTAL),0) as fyc &#45;&#45; 应发佣金-->
<!-- FROM MON025 m INNER JOIN sal001 p on m.MON025_007 = p.SAL_MST_ID &#45;&#45; 业务员id-->
<!-- left join DRP003 md on p.FK_DRP_TITLE_CODE = md.DRP_TITLE_CODE-->
<!-- inner JOIN ins001 policy on m.MON025_002 = policy.INS_MST_ID &#45;&#45; 保单id-->
<!-- inner join spc004 spc on m.MON025_006 = spc.SPC_DIV_ID &#45;&#45; 体系-->
<!-- WHERE m.MON025_109 IN (1,2,3) AND m.MON025_303 = 1 AND m.mon025_108 = 'S01'-->
<!-- <choose>-->
<!-- <when test="time == 1">-->
<!-- and DATE_FORMAT(policy.INS_MST_ACCEPT_DATE, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )-->
<!-- </when>-->
<!-- <when test="time == 3">-->
<!-- and QUARTER(policy.INS_MST_ACCEPT_DATE) = QUARTER(NOW()) AND year(policy.INS_MST_ACCEPT_DATE)=year(now())-->
<!-- </when>-->
<!-- <otherwise>-->
<!-- and YEAR(policy.INS_MST_ACCEPT_DATE) = YEAR(now())-->
<!-- </otherwise>-->
<!-- </choose>-->
<!-- group by p.SAL_MST_ID;-->
<!-- </select>-->
<select id="getPractitionerRankInfoForOffline" resultMap="practitioner_rank_map" resultType="java.lang.Integer">
SELECT
p.SAL_MST_ID as practitionerId ,
p.SAL_MST_NAME as name ,-- 姓名
md.DRP_TITLE_LEVEL as titleCode,-- 职称code
md.DRP_TITLE_NAME as titleName,-- 职称名称
p.SAL_MST_ID_TYPE as titleCode,-- 职称code
p.SAL_MST_OFFICIAL_TITLE as titleName,-- 职称名称
spc.SPC_DIV_NAME as spcDivName,-- 体系id
count(m.MON025_002) as count,-- 保单id
sum(m.MON025_401) as fyp,-- 保费
sum(m.MON025_405) as fyc -- 应发佣金
FROM MON025 m INNER JOIN sal001 p on m.MON025_007 = p.SAL_MST_ID -- 业务员id
left join DRP003 md on p.FK_DRP_TITLE_CODE = md.DRP_TITLE_CODE
inner JOIN ins001 policy on m.MON025_002 = policy.INS_MST_ID -- 保单id
ifnull(count(distinct policy.INS_MST_ID),0) as count,-- 保单id
ifnull(sum(policy.INS_MST_TOTAL_PREIUM),0) as fyp,-- 保费
ifnull(sum(policy.INS001_FYCTOTAL),0) as fyc -- 应发佣金
FROM
ins001 policy INNER JOIN mon025 m on policy.INS_MST_ID = m.MON025_002 and m.MON025_109 IN (1,2,3) AND m.MON025_303 = 1 AND m.mon025_108 = 'S01'
INNER JOIN (
SELECT mon025_002,MAX(MON025_405) as MON025_405 FROM mon025 group by mon025_002 ORDER BY mon025_002
) b on m.mon025_002 = b.mon025_002 AND m.MON025_405 = b.MON025_405
INNER JOIN sal001 p on m.MON025_007 = p.SAL_MST_ID -- 业务员id
inner join spc004 spc on m.MON025_006 = spc.SPC_DIV_ID -- 体系
WHERE m.MON025_109 IN (1,2,3) AND m.MON025_303 = 1
where
<choose>
<when test="time == 1">
and DATE_FORMAT(policy.INS_MST_ACCEPT_DATE, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
DATE_FORMAT(policy.INS_MST_ACCEPT_DATE, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when>
<when test="time == 3">
and QUARTER(policy.INS_MST_ACCEPT_DATE) = QUARTER(NOW()) AND year(policy.INS_MST_ACCEPT_DATE)=year(now())
QUARTER(policy.INS_MST_ACCEPT_DATE) = QUARTER(NOW()) AND year(policy.INS_MST_ACCEPT_DATE)=year(now())
</when>
<otherwise>
and YEAR(policy.INS_MST_ACCEPT_DATE) = YEAR(now())
YEAR(policy.INS_MST_ACCEPT_DATE) = YEAR(now())
</otherwise>
</choose>
group by p.SAL_MST_ID;
......@@ -575,14 +607,14 @@
p.id as practitionerIdForOnLine ,
p.name as name ,-- 姓名
ss.name as spcDivName,-- 体系id
count(f.id) as count,-- 保单id
sum(f.order_price) as fyp,-- 保费
sum(f.referral_amount) as fyc -- 应发佣金
FROM ag_acl_customer_fortune f INNER JOIN ag_po_order o ON f.order_id = o.id
ifnull(count(f.id),0) as count,-- 保单id
ifnull(sum(f.order_price),0) as fyp,-- 保费
ifnull(sum(f.fyc_amount),0) as fyc -- 应发佣金
FROM ag_acl_customer_fortune f INNER JOIN ag_po_order o ON f.order_id = o.id and o.order_price > 0
inner JOIN ag_acl_practitioner p ON f.customer_id = p.customer_id
left join ag_acl_practitioner_setting s on p.id = s.practitioner_id
left join ag_acl_practitioner_subordinate_system ss on p.subordinate_system_id = ss.id
WHERE o.status = 3 and o.order_price > 0
WHERE o.status = 3
<if test="practitionerTypeId != null">
and s.practitioner_type_id = #{practitionerTypeId}
</if>
......@@ -607,14 +639,14 @@
p.id as practitionerIdForOnLine ,
p.name as name ,-- 姓名
ss.name as spcDivName,-- 体系id
count(f.id) as count,-- 保单id
sum(f.order_price) as fyp,-- 保费
sum(f.referral_amount) as fyc -- 应发佣金
FROM ag_acl_customer_fortune f INNER JOIN ag_po_order o ON f.order_id = o.id
ifnull(count(f.id),0) as count,-- 保单id
ifnull(sum(f.order_price),0) as fyp,-- 保费
ifnull(sum(f.fyc_amount),0) as fyc -- 应发佣金
FROM ag_acl_customer_fortune f INNER JOIN ag_po_order o ON f.order_id = o.id and o.order_price > 0
inner JOIN ag_acl_practitioner p ON f.customer_id = p.customer_id
left join ag_acl_customer c on p.customer_id = c.id
left join ag_acl_practitioner_subordinate_system ss on p.subordinate_system_id = ss.id
WHERE o.status = 3 and o.order_price > 0
WHERE o.status = 3
and c.login in
<foreach collection="mobileSpecials" index="index" item="item" open="(" separator="," close=")">
#{item}
......@@ -765,4 +797,77 @@
from ag_acl_practitioner
where subordinate_system_id = #{subordinateSystemId,jdbcType=BIGINT} and is_active = 1
</select>
<select id="findMobileNoByPractitionerId" resultType="java.lang.String">
select c.mobile_no
from ag_acl_practitioner p left join ag_acl_customer c on p.customer_id = c.id and c.is_active = 1
where p.id = #{practitionerId,jdbcType=BIGINT} limit 1;
</select>
<select id="findByMobileNoE" resultType="com.yd.dal.entity.customer.practitioner.PractitionerBasicInfo">
SELECT
p.SAL_MST_ID as practitionerId,
p.SAL_MST_NAME as name,
p.SAL_MST_GENDER as gender,
p.SAL_MST_ID_TYPE as titleCode,
p.SAL_MST_OFFICIAL_TITLE as titleName
FROM sal001 p
where p.SAL_MST_MOBILE like concat(concat('%',#{mobileNo,jdbcType=VARCHAR}),'%')
</select>
<select id="getPractitionerRankInfoByPractitionerIdEG"
resultType="com.yd.dal.entity.customer.practitioner.PractitionerRankInfo">
SELECT
p.SAL_MST_ID as practitionerId ,
p.SAL_MST_NAME as name ,-- 姓名
p.SAL_MST_ID_TYPE as titleCode,-- 职称code
p.SAL_MST_OFFICIAL_TITLE as titleName,-- 职称名称
spc.SPC_DIV_NAME as spcDivName,-- 体系id
ifnull(count(distinct policy.INS_MST_ID),0) as count,-- 保单id
ifnull(sum(policy.INS_MST_TOTAL_PREIUM),0) as fyp,-- 保费
ifnull(sum(policy.INS001_FYCTOTAL),0) as fyc -- 应发佣金
FROM
ins001 policy INNER JOIN mon025 m on policy.INS_MST_ID = m.MON025_002 and m.MON025_109 IN (1,2,3) AND m.MON025_303 = 1 AND m.mon025_108 = 'S01'
INNER JOIN (
SELECT mon025_002,MAX(MON025_405) as MON025_405 FROM mon025 group by mon025_002 ORDER BY mon025_002
) b on m.mon025_002 = b.mon025_002 AND m.MON025_405 = b.MON025_405
INNER JOIN sal001 p on m.MON025_007 = p.SAL_MST_ID -- 业务员id
inner join spc004 spc on m.MON025_006 = spc.SPC_DIV_ID -- 体系
where p.SAL_MST_ID = #{practitionerIdEG,jdbcType=VARCHAR}
<choose>
<when test="time == 1">
and DATE_FORMAT(policy.INS_MST_ACCEPT_DATE, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when>
<when test="time == 3">
and QUARTER(policy.INS_MST_ACCEPT_DATE) = QUARTER(NOW()) AND year(policy.INS_MST_ACCEPT_DATE)=year(now())
</when>
<otherwise>
and YEAR(policy.INS_MST_ACCEPT_DATE) = YEAR(now())
</otherwise>
</choose>
</select>
<select id="getPractitionerRankInfoByPractitionerIdYD"
resultType="com.yd.dal.entity.customer.practitioner.PractitionerRankInfo">
SELECT
p.customer_id as customerId,
p.id as practitionerIdForOnLine ,
p.name as name ,-- 姓名
ss.name as spcDivName,-- 体系id
ifnull(count(f.id),0) as count,-- 保单id
ifnull(sum(f.order_price),0) as fyp,-- 保费
ifnull(sum(f.fyc_amount),0) as fyc -- 应发佣金
FROM ag_acl_customer_fortune f INNER JOIN ag_po_order o ON f.order_id = o.id and o.status = 3 and o.order_price > 0
inner JOIN ag_acl_practitioner p ON f.customer_id = p.customer_id
left join ag_acl_practitioner_setting s on p.id = s.practitioner_id
left join ag_acl_practitioner_subordinate_system ss on p.subordinate_system_id = ss.id
WHERE p.id = #{practitionerId,jdbcType=BIGINT}
<choose>
<when test="time == 1">
and DATE_FORMAT(f.order_date, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when>
<when test="time == 3">
and QUARTER(f.order_date) = QUARTER(NOW()) AND year(f.order_date)=year(now())
</when>
<otherwise>
and YEAR(f.order_date) = YEAR(now())
</otherwise>
</choose>
</select>
</mapper>
\ No newline at end of file
......@@ -260,4 +260,38 @@
from ag_acl_practitioner_subordinate_system
where owner_practitioner_id = #{practitionerId,jdbcType=BIGINT} and is_active = 1
</select>
<select id="findByOwnerE" resultType="com.yd.dal.entity.customer.practitioner.PractitionerSubordinateInfo">
SELECT
p.SPC_DIV_NAME as subordinateName,
p.SPC_DIV_ID as subordinateCode,
p.FK_DIV_BOSS_ID as subordinateLeader
FROM spc004 p
where p.FK_DIV_BOSS_ID = #{practitionerId,jdbcType=VARCHAR}
</select>
<select id="findStatisticsE"
resultType="com.yd.dal.entity.customer.practitioner.SubordinateSystemMemberInfoE">
SELECT
p.SAL_MST_NAME as name ,-- 姓名
p.SAL_MST_ID_TYPE as titleCode,-- 职称code
p.SAL_MST_OFFICIAL_TITLE as titleName,-- 职称名称
p.SAL_MST_MOBILE as mobileNo,
count(m.MON025_002) as count,-- 保单id
sum(m.MON025_401) as fyp,-- 保费
sum(policy.INS001_FYCTOTAL) as fyc -- 应发佣金
FROM sal001 p INNER JOIN MON025 m on m.MON025_007 = p.SAL_MST_ID and m.MON025_109 IN (1,2,3) AND m.MON025_303 = 1 AND m.mon025_108 = 'S01'-- 业务员id
inner JOIN ins001 policy on m.MON025_002 = policy.INS_MST_ID -- 保单id
WHERE p.FK_SPC_DIV_ID = #{subordinateIdForEGolden,jdbcType=VARCHAR}
<choose>
<when test="time == 1">
and DATE_FORMAT(policy.INS_MST_ACCEPT_DATE, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when>
<when test="time == 3">
and QUARTER(policy.INS_MST_ACCEPT_DATE) = QUARTER(NOW()) AND year(policy.INS_MST_ACCEPT_DATE)=year(now())
</when>
<otherwise>
and YEAR(policy.INS_MST_ACCEPT_DATE) = YEAR(now())
</otherwise>
</choose>
group by p.SAL_MST_ID;
</select>
</mapper>
\ No newline at end of file
......@@ -327,4 +327,13 @@
and subordinate_system_id = #{subordinateSystemId,jdbcType=BIGINT}
and is_active = 1
</select>
<select id="findByTypeAndTimeUnitAndPractitionerId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ag_mkt_leads_goals
where goals_type = #{goalsType,jdbcType=INTEGER}
and statistic_time_unit = #{statisticTimeUnit,jdbcType=INTEGER}
and practitioner_id = #{practitionerId,jdbcType=BIGINT}
and is_active = 1
</select>
</mapper>
\ No newline at end of file
......@@ -242,4 +242,16 @@
from ag_md_drop_master m left join ag_md_drop_options o on m.id = o.drop_master_id and o.is_active = 1 and o.drop_option_code = #{optionsCode,jdbcType=VARCHAR}
where m.scenario_code = #{masterCode,jdbcType=BIGINT}
</select>
<select id="findByMasterIdsE" resultType="com.yd.dal.entity.meta.OptionsEGolden">
select
t.DRP_OPT_ID as optId,
t.FK_DRP_MST_ID as mstId,
t.DRP_OPT_NAME as optName,
t.DRP_OPT_ATTR as optAttr,
t.DRP_OPT_ORDER as optOrder
from drp002 t where t.FK_DRP_MST_ID in
<foreach collection="materIds" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>
\ No newline at end of file
......@@ -964,8 +964,126 @@
#{item}
</foreach>
</if>
</select>
<select id="findPolicyInfoByCustomerId" resultType="com.yd.dal.entity.order.CustomerPolicyInfo">
SELECT
o.id as orderId,
o.order_no as orderNo ,
o.policy_no as policyNo ,
p.name as holderName,
o.destination as destination,
date_format(o.order_date, '%Y-%m-%d %H:%i:%s') as orderDate,
date_format(o.effective_start_date, '%Y-%m-%d %H:%i:%s') as startDate,
date_format(o.effective_end_date, '%Y-%m-%d %H:%i:%s') as endDate,
f.referral_amount as referralAmount,
f.order_price as orderPrice,
o.plan_id as planId,
o.product_id as productId
FROM ag_acl_customer_fortune f INNER JOIN ag_po_order o ON f.order_id = o.id and o.status = 3 and o.order_price > 0 and o.insurer_id != 888
inner JOIN ag_acl_policyholder p ON o.id = p.order_id and p.type = 2
WHERE f.customer_id = #{customerId,jdbcType=BIGINT}
<choose>
<when test="time == 1">
and DATE_FORMAT(f.order_date, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when>
<when test="time == 3">
and QUARTER(f.order_date) = QUARTER(NOW()) AND year(f.order_date)=year(now())
</when>
<when test="time == 2">
and YEAR(f.order_date) = YEAR(now())
</when>
<otherwise>
</otherwise>
</choose>
</select>
<select id="findPolicyInfoByMobileNoE" resultType="com.yd.dal.entity.order.CustomerPolicyInfo">
SELECT
policy.INS_MST_ID as orderNo ,
policy.INS_MST_POLICY_NUM as policyNo ,
c.CUS_MST_NAME as holderName,
date_format(policy.INS_MST_ACCEPT_DATE, '%Y-%m-%d %H:%i:%s') as orderDate,
date_format(policy.INS_MST_EFFECT_DATE, '%Y-%m-%d %H:%i:%s') as startDate,
date_format(policy.INS_MST_INVALID_DATE, '%Y-%m-%d %H:%i:%s') as endDate,
sum(m.MON025_405) as referralAmount,
sum(m.MON025_401) as orderPrice,
m.MON025_004 as productName
FROM sal001 p INNER JOIN MON025 m on m.MON025_007 = p.SAL_MST_ID AND m.MON025_303 = 1 AND m.mon025_108 = 'S01'
inner JOIN ins001 policy on m.MON025_002 = policy.INS_MST_ID -- 保单id
inner join cus001 c on policy.FK_CUS_PRO_ID = c.CUS_MST_ID
WHERE p.SAL_MST_MOBILE like concat(concat('%',#{mobileNo,jdbcType=VARCHAR}),'%')
<choose>
<when test="time == 1">
and DATE_FORMAT(policy.INS_MST_ACCEPT_DATE, '%Y%m' ) = DATE_FORMAT( CURDATE( ) , '%Y%m' )
</when>
<when test="time == 3">
and QUARTER(policy.INS_MST_ACCEPT_DATE) = QUARTER(NOW()) AND year(policy.INS_MST_ACCEPT_DATE)=year(now())
</when>
<when test="time == 3">
and YEAR(policy.INS_MST_ACCEPT_DATE) = YEAR(now())
</when>
<otherwise>
</otherwise>
</choose>
group by policy.ins_mst_id
</select>
<select id="findOrderNoByPolicyNo" resultType="java.lang.String">
select
INS_MST_ID
from ins001
where INS_MST_POLICY_NUM = #{policyNo,jdbcType=VARCHAR};
</select>
<select id="findPolicyDetailsInfoByOrderNoE" resultType="com.yd.dal.entity.order.PolicyDetailInfoE">
SELECT
policy.INS_MST_ID as orderNo , -- 订单号
policy.INS_MST_POLICY_NUM as policyNo , -- 保单号
policy.INS_MST_STATUS as policyStatus, -- 保单状态
date_format(policy.INS_MST_ACCEPT_DATE, '%Y-%m-%d %H:%i:%s') as orderDate, -- 下单日期
date_format(policy.INS_MST_EFFECT_DATE, '%Y-%m-%d %H:%i:%s') as startDate, -- 保险起期
date_format(policy.INS_MST_INVALID_DATE, '%Y-%m-%d %H:%i:%s') as endDate, -- 保险止期
product.PRD_MST_ID as productId , -- 产品编号
product.PRD_MST_INS_CODE as productCode , -- 产品code
product.PRD_MST_PRO_NAME as productName , -- 产品名字
insurer.PRD_SUP_ID as insurerId , -- 保险公司编号
insurer.PRD_SUP_NAME as insurerName , -- 保险公司名称
holder.CUS_MST_NAME as holderName, -- 投保人姓名
holder.CUS_MST_POSTTYPE as holderIdNoType, -- 投保人证件类型
holder.CUS_MST_ID as holderId, -- 投保人编码
holder.CUS_MST_ID_NUM as holderIdNo, -- 投保人编码
holder.CUS_MST_SEX as holderSex, -- 投保人性别
date_format(holder.CUS_MST_BIRTHDAY, '%Y-%m-%d') as holderBirthday, -- 投保人出生年月
holder.CUS_MST_CELL_NUM as holderMobileNo, -- 投保人手机号码
insured.CUS_MST_NAME as insuredName, -- 被保人姓名
insured.CUS_MST_ID as insuredId, -- 被保人编码
insured.CUS_MST_POSTTYPE as insuredIdNoType, -- 被保人证件类型
insured.CUS_MST_ID_NUM as insuredIdNo, -- 被保人编码
insured.CUS_MST_SEX as insuredSex, -- 被保人性别
date_format(insured.CUS_MST_BIRTHDAY, '%Y-%m-%d') as insuredBirthday, -- 被保人出生年月
insured.CUS_MST_CELL_NUM as insuredMobileNo, -- 被保人手机号码
m.MON025_405 as commission, -- 佣金
m.MON025_404 as commissionRate, -- 佣金率
m.MON025_004 as productId, -- 产品ID
m.MON025_401 as premium, -- 保费
m.MON025_101 as policyType, -- 保单类型
m.MON025_102 as payFrequency, -- 缴费频率
m.MON025_109 as payCommissionStatus, -- 发佣状态
m.mon025_108 as commissionType -- 佣金项目代码
FROM ins001 policy INNER JOIN MON025 m on m.MON025_002 = policy.INS_MST_ID AND m.MON025_303 = 1 AND m.mon025_108 = 'S01'
inner join cus001 holder on policy.FK_CUS_PRO_ID = holder.CUS_MST_ID
inner join cus001 insured on policy.FK_CUS_PRO_ID = insured.CUS_MST_ID
inner join prd001 product on m.MON025_004 = product.PRD_MST_ID
inner join prd004 insurer on product.FK_PRD_SUP_ID = insurer.PRD_SUP_ID
WHERE policy.INS_MST_ID = #{orderNo,jdbcType=VARCHAR};
</select>
<select id="findPolicyFactorByOrderNosE" resultType="com.yd.dal.entity.order.PolicyFactorInfoE">
SELECT policy2.FK_INS_MST_ID as orderNo, -- 保单id
policy2.FK_PRD_MST_ID as productId, -- 产品ID
policy2.INS_IND_RELATIONSHIP as relationship,-- 与被保人关系
policy2.INS_IND_INSURED_AMOUNT as insuredAmount, -- 保费
policy2.INS_IND_AMOUNT_UNIT as amountUnit, -- 保费单位
policy2.INS_IND_PERIOD as period -- 缴费年限
from ins002 policy2 where policy2.FK_INS_MST_ID in
<foreach collection="orderNoList" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</select>
</mapper>
\ No newline at end of file
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