Commit fdba8154 by yao.xiao

修改-经纪人跟进状态及新增经纪人条件

parent 8079bc6a
package com.yd.api.practitioner.vo.opportunity;
import lombok.Data;
import java.util.List;
@Data
public class OpportunityRecordSituationInfo {
private Long status;//0.可编辑 1.不可编辑
private List<OpportunityRecordInfo> opportunityRecordInfos;//商机跟进
}
......@@ -8,7 +8,7 @@ import java.util.List;
public class OwnOpportunityDetailQueryResponseVO {
private OpportunityBasicInformationInfo opportunityBasicInformationInfo;//基本信息
private OpportunityConsultationInfo opportunityConsultationInfo;//服务咨询
private List<OpportunityRecordInfo> opportunityRecordInfos;//商机跟进
private OpportunityRecordSituationInfo opportunityRecordSituationInfo;
private OpportunityScore opportunityScore;//商机分数
private CommonResult commonResult;
}
......@@ -4,9 +4,9 @@ import lombok.Data;
@Data
public class SalesTargetMonth {
private Integer premium;
private Integer commission;
private Double premium;
private Double commission;
private Integer pieces;
private Integer pieceAveragePremium;
private Double pieceAveragePremium;
private Integer monthNum;
}
......@@ -8,10 +8,10 @@ import java.util.List;
@Data
public class SalesTargetQueryResponseVO {
private Long practitionerId;
private Integer premium;
private Integer commission;
private Double premium;
private Double commission;
private Integer pieces;
private Integer pieceAveragePremium;
private Double pieceAveragePremium;
private List<SalesTargetMonth> salesTargetMonths;
private List<SalesTargetActions> salesTargetActions;
private CommonResult commonResult;
......
......@@ -9,11 +9,11 @@ public class SalesTargetSaveRequestVO {
/**
* 保费
*/
private Integer premium;
private Double premium;
/**
* 佣金
*/
private Integer commission;
private Double commission;
/**
* 件数
*/
......@@ -21,7 +21,7 @@ public class SalesTargetSaveRequestVO {
/**
* 均价
*/
private Integer pieceAveragePremium;
private Double pieceAveragePremium;
/**
* 目标类型:1:经纪人指标,2:团队指标
*/
......
package com.yd.dal.entity.marketing;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
......@@ -51,12 +52,12 @@ public class MktLeadsGoals {
/**
* 保费
*/
private Integer premium;
private Double premium;
/**
* 佣金
*/
private Integer commission;
private Double commission;
/**
* 件数
......@@ -66,7 +67,7 @@ public class MktLeadsGoals {
/**
* 件均保费: 计算生成 FYP/件数
*/
private Integer pieceAveragePremium;
private Double pieceAveragePremium;
/**
* 版本控制
......
......@@ -25,4 +25,6 @@ public interface MktLeadsAssignedTrackMapper {
List<MktLeadsAssignedTrack> findByTrackTimeForNew(MktLeadsAssignedTrack mktLeadsAssignedTrack);
HashMap<String, BigDecimal> totalStatisticsForTeam(List<Long> practitionerIds);
MktLeadsAssignedTrack findByListNotesForCustomerId(Long customerId);
}
\ No newline at end of file
......@@ -44,4 +44,9 @@ public class MktLeadsAssignedTrackDALServiceImpl implements MktLeadsAssignedTrac
public HashMap<String, BigDecimal> totalStatisticsForTeam(List<Long> practitionerIds) {
return mktLeadsAssignedTrackMapper.totalStatisticsForTeam(practitionerIds);
}
@Override
public MktLeadsAssignedTrack findByListNotesForCustomerId(Long customerId) {
return mktLeadsAssignedTrackMapper.findByListNotesForCustomerId(customerId);
}
}
......@@ -21,4 +21,6 @@ public interface MktLeadsAssignedTrackDALService {
* @return 返回他们的分数统计 1.天得分 2.周得分 3.月得分
*/
HashMap<String, BigDecimal> totalStatisticsForTeam(List<Long> practitionerIds);
MktLeadsAssignedTrack findByListNotesForCustomerId(Long customerId);
}
......@@ -334,4 +334,12 @@
#{practitionerId,jdbcType=BIGINT}
</foreach>
</select>
<select id="findByListNotesForCustomerId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ag_mkt_leads_assigned_track
where customer_id = #{customerId,jdbcType=BIGINT}
order by id desc
limit 0,1
</select>
</mapper>
\ No newline at end of file
......@@ -12,10 +12,10 @@
<result column="current_year" jdbcType="INTEGER" property="currentYear" />
<result column="statistic_time_unit" jdbcType="INTEGER" property="statisticTimeUnit" />
<result column="seq_time" jdbcType="INTEGER" property="seqTime" />
<result column="premium" jdbcType="INTEGER" property="premium" />
<result column="commission" jdbcType="INTEGER" property="commission" />
<result column="premium" jdbcType="DECIMAL" property="premium" />
<result column="commission" jdbcType="DECIMAL" property="commission" />
<result column="pieces" jdbcType="INTEGER" property="pieces" />
<result column="piece_average_premium" jdbcType="INTEGER" property="pieceAveragePremium" />
<result column="piece_average_premium" jdbcType="DECIMAL" property="pieceAveragePremium" />
<result column="current_version" jdbcType="TIMESTAMP" property="currentVersion" />
<result column="is_active" jdbcType="INTEGER" property="isActive" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
......@@ -51,8 +51,8 @@
updated_at, updated_by)
values (#{goalsType,jdbcType=INTEGER}, #{practitionerId,jdbcType=BIGINT}, #{subordinateSystemId,jdbcType=BIGINT},
#{subordinateSystemName,jdbcType=VARCHAR}, #{currentYear,jdbcType=INTEGER}, #{statisticTimeUnit,jdbcType=INTEGER},
#{seqTime,jdbcType=INTEGER}, #{premium,jdbcType=INTEGER}, #{commission,jdbcType=INTEGER},
#{pieces,jdbcType=INTEGER}, #{pieceAveragePremium,jdbcType=INTEGER}, #{currentVersion,jdbcType=TIMESTAMP},
#{seqTime,jdbcType=INTEGER}, #{premium,jdbcType=DECIMAL}, #{commission,jdbcType=DECIMAL},
#{pieces,jdbcType=INTEGER}, #{pieceAveragePremium,jdbcType=DECIMAL}, #{currentVersion,jdbcType=TIMESTAMP},
#{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT},
#{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT})
</insert>
......@@ -135,16 +135,16 @@
#{seqTime,jdbcType=INTEGER},
</if>
<if test="premium != null">
#{premium,jdbcType=INTEGER},
#{premium,jdbcType=DECIMAL},
</if>
<if test="commission != null">
#{commission,jdbcType=INTEGER},
#{commission,jdbcType=DECIMAL},
</if>
<if test="pieces != null">
#{pieces,jdbcType=INTEGER},
</if>
<if test="pieceAveragePremium != null">
#{pieceAveragePremium,jdbcType=INTEGER},
#{pieceAveragePremium,jdbcType=DECIMAL},
</if>
<if test="currentVersion != null">
#{currentVersion,jdbcType=TIMESTAMP},
......@@ -192,16 +192,16 @@
seq_time = #{seqTime,jdbcType=INTEGER},
</if>
<if test="premium != null">
premium = #{premium,jdbcType=INTEGER},
premium = #{premium,jdbcType=DECIMAL},
</if>
<if test="commission != null">
commission = #{commission,jdbcType=INTEGER},
commission = #{commission,jdbcType=DECIMAL},
</if>
<if test="pieces != null">
pieces = #{pieces,jdbcType=INTEGER},
</if>
<if test="pieceAveragePremium != null">
piece_average_premium = #{pieceAveragePremium,jdbcType=INTEGER},
piece_average_premium = #{pieceAveragePremium,jdbcType=DECIMAL},
</if>
<if test="currentVersion != null">
current_version = #{currentVersion,jdbcType=TIMESTAMP},
......@@ -234,10 +234,10 @@
current_year = #{currentYear,jdbcType=INTEGER},
statistic_time_unit = #{statisticTimeUnit,jdbcType=INTEGER},
seq_time = #{seqTime,jdbcType=INTEGER},
premium = #{premium,jdbcType=INTEGER},
commission = #{commission,jdbcType=INTEGER},
premium = #{premium,jdbcType=DECIMAL},
commission = #{commission,jdbcType=DECIMAL},
pieces = #{pieces,jdbcType=INTEGER},
piece_average_premium = #{pieceAveragePremium,jdbcType=INTEGER},
piece_average_premium = #{pieceAveragePremium,jdbcType=DECIMAL},
current_version = #{currentVersion,jdbcType=TIMESTAMP},
is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP},
......
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