重新生成生涯规划相关表,新增理财方案字段

master
xiaoCJ
parent ec1bf87974
commit f45f5479f6

@ -348,9 +348,10 @@ public class SynthesisPlanController {
@PostMapping("/getPotentialCustomerList")
public ResultEntity<PageInfo<SynthesisPlanClient>> getPotentialCustomerList(@RequestParam Integer index,
@RequestParam Integer size,
@RequestParam String userId,
@RequestParam(required = false) String keyWord) {
PageHelper.startPage(index, size);
List<SynthesisPlanClient> list = synthesisPlanClientMapper.getPotentialCustomerList(keyWord);
List<SynthesisPlanClient> list = synthesisPlanClientMapper.getPotentialCustomerList(userId,keyWord);
PageInfo pageInfo = new PageInfo(list);
return new ResultEntity<PageInfo<SynthesisPlanClient>>(pageInfo);
}

@ -2,12 +2,12 @@ package com.sztzjy.money_management.mapper;
import com.sztzjy.money_management.entity.SynthesisPlanClient;
import com.sztzjy.money_management.entity.SynthesisPlanClientExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
@Mapper
public interface SynthesisPlanClientMapper {
long countByExample(SynthesisPlanClientExample example);
@ -38,7 +38,8 @@ public interface SynthesisPlanClientMapper {
@Select("select count(*) from synthesis_plan_client where userid=#{userId} and submit_status='已审核'")
Integer selectYiYouTotalCount(String userId);
List<SynthesisPlanClient> getPotentialCustomerList(@Param("keyWord") String keyWord);
List<SynthesisPlanClient> getPotentialCustomerList(@Param("userId") String userId,
@Param("keyWord") String keyWord);
@Select("select sum(use_time) from synthesis_plan_client where userid=#{userId}")
Integer getTotalUseTime(String userId);

@ -357,7 +357,7 @@
<if test="type !=null and type !=''">
and manage_money_matters_type = #{type}
</if>
ORDER BY add_time desc
</where>
ORDER BY add_time desc
</select>
</mapper>

@ -536,6 +536,7 @@
SELECT * FROM synthesis_plan_client
WHERE get_status = 'true'
AND (submit_status IN ('未提交', '未审核') OR submit_status IS NULL)
AND userid = #{userId}
<if test="keyWord !=null and keyWord !=''">
AND
name LIKE CONCAT ('%',#{keyWord},'%')

Loading…
Cancel
Save