diff --git a/src/main/java/com/sztzjy/money_management/controller/CaseController.java b/src/main/java/com/sztzjy/money_management/controller/CaseController.java index 0aef040..b439d46 100644 --- a/src/main/java/com/sztzjy/money_management/controller/CaseController.java +++ b/src/main/java/com/sztzjy/money_management/controller/CaseController.java @@ -49,10 +49,31 @@ public class CaseController { @PostMapping("/insertOrUpdateInvestmentPlan") @ApiOperation("新增/编辑案例,投资规划") - private ResultEntity<HttpStatus> insertOrUpdateInvestmentPlan(@ApiParam("老师或管理员新增修改不传userId")@RequestBody CaseInvestmentPlanDto caseInvestmentPlanDto) { + private ResultEntity<HttpStatus> insertOrUpdateInvestmentPlan(@ApiParam("老师或管理员新增修改不传userId") @RequestBody CaseInvestmentPlanDto caseInvestmentPlanDto) { return caseService.insertOrUpdateInvestmentPlan(caseInvestmentPlanDto); } + + @PostMapping("/deleteCase") + @ApiOperation("删除案例题") + private ResultEntity<HttpStatus> deleteCase(@RequestParam String caseId, + @ApiParam("管理员/老师")@RequestParam String role) { + CaseInfo caseInfo = caseInfoMapper.selectByPrimaryKey(caseId); + if (role.equals("老师")) { + if (caseInfo.getSource().equals("999999999")) { + return new ResultEntity<HttpStatus>(HttpStatus.BAD_REQUEST, "内置题目,无法删除"); + } + caseInfoMapper.deleteByPrimaryKey(caseId); + return new ResultEntity<HttpStatus>(HttpStatus.OK, "删除成功"); + } + if (role.equals("管理员")) { + caseInfoMapper.deleteByPrimaryKey(caseId); + return new ResultEntity<HttpStatus>(HttpStatus.OK, "删除成功"); + } + return null; + } + + @PostMapping("/ZHGHType") @ApiOperation("综合规划下方展示类型") @AnonymousAccess diff --git a/src/main/java/com/sztzjy/money_management/controller/ProductCenter.java b/src/main/java/com/sztzjy/money_management/controller/ProductCenter.java index e851bac..c245e9d 100644 --- a/src/main/java/com/sztzjy/money_management/controller/ProductCenter.java +++ b/src/main/java/com/sztzjy/money_management/controller/ProductCenter.java @@ -40,8 +40,8 @@ public class ProductCenter { @ApiOperation("基金产品查询") @AnonymousAccess public ResultEntity<PageInfo<FundProduct>> selectFundProduct(@RequestParam(required = false) String param, - @RequestParam Integer index, - @RequestParam Integer size) { + @RequestParam Integer index, + @RequestParam Integer size) { PageHelper.startPage(index, size); FundProductExample example = new FundProductExample(); if (param != null) { @@ -65,9 +65,10 @@ public class ProductCenter { @PostMapping("selectBankDeposits") @ApiOperation("银行储蓄查询") @AnonymousAccess - public ResultEntity<PageInfo<BankDeposits>> selectBankDeposits(@RequestParam(required = false) String bankName, @RequestParam String schoolId, - @RequestParam Integer index, - @RequestParam Integer size) { + public ResultEntity<PageInfo<BankDeposits>> selectBankDeposits(@RequestParam(required = false) String bankName, + @RequestParam String schoolId, + @RequestParam Integer index, + @RequestParam Integer size) { PageHelper.startPage(index, size); BankDepositsExample example = new BankDepositsExample(); BankDepositsExample.Criteria criteria = example.createCriteria(); @@ -92,8 +93,8 @@ public class ProductCenter { @ApiOperation("P2P产品查询") @AnonymousAccess public ResultEntity<PageInfo<p2pProduct>> selectP2PProduct(@RequestParam(required = false) String productName, - @RequestParam Integer index, - @RequestParam Integer size) { + @RequestParam Integer index, + @RequestParam Integer size) { PageHelper.startPage(index, size); p2pProductExample example = new p2pProductExample(); if (productName != null) { @@ -111,7 +112,7 @@ public class ProductCenter { @ApiOperation("实务黄金查询") @AnonymousAccess public ResultEntity<PageInfo<RealGoldProduct>> selectRealGoldProduct(@RequestParam Integer index, - @RequestParam Integer size) { + @RequestParam Integer size) { PageHelper.startPage(index, size); RealGoldProductExample example = new RealGoldProductExample(); example.setOrderByClause("trading_day asc"); @@ -124,9 +125,9 @@ public class ProductCenter { @ApiOperation("保险产品查询") @AnonymousAccess public ResultEntity<PageInfo<InsurancePro>> selectInsurancePro(@ApiParam("保险子类") @RequestParam(required = false) String kind, - @ApiParam("搜索参数") @RequestParam(required = false) String name, - @RequestParam Integer index, - @RequestParam Integer size) { + @ApiParam("搜索参数") @RequestParam(required = false) String name, + @RequestParam Integer index, + @RequestParam Integer size) { PageHelper.startPage(index, size); InsuranceProExample example = new InsuranceProExample(); InsuranceProExample.Criteria criteria = example.createCriteria(); diff --git a/src/main/java/com/sztzjy/money_management/controller/TopicController.java b/src/main/java/com/sztzjy/money_management/controller/TopicController.java index a88baac..78b7fe1 100644 --- a/src/main/java/com/sztzjy/money_management/controller/TopicController.java +++ b/src/main/java/com/sztzjy/money_management/controller/TopicController.java @@ -58,9 +58,9 @@ public class TopicController { if (!objectiveQuestion.getOutline().equals("普通题库") && StringUtils.isBlank(objectiveQuestion.getSubclass())) { return new ResultEntity<>(HttpStatus.BAD_REQUEST, "大纲子类不能为空!"); } - if (StringUtils.isBlank(objectiveQuestion.getChapterId()) || StringUtils.isBlank(objectiveQuestion.getChapterName())) { - return new ResultEntity<>(HttpStatus.BAD_REQUEST, "所属章节信息不能为空!"); - } +// if (StringUtils.isBlank(objectiveQuestion.getChapterId()) || StringUtils.isBlank(objectiveQuestion.getChapterName())) { +// return new ResultEntity<>(HttpStatus.BAD_REQUEST, "所属章节信息不能为空!"); +// } if (objectiveQuestion.getType() == 1 || objectiveQuestion.getType() == 0) { if (StringUtils.isBlank(objectiveQuestion.getQuestionA()) || StringUtils.isBlank(objectiveQuestion.getQuestionB()) || StringUtils.isBlank(objectiveQuestion.getQuestionC()) || StringUtils.isBlank(objectiveQuestion.getQuestionD())) @@ -141,12 +141,13 @@ public class TopicController { @AnonymousAccess private ResultEntity<PageInfo<ObjectiveQuestionWithBLOBs>> getObjectiveByType(@RequestParam Integer index, @RequestParam Integer size, - @ApiParam("0单选,1多选,2判断") @RequestParam int type, + @ApiParam("0单选,1多选,2判断") @RequestParam(required = false) Integer type, @ApiParam("普通题库/金融智能/银行从业") @RequestParam String outLine, @ApiParam("理论知识/专业能力公共基础/个人理财/风险管理/公司信贷/个人贷款") @RequestParam(required = false) String subClass, - @RequestParam(required = false) String content) { + @RequestParam(required = false) String content, + @RequestParam(required = false) String schoolId) { PageHelper.startPage(index, size); - List<ObjectiveQuestionWithBLOBs> list = objectiveQuestionMapper.getObjectiveByType(type, outLine, subClass, content); + List<ObjectiveQuestionWithBLOBs> list = objectiveQuestionMapper.getObjectiveByType(type, outLine, subClass, content,schoolId); PageInfo pageInfo = new PageInfo(list); return new ResultEntity<PageInfo<ObjectiveQuestionWithBLOBs>>(pageInfo); } @@ -165,8 +166,8 @@ public class TopicController { @AnonymousAccess private ResultEntity<List<ObjectiveQuestionDto>> getObjectiveRecord(@RequestParam String chapterId, @RequestParam String trainingId, - @ApiParam("重新作答按钮传true")@RequestParam boolean flag) { - List<ObjectiveQuestionDto> list = objectiveQuestionService.getObjectiveRecord(chapterId, trainingId,flag); + @ApiParam("重新作答按钮传true") @RequestParam boolean flag) { + List<ObjectiveQuestionDto> list = objectiveQuestionService.getObjectiveRecord(chapterId, trainingId, flag); return new ResultEntity<List<ObjectiveQuestionDto>>(list); } diff --git a/src/main/java/com/sztzjy/money_management/mapper/ObjectiveQuestionMapper.java b/src/main/java/com/sztzjy/money_management/mapper/ObjectiveQuestionMapper.java index 092f6ef..ed13ed8 100644 --- a/src/main/java/com/sztzjy/money_management/mapper/ObjectiveQuestionMapper.java +++ b/src/main/java/com/sztzjy/money_management/mapper/ObjectiveQuestionMapper.java @@ -43,10 +43,11 @@ public interface ObjectiveQuestionMapper { List<TopicDto> getObjectiveCountByChapterId(@Param("outLine") String outLine, @Param("chapterId") String chapterId); - List<ObjectiveQuestionWithBLOBs> getObjectiveByType(@Param("type") int type, + List<ObjectiveQuestionWithBLOBs> getObjectiveByType(@Param("type") Integer type, @Param("outLine") String outLine, @Param("subClass") String subClass, - @Param("content") String content); + @Param("content") String content, + @Param("schoolId") String schoolId); int batchDelete(@Param("list") List<String> objectiveQuestionId); diff --git a/src/main/java/com/sztzjy/money_management/service/impl/CaseServiceImpl.java b/src/main/java/com/sztzjy/money_management/service/impl/CaseServiceImpl.java index 97722e9..71a5501 100644 --- a/src/main/java/com/sztzjy/money_management/service/impl/CaseServiceImpl.java +++ b/src/main/java/com/sztzjy/money_management/service/impl/CaseServiceImpl.java @@ -361,7 +361,7 @@ public class CaseServiceImpl implements CaseService { } if (type.equals("生涯规划-消费规划")) { - CaseConsumptionPlanWithBLOBs caseConsumptionPlan = gson.fromJson(json, CaseConsumptionPlanWithBLOBs.class); + CaseConsumptionPlan caseConsumptionPlan = gson.fromJson(json, CaseConsumptionPlan.class); if (StringUtils.isBlank(caseConsumptionPlan.getCaseConsumptionPlanId())) { caseConsumptionPlan.setCaseConsumptionPlanId(IdUtil.randomUUID()); caseConsumptionPlanMapper.insert(caseConsumptionPlan); @@ -2006,7 +2006,7 @@ public class CaseServiceImpl implements CaseService { } else { criteria.andUserIdEqualTo(userId); } - List<CaseConsumptionPlan> CaseConsumptionPlans = caseConsumptionPlanMapper.selectByExampleWithBLOBs(example); + List<CaseConsumptionPlan> CaseConsumptionPlans = caseConsumptionPlanMapper.selectByExample(example); if (CaseConsumptionPlans == null || CaseConsumptionPlans.isEmpty()) { return null; } diff --git a/src/main/java/com/sztzjy/money_management/service/impl/ObjectiveQuestionServiceImpl.java b/src/main/java/com/sztzjy/money_management/service/impl/ObjectiveQuestionServiceImpl.java index 0b12184..ae0cf6c 100644 --- a/src/main/java/com/sztzjy/money_management/service/impl/ObjectiveQuestionServiceImpl.java +++ b/src/main/java/com/sztzjy/money_management/service/impl/ObjectiveQuestionServiceImpl.java @@ -12,7 +12,6 @@ import com.sztzjy.money_management.service.ObjectiveQuestionService; import com.sztzjy.money_management.util.ResultEntity; import org.apache.commons.lang3.StringUtils; import org.apache.poi.ss.usermodel.*; -import org.hibernate.event.spi.SaveOrUpdateEvent; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; @@ -114,7 +113,13 @@ public class ObjectiveQuestionServiceImpl implements ObjectiveQuestionService { } objectiveQuestionList.add(obj); } + + if (objectiveQuestionList.isEmpty()) { + return new ResultEntity<>(HttpStatus.INTERNAL_SERVER_ERROR, "数据为空"); + } + int result = objectiveQuestionMapper.insertBatch(objectiveQuestionList); + if (result > 0) { return new ResultEntity<>(HttpStatus.OK, "批量导入成功!"); } else { diff --git a/src/main/resources/mapper/ObjectiveQuestionMapper.xml b/src/main/resources/mapper/ObjectiveQuestionMapper.xml index 484ed48..7afcc41 100644 --- a/src/main/resources/mapper/ObjectiveQuestionMapper.xml +++ b/src/main/resources/mapper/ObjectiveQuestionMapper.xml @@ -478,6 +478,9 @@ <if test="subClass !=null and subClass !=''"> and subclass = #{subClass} </if> + <if test="schoolId !=null and schoolId!=''"> + and source in ('999999999',#{schoolId}) + </if> </where> </select> diff --git a/src/main/resources/mapper/SynthesisPlanClientMapper.xml b/src/main/resources/mapper/SynthesisPlanClientMapper.xml index 750d022..f750d88 100644 --- a/src/main/resources/mapper/SynthesisPlanClientMapper.xml +++ b/src/main/resources/mapper/SynthesisPlanClientMapper.xml @@ -1,539 +1,546 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.sztzjy.money_management.mapper.SynthesisPlanClientMapper"> - <resultMap id="BaseResultMap" type="com.sztzjy.money_management.entity.SynthesisPlanClient"> - <id column="stu_client_id" jdbcType="VARCHAR" property="stuClientId" /> - <result column="caseid" jdbcType="VARCHAR" property="caseid" /> - <result column="userid" jdbcType="VARCHAR" property="userid" /> - <result column="source" jdbcType="VARCHAR" property="source" /> - <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> - <result column="client_number" jdbcType="VARCHAR" property="clientNumber" /> - <result column="proposal_name" jdbcType="VARCHAR" property="proposalName" /> - <result column="proposal_number" jdbcType="VARCHAR" property="proposalNumber" /> - <result column="get_status" jdbcType="VARCHAR" property="getStatus" /> - <result column="get_time" jdbcType="TIMESTAMP" property="getTime" /> - <result column="name" jdbcType="VARCHAR" property="name" /> - <result column="namepy" jdbcType="VARCHAR" property="namepy" /> - <result column="age" jdbcType="INTEGER" property="age" /> - <result column="year_income" jdbcType="DECIMAL" property="yearIncome" /> - <result column="idcard" jdbcType="VARCHAR" property="idcard" /> - <result column="phone_number" jdbcType="VARCHAR" property="phoneNumber" /> - <result column="job" jdbcType="VARCHAR" property="job" /> - <result column="addr" jdbcType="VARCHAR" property="addr" /> - <result column="telephone" jdbcType="VARCHAR" property="telephone" /> - <result column="email" jdbcType="VARCHAR" property="email" /> - <result column="job_place" jdbcType="VARCHAR" property="jobPlace" /> - <result column="manage_money_matters_type" jdbcType="VARCHAR" property="manageMoneyMattersType" /> - <result column="submit_status" jdbcType="CHAR" property="submitStatus" /> - <result column="use_time" jdbcType="DECIMAL" property="useTime" /> - <result column="school_id" jdbcType="VARCHAR" property="schoolId" /> - </resultMap> - <sql id="Example_Where_Clause"> - <where> - <foreach collection="oredCriteria" item="criteria" separator="or"> - <if test="criteria.valid"> - <trim prefix="(" prefixOverrides="and" suffix=")"> - <foreach collection="criteria.criteria" item="criterion"> - <choose> - <when test="criterion.noValue"> - and ${criterion.condition} - </when> - <when test="criterion.singleValue"> - and ${criterion.condition} #{criterion.value} - </when> - <when test="criterion.betweenValue"> - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - </when> - <when test="criterion.listValue"> - and ${criterion.condition} - <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> - #{listItem} - </foreach> - </when> - </choose> + <resultMap id="BaseResultMap" type="com.sztzjy.money_management.entity.SynthesisPlanClient"> + <id column="stu_client_id" jdbcType="VARCHAR" property="stuClientId"/> + <result column="caseid" jdbcType="VARCHAR" property="caseid"/> + <result column="userid" jdbcType="VARCHAR" property="userid"/> + <result column="source" jdbcType="VARCHAR" property="source"/> + <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/> + <result column="client_number" jdbcType="VARCHAR" property="clientNumber"/> + <result column="proposal_name" jdbcType="VARCHAR" property="proposalName"/> + <result column="proposal_number" jdbcType="VARCHAR" property="proposalNumber"/> + <result column="get_status" jdbcType="VARCHAR" property="getStatus"/> + <result column="get_time" jdbcType="TIMESTAMP" property="getTime"/> + <result column="name" jdbcType="VARCHAR" property="name"/> + <result column="namepy" jdbcType="VARCHAR" property="namepy"/> + <result column="age" jdbcType="INTEGER" property="age"/> + <result column="year_income" jdbcType="DECIMAL" property="yearIncome"/> + <result column="idcard" jdbcType="VARCHAR" property="idcard"/> + <result column="phone_number" jdbcType="VARCHAR" property="phoneNumber"/> + <result column="job" jdbcType="VARCHAR" property="job"/> + <result column="addr" jdbcType="VARCHAR" property="addr"/> + <result column="telephone" jdbcType="VARCHAR" property="telephone"/> + <result column="email" jdbcType="VARCHAR" property="email"/> + <result column="job_place" jdbcType="VARCHAR" property="jobPlace"/> + <result column="manage_money_matters_type" jdbcType="VARCHAR" property="manageMoneyMattersType"/> + <result column="submit_status" jdbcType="CHAR" property="submitStatus"/> + <result column="use_time" jdbcType="DECIMAL" property="useTime"/> + <result column="school_id" jdbcType="VARCHAR" property="schoolId"/> + </resultMap> + <sql id="Example_Where_Clause"> + <where> + <foreach collection="oredCriteria" item="criteria" separator="or"> + <if test="criteria.valid"> + <trim prefix="(" prefixOverrides="and" suffix=")"> + <foreach collection="criteria.criteria" item="criterion"> + <choose> + <when test="criterion.noValue"> + and ${criterion.condition} + </when> + <when test="criterion.singleValue"> + and ${criterion.condition} #{criterion.value} + </when> + <when test="criterion.betweenValue"> + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + </when> + <when test="criterion.listValue"> + and ${criterion.condition} + <foreach close=")" collection="criterion.value" item="listItem" open="(" + separator=","> + #{listItem} + </foreach> + </when> + </choose> + </foreach> + </trim> + </if> </foreach> - </trim> - </if> - </foreach> - </where> - </sql> - <sql id="Update_By_Example_Where_Clause"> - <where> - <foreach collection="example.oredCriteria" item="criteria" separator="or"> - <if test="criteria.valid"> - <trim prefix="(" prefixOverrides="and" suffix=")"> - <foreach collection="criteria.criteria" item="criterion"> - <choose> - <when test="criterion.noValue"> - and ${criterion.condition} - </when> - <when test="criterion.singleValue"> - and ${criterion.condition} #{criterion.value} - </when> - <when test="criterion.betweenValue"> - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - </when> - <when test="criterion.listValue"> - and ${criterion.condition} - <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> - #{listItem} - </foreach> - </when> - </choose> + </where> + </sql> + <sql id="Update_By_Example_Where_Clause"> + <where> + <foreach collection="example.oredCriteria" item="criteria" separator="or"> + <if test="criteria.valid"> + <trim prefix="(" prefixOverrides="and" suffix=")"> + <foreach collection="criteria.criteria" item="criterion"> + <choose> + <when test="criterion.noValue"> + and ${criterion.condition} + </when> + <when test="criterion.singleValue"> + and ${criterion.condition} #{criterion.value} + </when> + <when test="criterion.betweenValue"> + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + </when> + <when test="criterion.listValue"> + and ${criterion.condition} + <foreach close=")" collection="criterion.value" item="listItem" open="(" + separator=","> + #{listItem} + </foreach> + </when> + </choose> + </foreach> + </trim> + </if> </foreach> - </trim> - </if> - </foreach> - </where> - </sql> - <sql id="Base_Column_List"> - stu_client_id, caseid, userid, source, create_time, client_number, proposal_name, + </where> + </sql> + <sql id="Base_Column_List"> + stu_client_id + , caseid, userid, source, create_time, client_number, proposal_name, proposal_number, get_status, get_time, name, namepy, age, year_income, idcard, phone_number, job, addr, telephone, email, job_place, manage_money_matters_type, submit_status, use_time, school_id - </sql> - <select id="selectByExample" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClientExample" resultMap="BaseResultMap"> - select - <if test="distinct"> - distinct - </if> - <include refid="Base_Column_List" /> - from synthesis_plan_client - <if test="_parameter != null"> - <include refid="Example_Where_Clause" /> - </if> - <if test="orderByClause != null"> - order by ${orderByClause} - </if> - </select> - <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> - select - <include refid="Base_Column_List" /> - from synthesis_plan_client - where stu_client_id = #{stuClientId,jdbcType=VARCHAR} - </select> - <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> - delete from synthesis_plan_client - where stu_client_id = #{stuClientId,jdbcType=VARCHAR} - </delete> - <delete id="deleteByExample" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClientExample"> - delete from synthesis_plan_client - <if test="_parameter != null"> - <include refid="Example_Where_Clause" /> - </if> - </delete> - <insert id="insert" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClient"> - insert into synthesis_plan_client (stu_client_id, caseid, userid, - source, create_time, client_number, - proposal_name, proposal_number, get_status, - get_time, name, namepy, - age, year_income, idcard, - phone_number, job, addr, - telephone, email, job_place, - manage_money_matters_type, submit_status, use_time, - school_id) - values (#{stuClientId,jdbcType=VARCHAR}, #{caseid,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR}, - #{source,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{clientNumber,jdbcType=VARCHAR}, - #{proposalName,jdbcType=VARCHAR}, #{proposalNumber,jdbcType=VARCHAR}, #{getStatus,jdbcType=VARCHAR}, - #{getTime,jdbcType=TIMESTAMP}, #{name,jdbcType=VARCHAR}, #{namepy,jdbcType=VARCHAR}, - #{age,jdbcType=INTEGER}, #{yearIncome,jdbcType=DECIMAL}, #{idcard,jdbcType=VARCHAR}, - #{phoneNumber,jdbcType=VARCHAR}, #{job,jdbcType=VARCHAR}, #{addr,jdbcType=VARCHAR}, - #{telephone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{jobPlace,jdbcType=VARCHAR}, - #{manageMoneyMattersType,jdbcType=VARCHAR}, #{submitStatus,jdbcType=CHAR}, #{useTime,jdbcType=DECIMAL}, - #{schoolId,jdbcType=VARCHAR}) - </insert> - <insert id="insertSelective" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClient"> - insert into synthesis_plan_client - <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="stuClientId != null"> - stu_client_id, - </if> - <if test="caseid != null"> - caseid, - </if> - <if test="userid != null"> - userid, - </if> - <if test="source != null"> - source, - </if> - <if test="createTime != null"> - create_time, - </if> - <if test="clientNumber != null"> - client_number, - </if> - <if test="proposalName != null"> - proposal_name, - </if> - <if test="proposalNumber != null"> - proposal_number, - </if> - <if test="getStatus != null"> - get_status, - </if> - <if test="getTime != null"> - get_time, - </if> - <if test="name != null"> - name, - </if> - <if test="namepy != null"> - namepy, - </if> - <if test="age != null"> - age, - </if> - <if test="yearIncome != null"> - year_income, - </if> - <if test="idcard != null"> - idcard, - </if> - <if test="phoneNumber != null"> - phone_number, - </if> - <if test="job != null"> - job, - </if> - <if test="addr != null"> - addr, - </if> - <if test="telephone != null"> - telephone, - </if> - <if test="email != null"> - email, - </if> - <if test="jobPlace != null"> - job_place, - </if> - <if test="manageMoneyMattersType != null"> - manage_money_matters_type, - </if> - <if test="submitStatus != null"> - submit_status, - </if> - <if test="useTime != null"> - use_time, - </if> - <if test="schoolId != null"> - school_id, - </if> - </trim> - <trim prefix="values (" suffix=")" suffixOverrides=","> - <if test="stuClientId != null"> - #{stuClientId,jdbcType=VARCHAR}, - </if> - <if test="caseid != null"> - #{caseid,jdbcType=VARCHAR}, - </if> - <if test="userid != null"> - #{userid,jdbcType=VARCHAR}, - </if> - <if test="source != null"> - #{source,jdbcType=VARCHAR}, - </if> - <if test="createTime != null"> - #{createTime,jdbcType=TIMESTAMP}, - </if> - <if test="clientNumber != null"> - #{clientNumber,jdbcType=VARCHAR}, - </if> - <if test="proposalName != null"> - #{proposalName,jdbcType=VARCHAR}, - </if> - <if test="proposalNumber != null"> - #{proposalNumber,jdbcType=VARCHAR}, - </if> - <if test="getStatus != null"> - #{getStatus,jdbcType=VARCHAR}, - </if> - <if test="getTime != null"> - #{getTime,jdbcType=TIMESTAMP}, - </if> - <if test="name != null"> - #{name,jdbcType=VARCHAR}, - </if> - <if test="namepy != null"> - #{namepy,jdbcType=VARCHAR}, - </if> - <if test="age != null"> - #{age,jdbcType=INTEGER}, - </if> - <if test="yearIncome != null"> - #{yearIncome,jdbcType=DECIMAL}, - </if> - <if test="idcard != null"> - #{idcard,jdbcType=VARCHAR}, - </if> - <if test="phoneNumber != null"> - #{phoneNumber,jdbcType=VARCHAR}, - </if> - <if test="job != null"> - #{job,jdbcType=VARCHAR}, - </if> - <if test="addr != null"> - #{addr,jdbcType=VARCHAR}, - </if> - <if test="telephone != null"> - #{telephone,jdbcType=VARCHAR}, - </if> - <if test="email != null"> - #{email,jdbcType=VARCHAR}, - </if> - <if test="jobPlace != null"> - #{jobPlace,jdbcType=VARCHAR}, - </if> - <if test="manageMoneyMattersType != null"> - #{manageMoneyMattersType,jdbcType=VARCHAR}, - </if> - <if test="submitStatus != null"> - #{submitStatus,jdbcType=CHAR}, - </if> - <if test="useTime != null"> - #{useTime,jdbcType=DECIMAL}, - </if> - <if test="schoolId != null"> - #{schoolId,jdbcType=VARCHAR}, - </if> - </trim> - </insert> - <select id="countByExample" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClientExample" resultType="java.lang.Long"> - select count(*) from synthesis_plan_client - <if test="_parameter != null"> - <include refid="Example_Where_Clause" /> - </if> - </select> - <update id="updateByExampleSelective" parameterType="map"> - update synthesis_plan_client - <set> - <if test="record.stuClientId != null"> - stu_client_id = #{record.stuClientId,jdbcType=VARCHAR}, - </if> - <if test="record.caseid != null"> + </sql> + <select id="selectByExample" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClientExample" + resultMap="BaseResultMap"> + select + <if test="distinct"> + distinct + </if> + <include refid="Base_Column_List"/> + from synthesis_plan_client + <if test="_parameter != null"> + <include refid="Example_Where_Clause"/> + </if> + <if test="orderByClause != null"> + order by ${orderByClause} + </if> + </select> + <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> + select + <include refid="Base_Column_List"/> + from synthesis_plan_client + where stu_client_id = #{stuClientId,jdbcType=VARCHAR} + </select> + <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> + delete + from synthesis_plan_client + where stu_client_id = #{stuClientId,jdbcType=VARCHAR} + </delete> + <delete id="deleteByExample" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClientExample"> + delete from synthesis_plan_client + <if test="_parameter != null"> + <include refid="Example_Where_Clause"/> + </if> + </delete> + <insert id="insert" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClient"> + insert into synthesis_plan_client (stu_client_id, caseid, userid, + source, create_time, client_number, + proposal_name, proposal_number, get_status, + get_time, name, namepy, + age, year_income, idcard, + phone_number, job, addr, + telephone, email, job_place, + manage_money_matters_type, submit_status, use_time, + school_id) + values (#{stuClientId,jdbcType=VARCHAR}, #{caseid,jdbcType=VARCHAR}, #{userid,jdbcType=VARCHAR}, + #{source,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{clientNumber,jdbcType=VARCHAR}, + #{proposalName,jdbcType=VARCHAR}, #{proposalNumber,jdbcType=VARCHAR}, #{getStatus,jdbcType=VARCHAR}, + #{getTime,jdbcType=TIMESTAMP}, #{name,jdbcType=VARCHAR}, #{namepy,jdbcType=VARCHAR}, + #{age,jdbcType=INTEGER}, #{yearIncome,jdbcType=DECIMAL}, #{idcard,jdbcType=VARCHAR}, + #{phoneNumber,jdbcType=VARCHAR}, #{job,jdbcType=VARCHAR}, #{addr,jdbcType=VARCHAR}, + #{telephone,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{jobPlace,jdbcType=VARCHAR}, + #{manageMoneyMattersType,jdbcType=VARCHAR}, #{submitStatus,jdbcType=CHAR}, #{useTime,jdbcType=DECIMAL}, + #{schoolId,jdbcType=VARCHAR}) + </insert> + <insert id="insertSelective" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClient"> + insert into synthesis_plan_client + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="stuClientId != null"> + stu_client_id, + </if> + <if test="caseid != null"> + caseid, + </if> + <if test="userid != null"> + userid, + </if> + <if test="source != null"> + source, + </if> + <if test="createTime != null"> + create_time, + </if> + <if test="clientNumber != null"> + client_number, + </if> + <if test="proposalName != null"> + proposal_name, + </if> + <if test="proposalNumber != null"> + proposal_number, + </if> + <if test="getStatus != null"> + get_status, + </if> + <if test="getTime != null"> + get_time, + </if> + <if test="name != null"> + name, + </if> + <if test="namepy != null"> + namepy, + </if> + <if test="age != null"> + age, + </if> + <if test="yearIncome != null"> + year_income, + </if> + <if test="idcard != null"> + idcard, + </if> + <if test="phoneNumber != null"> + phone_number, + </if> + <if test="job != null"> + job, + </if> + <if test="addr != null"> + addr, + </if> + <if test="telephone != null"> + telephone, + </if> + <if test="email != null"> + email, + </if> + <if test="jobPlace != null"> + job_place, + </if> + <if test="manageMoneyMattersType != null"> + manage_money_matters_type, + </if> + <if test="submitStatus != null"> + submit_status, + </if> + <if test="useTime != null"> + use_time, + </if> + <if test="schoolId != null"> + school_id, + </if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="stuClientId != null"> + #{stuClientId,jdbcType=VARCHAR}, + </if> + <if test="caseid != null"> + #{caseid,jdbcType=VARCHAR}, + </if> + <if test="userid != null"> + #{userid,jdbcType=VARCHAR}, + </if> + <if test="source != null"> + #{source,jdbcType=VARCHAR}, + </if> + <if test="createTime != null"> + #{createTime,jdbcType=TIMESTAMP}, + </if> + <if test="clientNumber != null"> + #{clientNumber,jdbcType=VARCHAR}, + </if> + <if test="proposalName != null"> + #{proposalName,jdbcType=VARCHAR}, + </if> + <if test="proposalNumber != null"> + #{proposalNumber,jdbcType=VARCHAR}, + </if> + <if test="getStatus != null"> + #{getStatus,jdbcType=VARCHAR}, + </if> + <if test="getTime != null"> + #{getTime,jdbcType=TIMESTAMP}, + </if> + <if test="name != null"> + #{name,jdbcType=VARCHAR}, + </if> + <if test="namepy != null"> + #{namepy,jdbcType=VARCHAR}, + </if> + <if test="age != null"> + #{age,jdbcType=INTEGER}, + </if> + <if test="yearIncome != null"> + #{yearIncome,jdbcType=DECIMAL}, + </if> + <if test="idcard != null"> + #{idcard,jdbcType=VARCHAR}, + </if> + <if test="phoneNumber != null"> + #{phoneNumber,jdbcType=VARCHAR}, + </if> + <if test="job != null"> + #{job,jdbcType=VARCHAR}, + </if> + <if test="addr != null"> + #{addr,jdbcType=VARCHAR}, + </if> + <if test="telephone != null"> + #{telephone,jdbcType=VARCHAR}, + </if> + <if test="email != null"> + #{email,jdbcType=VARCHAR}, + </if> + <if test="jobPlace != null"> + #{jobPlace,jdbcType=VARCHAR}, + </if> + <if test="manageMoneyMattersType != null"> + #{manageMoneyMattersType,jdbcType=VARCHAR}, + </if> + <if test="submitStatus != null"> + #{submitStatus,jdbcType=CHAR}, + </if> + <if test="useTime != null"> + #{useTime,jdbcType=DECIMAL}, + </if> + <if test="schoolId != null"> + #{schoolId,jdbcType=VARCHAR}, + </if> + </trim> + </insert> + <select id="countByExample" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClientExample" + resultType="java.lang.Long"> + select count(*) from synthesis_plan_client + <if test="_parameter != null"> + <include refid="Example_Where_Clause"/> + </if> + </select> + <update id="updateByExampleSelective" parameterType="map"> + update synthesis_plan_client + <set> + <if test="record.stuClientId != null"> + stu_client_id = #{record.stuClientId,jdbcType=VARCHAR}, + </if> + <if test="record.caseid != null"> + caseid = #{record.caseid,jdbcType=VARCHAR}, + </if> + <if test="record.userid != null"> + userid = #{record.userid,jdbcType=VARCHAR}, + </if> + <if test="record.source != null"> + source = #{record.source,jdbcType=VARCHAR}, + </if> + <if test="record.createTime != null"> + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + </if> + <if test="record.clientNumber != null"> + client_number = #{record.clientNumber,jdbcType=VARCHAR}, + </if> + <if test="record.proposalName != null"> + proposal_name = #{record.proposalName,jdbcType=VARCHAR}, + </if> + <if test="record.proposalNumber != null"> + proposal_number = #{record.proposalNumber,jdbcType=VARCHAR}, + </if> + <if test="record.getStatus != null"> + get_status = #{record.getStatus,jdbcType=VARCHAR}, + </if> + <if test="record.getTime != null"> + get_time = #{record.getTime,jdbcType=TIMESTAMP}, + </if> + <if test="record.name != null"> + name = #{record.name,jdbcType=VARCHAR}, + </if> + <if test="record.namepy != null"> + namepy = #{record.namepy,jdbcType=VARCHAR}, + </if> + <if test="record.age != null"> + age = #{record.age,jdbcType=INTEGER}, + </if> + <if test="record.yearIncome != null"> + year_income = #{record.yearIncome,jdbcType=DECIMAL}, + </if> + <if test="record.idcard != null"> + idcard = #{record.idcard,jdbcType=VARCHAR}, + </if> + <if test="record.phoneNumber != null"> + phone_number = #{record.phoneNumber,jdbcType=VARCHAR}, + </if> + <if test="record.job != null"> + job = #{record.job,jdbcType=VARCHAR}, + </if> + <if test="record.addr != null"> + addr = #{record.addr,jdbcType=VARCHAR}, + </if> + <if test="record.telephone != null"> + telephone = #{record.telephone,jdbcType=VARCHAR}, + </if> + <if test="record.email != null"> + email = #{record.email,jdbcType=VARCHAR}, + </if> + <if test="record.jobPlace != null"> + job_place = #{record.jobPlace,jdbcType=VARCHAR}, + </if> + <if test="record.manageMoneyMattersType != null"> + manage_money_matters_type = #{record.manageMoneyMattersType,jdbcType=VARCHAR}, + </if> + <if test="record.submitStatus != null"> + submit_status = #{record.submitStatus,jdbcType=CHAR}, + </if> + <if test="record.useTime != null"> + use_time = #{record.useTime,jdbcType=DECIMAL}, + </if> + <if test="record.schoolId != null"> + school_id = #{record.schoolId,jdbcType=VARCHAR}, + </if> + </set> + <if test="_parameter != null"> + <include refid="Update_By_Example_Where_Clause"/> + </if> + </update> + <update id="updateByExample" parameterType="map"> + update synthesis_plan_client + set stu_client_id = #{record.stuClientId,jdbcType=VARCHAR}, caseid = #{record.caseid,jdbcType=VARCHAR}, - </if> - <if test="record.userid != null"> userid = #{record.userid,jdbcType=VARCHAR}, - </if> - <if test="record.source != null"> source = #{record.source,jdbcType=VARCHAR}, - </if> - <if test="record.createTime != null"> create_time = #{record.createTime,jdbcType=TIMESTAMP}, - </if> - <if test="record.clientNumber != null"> client_number = #{record.clientNumber,jdbcType=VARCHAR}, - </if> - <if test="record.proposalName != null"> proposal_name = #{record.proposalName,jdbcType=VARCHAR}, - </if> - <if test="record.proposalNumber != null"> proposal_number = #{record.proposalNumber,jdbcType=VARCHAR}, - </if> - <if test="record.getStatus != null"> get_status = #{record.getStatus,jdbcType=VARCHAR}, - </if> - <if test="record.getTime != null"> get_time = #{record.getTime,jdbcType=TIMESTAMP}, - </if> - <if test="record.name != null"> name = #{record.name,jdbcType=VARCHAR}, - </if> - <if test="record.namepy != null"> namepy = #{record.namepy,jdbcType=VARCHAR}, - </if> - <if test="record.age != null"> age = #{record.age,jdbcType=INTEGER}, - </if> - <if test="record.yearIncome != null"> year_income = #{record.yearIncome,jdbcType=DECIMAL}, - </if> - <if test="record.idcard != null"> idcard = #{record.idcard,jdbcType=VARCHAR}, - </if> - <if test="record.phoneNumber != null"> phone_number = #{record.phoneNumber,jdbcType=VARCHAR}, - </if> - <if test="record.job != null"> job = #{record.job,jdbcType=VARCHAR}, - </if> - <if test="record.addr != null"> addr = #{record.addr,jdbcType=VARCHAR}, - </if> - <if test="record.telephone != null"> telephone = #{record.telephone,jdbcType=VARCHAR}, - </if> - <if test="record.email != null"> email = #{record.email,jdbcType=VARCHAR}, - </if> - <if test="record.jobPlace != null"> job_place = #{record.jobPlace,jdbcType=VARCHAR}, - </if> - <if test="record.manageMoneyMattersType != null"> manage_money_matters_type = #{record.manageMoneyMattersType,jdbcType=VARCHAR}, - </if> - <if test="record.submitStatus != null"> submit_status = #{record.submitStatus,jdbcType=CHAR}, - </if> - <if test="record.useTime != null"> use_time = #{record.useTime,jdbcType=DECIMAL}, - </if> - <if test="record.schoolId != null"> - school_id = #{record.schoolId,jdbcType=VARCHAR}, - </if> - </set> - <if test="_parameter != null"> - <include refid="Update_By_Example_Where_Clause" /> - </if> - </update> - <update id="updateByExample" parameterType="map"> - update synthesis_plan_client - set stu_client_id = #{record.stuClientId,jdbcType=VARCHAR}, - caseid = #{record.caseid,jdbcType=VARCHAR}, - userid = #{record.userid,jdbcType=VARCHAR}, - source = #{record.source,jdbcType=VARCHAR}, - create_time = #{record.createTime,jdbcType=TIMESTAMP}, - client_number = #{record.clientNumber,jdbcType=VARCHAR}, - proposal_name = #{record.proposalName,jdbcType=VARCHAR}, - proposal_number = #{record.proposalNumber,jdbcType=VARCHAR}, - get_status = #{record.getStatus,jdbcType=VARCHAR}, - get_time = #{record.getTime,jdbcType=TIMESTAMP}, - name = #{record.name,jdbcType=VARCHAR}, - namepy = #{record.namepy,jdbcType=VARCHAR}, - age = #{record.age,jdbcType=INTEGER}, - year_income = #{record.yearIncome,jdbcType=DECIMAL}, - idcard = #{record.idcard,jdbcType=VARCHAR}, - phone_number = #{record.phoneNumber,jdbcType=VARCHAR}, - job = #{record.job,jdbcType=VARCHAR}, - addr = #{record.addr,jdbcType=VARCHAR}, - telephone = #{record.telephone,jdbcType=VARCHAR}, - email = #{record.email,jdbcType=VARCHAR}, - job_place = #{record.jobPlace,jdbcType=VARCHAR}, - manage_money_matters_type = #{record.manageMoneyMattersType,jdbcType=VARCHAR}, - submit_status = #{record.submitStatus,jdbcType=CHAR}, - use_time = #{record.useTime,jdbcType=DECIMAL}, - school_id = #{record.schoolId,jdbcType=VARCHAR} - <if test="_parameter != null"> - <include refid="Update_By_Example_Where_Clause" /> - </if> - </update> - <update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClient"> - update synthesis_plan_client - <set> - <if test="caseid != null"> - caseid = #{caseid,jdbcType=VARCHAR}, - </if> - <if test="userid != null"> - userid = #{userid,jdbcType=VARCHAR}, - </if> - <if test="source != null"> - source = #{source,jdbcType=VARCHAR}, - </if> - <if test="createTime != null"> - create_time = #{createTime,jdbcType=TIMESTAMP}, - </if> - <if test="clientNumber != null"> - client_number = #{clientNumber,jdbcType=VARCHAR}, - </if> - <if test="proposalName != null"> - proposal_name = #{proposalName,jdbcType=VARCHAR}, - </if> - <if test="proposalNumber != null"> - proposal_number = #{proposalNumber,jdbcType=VARCHAR}, - </if> - <if test="getStatus != null"> - get_status = #{getStatus,jdbcType=VARCHAR}, - </if> - <if test="getTime != null"> - get_time = #{getTime,jdbcType=TIMESTAMP}, - </if> - <if test="name != null"> - name = #{name,jdbcType=VARCHAR}, - </if> - <if test="namepy != null"> - namepy = #{namepy,jdbcType=VARCHAR}, - </if> - <if test="age != null"> - age = #{age,jdbcType=INTEGER}, - </if> - <if test="yearIncome != null"> - year_income = #{yearIncome,jdbcType=DECIMAL}, - </if> - <if test="idcard != null"> - idcard = #{idcard,jdbcType=VARCHAR}, - </if> - <if test="phoneNumber != null"> - phone_number = #{phoneNumber,jdbcType=VARCHAR}, - </if> - <if test="job != null"> - job = #{job,jdbcType=VARCHAR}, - </if> - <if test="addr != null"> - addr = #{addr,jdbcType=VARCHAR}, - </if> - <if test="telephone != null"> - telephone = #{telephone,jdbcType=VARCHAR}, - </if> - <if test="email != null"> - email = #{email,jdbcType=VARCHAR}, - </if> - <if test="jobPlace != null"> - job_place = #{jobPlace,jdbcType=VARCHAR}, - </if> - <if test="manageMoneyMattersType != null"> - manage_money_matters_type = #{manageMoneyMattersType,jdbcType=VARCHAR}, - </if> - <if test="submitStatus != null"> - submit_status = #{submitStatus,jdbcType=CHAR}, - </if> - <if test="useTime != null"> - use_time = #{useTime,jdbcType=DECIMAL}, - </if> - <if test="schoolId != null"> - school_id = #{schoolId,jdbcType=VARCHAR}, - </if> - </set> - where stu_client_id = #{stuClientId,jdbcType=VARCHAR} - </update> - <update id="updateByPrimaryKey" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClient"> - update synthesis_plan_client - set caseid = #{caseid,jdbcType=VARCHAR}, - userid = #{userid,jdbcType=VARCHAR}, - source = #{source,jdbcType=VARCHAR}, - create_time = #{createTime,jdbcType=TIMESTAMP}, - client_number = #{clientNumber,jdbcType=VARCHAR}, - proposal_name = #{proposalName,jdbcType=VARCHAR}, - proposal_number = #{proposalNumber,jdbcType=VARCHAR}, - get_status = #{getStatus,jdbcType=VARCHAR}, - get_time = #{getTime,jdbcType=TIMESTAMP}, - name = #{name,jdbcType=VARCHAR}, - namepy = #{namepy,jdbcType=VARCHAR}, - age = #{age,jdbcType=INTEGER}, - year_income = #{yearIncome,jdbcType=DECIMAL}, - idcard = #{idcard,jdbcType=VARCHAR}, - phone_number = #{phoneNumber,jdbcType=VARCHAR}, - job = #{job,jdbcType=VARCHAR}, - addr = #{addr,jdbcType=VARCHAR}, - telephone = #{telephone,jdbcType=VARCHAR}, - email = #{email,jdbcType=VARCHAR}, - job_place = #{jobPlace,jdbcType=VARCHAR}, - manage_money_matters_type = #{manageMoneyMattersType,jdbcType=VARCHAR}, - submit_status = #{submitStatus,jdbcType=CHAR}, - use_time = #{useTime,jdbcType=DECIMAL}, - school_id = #{schoolId,jdbcType=VARCHAR} - where stu_client_id = #{stuClientId,jdbcType=VARCHAR} - </update> + school_id = #{record.schoolId,jdbcType=VARCHAR} + <if test="_parameter != null"> + <include refid="Update_By_Example_Where_Clause"/> + </if> + </update> + <update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClient"> + update synthesis_plan_client + <set> + <if test="caseid != null"> + caseid = #{caseid,jdbcType=VARCHAR}, + </if> + <if test="userid != null"> + userid = #{userid,jdbcType=VARCHAR}, + </if> + <if test="source != null"> + source = #{source,jdbcType=VARCHAR}, + </if> + <if test="createTime != null"> + create_time = #{createTime,jdbcType=TIMESTAMP}, + </if> + <if test="clientNumber != null"> + client_number = #{clientNumber,jdbcType=VARCHAR}, + </if> + <if test="proposalName != null"> + proposal_name = #{proposalName,jdbcType=VARCHAR}, + </if> + <if test="proposalNumber != null"> + proposal_number = #{proposalNumber,jdbcType=VARCHAR}, + </if> + <if test="getStatus != null"> + get_status = #{getStatus,jdbcType=VARCHAR}, + </if> + <if test="getTime != null"> + get_time = #{getTime,jdbcType=TIMESTAMP}, + </if> + <if test="name != null"> + name = #{name,jdbcType=VARCHAR}, + </if> + <if test="namepy != null"> + namepy = #{namepy,jdbcType=VARCHAR}, + </if> + <if test="age != null"> + age = #{age,jdbcType=INTEGER}, + </if> + <if test="yearIncome != null"> + year_income = #{yearIncome,jdbcType=DECIMAL}, + </if> + <if test="idcard != null"> + idcard = #{idcard,jdbcType=VARCHAR}, + </if> + <if test="phoneNumber != null"> + phone_number = #{phoneNumber,jdbcType=VARCHAR}, + </if> + <if test="job != null"> + job = #{job,jdbcType=VARCHAR}, + </if> + <if test="addr != null"> + addr = #{addr,jdbcType=VARCHAR}, + </if> + <if test="telephone != null"> + telephone = #{telephone,jdbcType=VARCHAR}, + </if> + <if test="email != null"> + email = #{email,jdbcType=VARCHAR}, + </if> + <if test="jobPlace != null"> + job_place = #{jobPlace,jdbcType=VARCHAR}, + </if> + <if test="manageMoneyMattersType != null"> + manage_money_matters_type = #{manageMoneyMattersType,jdbcType=VARCHAR}, + </if> + <if test="submitStatus != null"> + submit_status = #{submitStatus,jdbcType=CHAR}, + </if> + <if test="useTime != null"> + use_time = #{useTime,jdbcType=DECIMAL}, + </if> + <if test="schoolId != null"> + school_id = #{schoolId,jdbcType=VARCHAR}, + </if> + </set> + where stu_client_id = #{stuClientId,jdbcType=VARCHAR} + </update> + <update id="updateByPrimaryKey" parameterType="com.sztzjy.money_management.entity.SynthesisPlanClient"> + update synthesis_plan_client + set caseid = #{caseid,jdbcType=VARCHAR}, + userid = #{userid,jdbcType=VARCHAR}, + source = #{source,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + client_number = #{clientNumber,jdbcType=VARCHAR}, + proposal_name = #{proposalName,jdbcType=VARCHAR}, + proposal_number = #{proposalNumber,jdbcType=VARCHAR}, + get_status = #{getStatus,jdbcType=VARCHAR}, + get_time = #{getTime,jdbcType=TIMESTAMP}, + name = #{name,jdbcType=VARCHAR}, + namepy = #{namepy,jdbcType=VARCHAR}, + age = #{age,jdbcType=INTEGER}, + year_income = #{yearIncome,jdbcType=DECIMAL}, + idcard = #{idcard,jdbcType=VARCHAR}, + phone_number = #{phoneNumber,jdbcType=VARCHAR}, + job = #{job,jdbcType=VARCHAR}, + addr = #{addr,jdbcType=VARCHAR}, + telephone = #{telephone,jdbcType=VARCHAR}, + email = #{email,jdbcType=VARCHAR}, + job_place = #{jobPlace,jdbcType=VARCHAR}, + manage_money_matters_type = #{manageMoneyMattersType,jdbcType=VARCHAR}, + submit_status = #{submitStatus,jdbcType=CHAR}, + use_time = #{useTime,jdbcType=DECIMAL}, + school_id = #{schoolId,jdbcType=VARCHAR} + where stu_client_id = #{stuClientId,jdbcType=VARCHAR} + </update> - <select id="getPotentialCustomerList" resultMap="BaseResultMap"> - SELECT * FROM synthesis_plan_client - WHERE get_status = 'true' - <if test="keyWord !=null and keyWord !=''"> - AND submit_status is not '已审核' - AND name LIKE CONCAT ('%',#{keyWord},'%') - OR idcard LIKE CONCAT ('%',#{keyWord},'%') - OR client_number LIKE CONCAT ('%',#{keyWord},'%') - </if> - </select> + <select id="getPotentialCustomerList" resultMap="BaseResultMap"> + SELECT * FROM synthesis_plan_client + WHERE get_status = 'true' + AND (submit_status IN ('未提交', '未审核') OR submit_status IS NULL) + <if test="keyWord !=null and keyWord !=''"> + AND + name LIKE CONCAT ('%',#{keyWord},'%') + OR idcard LIKE CONCAT ('%',#{keyWord},'%') + OR client_number LIKE CONCAT ('%',#{keyWord},'%') + </if> + </select> </mapper> \ No newline at end of file