fix
This commit is contained in:
@@ -98,12 +98,12 @@ public class PointRecommendDAO {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除未选择的推荐铺位
|
* 转让线索更新推荐状态
|
||||||
* @param lineId
|
* @param lineId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Integer deleteUnselectedRecommendPointByLineId(Long lineId) {
|
public Integer turnLineUpdateRecommendStatus(Long lineId, String developmentManager) {
|
||||||
return pointRecommendMapper.deleteUnselectedRecommendPointByLineId(lineId);
|
return pointRecommendMapper.turnLineUpdateRecommendStatus(lineId, developmentManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -51,11 +51,11 @@ public interface PointRecommendMapper extends Mapper<PointRecommendDO> {
|
|||||||
Integer batchInsert(@Param("recommendList") List<PointRecommendDO> recommendList);
|
Integer batchInsert(@Param("recommendList") List<PointRecommendDO> recommendList);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除线索为推进的铺位
|
* 转让线索更新推荐状态
|
||||||
* @param lineId
|
* @param lineId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
Integer deleteUnselectedRecommendPointByLineId(@Param("lineId") Long lineId);
|
Integer turnLineUpdateRecommendStatus(@Param("lineId") Long lineId, @Param("developmentManager")String developmentManager);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 线索获取推荐铺位列表
|
* 线索获取推荐铺位列表
|
||||||
|
|||||||
@@ -69,8 +69,14 @@
|
|||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<update id="deleteUnselectedRecommendPointByLineId">
|
<update id="turnLineUpdateRecommendStatus">
|
||||||
update xfsg_point_recommend set deleted = 1 where line_id = #{lineId} and deleted = 0 and status in (0,2)
|
update
|
||||||
|
xfsg_point_recommend
|
||||||
|
set
|
||||||
|
deleted = if(status = 1, 1, deleted),
|
||||||
|
development_manager = if(status in (2,4), #{developmentManager}, development_manager)
|
||||||
|
where
|
||||||
|
line_id = #{lineId}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="getLineRecommendPointPage" resultType="com.cool.store.dto.point.MiniPointPageDTO">
|
<select id="getLineRecommendPointPage" resultType="com.cool.store.dto.point.MiniPointPageDTO">
|
||||||
|
|||||||
@@ -654,7 +654,7 @@ public class PointServiceImpl implements PointService {
|
|||||||
String wantShopName = hyOpenAreaInfoDAO.selectNameMapById(lineInfo.getWantShopAreaId());
|
String wantShopName = hyOpenAreaInfoDAO.selectNameMapById(lineInfo.getWantShopAreaId());
|
||||||
commonService.sendMessage(Arrays.asList(request.getDevelopmentManager()), MessageEnum.MESSAGE_14, lineInfo.getUsername(), lineInfo.getMobile(), wantShopName);
|
commonService.sendMessage(Arrays.asList(request.getDevelopmentManager()), MessageEnum.MESSAGE_14, lineInfo.getUsername(), lineInfo.getMobile(), wantShopName);
|
||||||
//删除未选择的推荐铺位
|
//删除未选择的推荐铺位
|
||||||
return pointRecommendDAO.deleteUnselectedRecommendPointByLineId(lineId);
|
return pointRecommendDAO.turnLineUpdateRecommendStatus(lineId, request.getDevelopmentManager());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user