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

master
xiaoCJ 5 months ago
parent ec1bf87974
commit f45f5479f6

@ -348,9 +348,10 @@ public class SynthesisPlanController {
@PostMapping("/getPotentialCustomerList") @PostMapping("/getPotentialCustomerList")
public ResultEntity<PageInfo<SynthesisPlanClient>> getPotentialCustomerList(@RequestParam Integer index, public ResultEntity<PageInfo<SynthesisPlanClient>> getPotentialCustomerList(@RequestParam Integer index,
@RequestParam Integer size, @RequestParam Integer size,
@RequestParam String userId,
@RequestParam(required = false) String keyWord) { @RequestParam(required = false) String keyWord) {
PageHelper.startPage(index, size); PageHelper.startPage(index, size);
List<SynthesisPlanClient> list = synthesisPlanClientMapper.getPotentialCustomerList(keyWord); List<SynthesisPlanClient> list = synthesisPlanClientMapper.getPotentialCustomerList(userId,keyWord);
PageInfo pageInfo = new PageInfo(list); PageInfo pageInfo = new PageInfo(list);
return new ResultEntity<PageInfo<SynthesisPlanClient>>(pageInfo); 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.SynthesisPlanClient;
import com.sztzjy.money_management.entity.SynthesisPlanClientExample; import com.sztzjy.money_management.entity.SynthesisPlanClientExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import java.util.List;
@Mapper @Mapper
public interface SynthesisPlanClientMapper { public interface SynthesisPlanClientMapper {
long countByExample(SynthesisPlanClientExample example); long countByExample(SynthesisPlanClientExample example);
@ -38,7 +38,8 @@ public interface SynthesisPlanClientMapper {
@Select("select count(*) from synthesis_plan_client where userid=#{userId} and submit_status='已审核'") @Select("select count(*) from synthesis_plan_client where userid=#{userId} and submit_status='已审核'")
Integer selectYiYouTotalCount(String userId); 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}") @Select("select sum(use_time) from synthesis_plan_client where userid=#{userId}")
Integer getTotalUseTime(String userId); Integer getTotalUseTime(String userId);

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

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

Loading…
Cancel
Save