Commit fb188029 by yao.xiao

解决冲突

parent c3d605d2
......@@ -550,7 +550,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
optionCodeToId.put(info.getDropOptionCode(),info.getId());
}
Long refusedId = optionCodeToId.get("refused");
if (mdDropOptionId==refusedId){
if (mdDropOptionId.equals(refusedId)){
return 1L;
}
return 0L;
......@@ -1599,7 +1599,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
public PlayerSalesActivityQueryResponseVO playerSalesActivityQuery(PlayerSalesActivityQueryRequestVO requestVO) {
PlayerSalesActivityQueryResponseVO responseVO = new PlayerSalesActivityQueryResponseVO();
Long practitionerId = requestVO.getPractitionerId();
MdDropOptions mdDropOptions = mdDropOptionsDALService.findByMasterCodeAndOptionsCode("bizchance_promotion_action","refused");
MdDropOptions mdDropOptions = mdDropOptionsDALService.selectByMasterCodeAndOptionsCode("bizchance_promotion_action","refused");
List<PlayerSalesActivityInfo> playerSalesActivityInfos = aclPractitionerDALService.playerSalesActivityQuery(practitionerId,mdDropOptions.getId());
//计算完成率
Calendar cal = Calendar.getInstance();
......@@ -1615,7 +1615,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
//总分数
Integer predictionScore = 0;
for (MktLeadsGoalsActions actions : mktLeadsGoalsActions){
if (info.getPractitionerId() == actions.getPractitionerId()){
if (info.getPractitionerId().equals(actions.getPractitionerId())){
predictionScore += actions.getActionStandards() * optionsIdToScore.get(actions.getLeadsActionId());
}
}
......
......@@ -25,5 +25,5 @@ public interface MdDropOptionsMapper {
List<MdDropOptions> findByMasterCodeAndOrderId(@Param("masterCode")String masterCode, @Param("orderId")int orderId);
MdDropOptions findByMasterCodeAndOptionsCode(@Param("masterCode") String masterCode, @Param("optionsCode") String optionsCode);
MdDropOptions selectByMasterCodeAndOptionsCode(@Param("masterCode") String masterCode, @Param("optionsCode") String optionsCode);
}
\ No newline at end of file
......@@ -15,5 +15,5 @@ public interface MdDropOptionsDALService {
List<MdDropOptions> findByMasterCodeAndOrderId(String masterCode, int orderId);
MdDropOptions findByMasterCodeAndOptionsCode(String masterCode, String optionsCode);
MdDropOptions selectByMasterCodeAndOptionsCode(String masterCode, String optionsCode);
}
......@@ -45,7 +45,7 @@ public class MdDropOptionsDALServiceImpl implements MdDropOptionsDALService {
}
@Override
public MdDropOptions findByMasterCodeAndOptionsCode(String masterCode, String optionsCode) {
return mdDropOptionsMapper.findByMasterCodeAndOptionsCode(masterCode, optionsCode);
public MdDropOptions selectByMasterCodeAndOptionsCode(String masterCode, String optionsCode) {
return mdDropOptionsMapper.selectByMasterCodeAndOptionsCode(masterCode, optionsCode);
}
}
......@@ -218,11 +218,13 @@
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_order = #{orderId,jdbcType=INTEGER}
where m.scenario_code = #{masterCode,jdbcType=BIGINT}
</select>
<select id="findByMasterCodeAndOptionsCode" resultMap="BaseResultMap">
<select id="selectByMasterCodeAndOptionsCode" resultMap="BaseResultMap">
SELECT o.*
FROM ag_md_drop_options o
LEFT JOIN ag_md_drop_master m ON m.id = o.drop_master_id
WHERE m.scenario_code = #{masterCode,jdbcType=VARCHAR,jdbcType=VARCHAR}
and o.drop_option_code = #{optionsCode,jdbcType=VARCHAR}
and o.is_active=1
and m.is_active=1
</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