Browse Source

student改为member

master
zhangye 5 years ago
parent
commit
55879563bf
  1. 14
      health/src/main/java/com/ccsens/health/api/StudentController.java
  2. 7
      health/src/main/java/com/ccsens/health/bean/dto/AbnormalDto.java
  3. 2
      health/src/main/java/com/ccsens/health/bean/dto/MemberDto.java
  4. 13
      health/src/main/java/com/ccsens/health/bean/po/Member.java
  5. 64
      health/src/main/java/com/ccsens/health/bean/po/MemberExample.java
  6. 2
      health/src/main/java/com/ccsens/health/bean/vo/MemberVo.java
  7. 2
      health/src/main/java/com/ccsens/health/persist/dao/HealthAbnormalDao.java
  8. 30
      health/src/main/java/com/ccsens/health/persist/mapper/MemberMapper.java
  9. 30
      health/src/main/java/com/ccsens/health/persist/mapper/StudentMapper.java
  10. 28
      health/src/main/java/com/ccsens/health/service/AbnormalService.java
  11. 3
      health/src/main/java/com/ccsens/health/service/ClockService.java
  12. 6
      health/src/main/java/com/ccsens/health/service/HealthService.java
  13. 8
      health/src/main/java/com/ccsens/health/service/IStudentService.java
  14. 6
      health/src/main/java/com/ccsens/health/service/JourneyService.java
  15. 14
      health/src/main/java/com/ccsens/health/service/StudentService.java
  16. 5
      health/src/main/java/com/ccsens/health/service/UserService.java
  17. 67
      health/src/main/resources/mapper_raw/MemberMapper.xml

14
health/src/main/java/com/ccsens/health/api/StudentController.java

@ -1,10 +1,8 @@
package com.ccsens.health.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.health.bean.dto.JourneyDto;
import com.ccsens.health.bean.dto.StudentDto;
import com.ccsens.health.bean.vo.StudentVo;
import com.ccsens.health.bean.vo.UserVo;
import com.ccsens.health.bean.dto.MemberDto;
import com.ccsens.health.bean.vo.MemberVo;
import com.ccsens.health.service.IStudentService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
@ -32,18 +30,18 @@ public class StudentController {
@MustLogin
@ApiOperation(value = "学生健康列表", notes = "")
@RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<List<StudentVo.StudentHealthVo>> getStudentHealthList(@ApiParam @Validated @RequestBody QueryDto<StudentDto.StudentHealth> params) throws Exception {
public JsonResponse<List<MemberVo.StudentHealthVo>> getStudentHealthList(@ApiParam @Validated @RequestBody QueryDto<MemberDto.StudentHealth> params) throws Exception {
log.info("查询个人信息:{}",params);
List<StudentVo.StudentHealthVo> studentHealthList = studentService.getStudentHealthList(params);
List<MemberVo.StudentHealthVo> studentHealthList = studentService.getStudentHealthList(params);
return JsonResponse.newInstance().ok(studentHealthList);
}
@MustLogin
@ApiOperation(value = "接触病患学生统计", notes = "")
@RequestMapping(value = "contactPatient", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<StudentVo.ContactPatientVo> getContactPatient(@ApiParam @Validated @RequestBody QueryDto<StudentDto.ContactPatientDto> params) throws Exception {
public JsonResponse<MemberVo.ContactPatientVo> getContactPatient(@ApiParam @Validated @RequestBody QueryDto<MemberDto.ContactPatientDto> params) throws Exception {
log.info("查询个人信息:{}",params);
StudentVo.ContactPatientVo contactPatientVo = studentService.getContactPatient(params);
MemberVo.ContactPatientVo contactPatientVo = studentService.getContactPatient(params);
return JsonResponse.newInstance().ok(contactPatientVo);
}
}

7
health/src/main/java/com/ccsens/health/bean/dto/AbnormalDto.java

@ -2,6 +2,7 @@ package com.ccsens.health.bean.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import javax.validation.constraints.NotNull;
@ -25,13 +26,13 @@ public class AbnormalDto {
@ApiModel("异常人员统计")
public static class AbnormalStatisticsDto{
@ApiModelProperty("身份 0学生 1老师 2其他")
private int post;
private Integer post;
@ApiModelProperty("班级(所在机构)")
private String department;
@ApiModelProperty("状态 0:健康 1:治愈 2:隔离 3:疑似 4:确诊")
private int healthType;
private Integer healthType;
@ApiModelProperty("分页")
private int page;
private Integer page;
}

2
health/src/main/java/com/ccsens/health/bean/dto/StudentDto.java → health/src/main/java/com/ccsens/health/bean/dto/MemberDto.java

@ -5,7 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class StudentDto {
public class MemberDto {
@Data
@ApiModel("查询学生健康列表")

13
health/src/main/java/com/ccsens/health/bean/po/Student.java → health/src/main/java/com/ccsens/health/bean/po/Member.java

@ -3,7 +3,7 @@ package com.ccsens.health.bean.po;
import java.io.Serializable;
import java.util.Date;
public class Student implements Serializable {
public class Member implements Serializable {
private Long id;
private String wkno;
@ -20,6 +20,8 @@ public class Student implements Serializable {
private String site;
private Byte type;
private Date createdAt;
private Date updatedAt;
@ -92,6 +94,14 @@ public class Student implements Serializable {
this.site = site == null ? null : site.trim();
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public Date getCreatedAt() {
return createdAt;
}
@ -130,6 +140,7 @@ public class Student implements Serializable {
sb.append(", city=").append(city);
sb.append(", county=").append(county);
sb.append(", site=").append(site);
sb.append(", type=").append(type);
sb.append(", createdAt=").append(createdAt);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", recStatus=").append(recStatus);

64
health/src/main/java/com/ccsens/health/bean/po/StudentExample.java → health/src/main/java/com/ccsens/health/bean/po/MemberExample.java

@ -4,14 +4,14 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class StudentExample {
public class MemberExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public StudentExample() {
public MemberExample() {
oredCriteria = new ArrayList<Criteria>();
}
@ -655,6 +655,66 @@ public class StudentExample {
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andCreatedAtIsNull() {
addCriterion("created_at is null");
return (Criteria) this;

2
health/src/main/java/com/ccsens/health/bean/vo/StudentVo.java → health/src/main/java/com/ccsens/health/bean/vo/MemberVo.java

@ -9,7 +9,7 @@ import java.math.BigDecimal;
import java.util.List;
@Data
public class StudentVo {
public class MemberVo {
@Data
@ApiModel("学生健康信息列表")

2
health/src/main/java/com/ccsens/health/persist/dao/HealthAbnormalDao.java

@ -3,6 +3,8 @@ package com.ccsens.health.persist.dao;
import com.ccsens.health.persist.mapper.HealthAbnormalMapper;
import org.springframework.stereotype.Repository;
@Repository
public interface HealthAbnormalDao extends HealthAbnormalMapper {
// List<AbnormalVo.AbnormalStatisticsVo> getAbnormalList(@Param("post") Integer post, @Param("department")String department, @Param("healthType")Integer healthType);
}

30
health/src/main/java/com/ccsens/health/persist/mapper/MemberMapper.java

@ -0,0 +1,30 @@
package com.ccsens.health.persist.mapper;
import com.ccsens.health.bean.po.Member;
import com.ccsens.health.bean.po.MemberExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface MemberMapper {
long countByExample(MemberExample example);
int deleteByExample(MemberExample example);
int deleteByPrimaryKey(Long id);
int insert(Member record);
int insertSelective(Member record);
List<Member> selectByExample(MemberExample example);
Member selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Member record, @Param("example") MemberExample example);
int updateByExample(@Param("record") Member record, @Param("example") MemberExample example);
int updateByPrimaryKeySelective(Member record);
int updateByPrimaryKey(Member record);
}

30
health/src/main/java/com/ccsens/health/persist/mapper/StudentMapper.java

@ -1,30 +0,0 @@
package com.ccsens.health.persist.mapper;
import com.ccsens.health.bean.po.Student;
import com.ccsens.health.bean.po.StudentExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface StudentMapper {
long countByExample(StudentExample example);
int deleteByExample(StudentExample example);
int deleteByPrimaryKey(Long id);
int insert(Student record);
int insertSelective(Student record);
List<Student> selectByExample(StudentExample example);
Student selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") Student record, @Param("example") StudentExample example);
int updateByExample(@Param("record") Student record, @Param("example") StudentExample example);
int updateByPrimaryKeySelective(Student record);
int updateByPrimaryKey(Student record);
}

28
health/src/main/java/com/ccsens/health/service/AbnormalService.java

@ -2,17 +2,28 @@ package com.ccsens.health.service;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.ObjectUtil;
import com.ccsens.health.bean.dto.AbnormalDto;
import com.ccsens.health.bean.po.HealthAbnormal;
import com.ccsens.health.bean.vo.AbnormalVo;
import com.ccsens.health.persist.dao.HealthAbnormalDao;
import com.ccsens.util.CodeEnum;
import com.ccsens.util.bean.dto.QueryDto;
import com.ccsens.util.exception.BaseException;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Slf4j
@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class AbnormalService implements IAbnormalService{
@Autowired
private Snowflake snowflake;
@ -47,6 +58,16 @@ public class AbnormalService implements IAbnormalService{
*/
@Override
public List<AbnormalVo.AbnormalStatisticsVo> AbnormalStatistics(QueryDto<AbnormalDto.AbnormalStatisticsDto> params) {
AbnormalDto.AbnormalStatisticsDto abnormalDto = params.getParam();
Integer page = abnormalDto.getPage() == null ? 1 : abnormalDto.getPage();
// PageHelper.startPage(page, 10);
// List<AbnormalVo.AbnormalStatisticsVo> abnormalList = healthAbnormalDao.getAbnormalList(abnormalDto.getPost(), abnormalDto.getDepartment(), abnormalDto.getHealthType());
// log.info("医生信息");
// PageInfo pageInfo =new PageInfo<>(abnormalList);
//
// return abnormalList;
return null;
}
@ -65,6 +86,11 @@ public class AbnormalService implements IAbnormalService{
*/
@Override
public void delAbnormal(QueryDto<AbnormalDto.DelAbnormal> params) {
HealthAbnormal healthAbnormal = healthAbnormalDao.selectByPrimaryKey(params.getParam().getId());
if(ObjectUtil.isNull(healthAbnormal)){
throw new BaseException(CodeEnum.PARAM_ERROR);
}
healthAbnormal.setRecStatus((byte) 2);
healthAbnormalDao.updateByPrimaryKeySelective(healthAbnormal);
}
}

3
health/src/main/java/com/ccsens/health/service/ClockService.java

@ -24,6 +24,8 @@ import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.io.IOException;
import java.util.ArrayList;
@ -32,6 +34,7 @@ import java.util.List;
@Slf4j
@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class ClockService implements IClockService {
@Autowired
private SiteDao siteDao;

6
health/src/main/java/com/ccsens/health/service/HealthService.java

@ -21,15 +21,19 @@ import com.ccsens.util.bean.dto.QueryDto;
import com.ccsens.util.exception.BaseException;
import com.ccsens.util.wx.WxXcxUtil;
import io.micrometer.shaded.org.pcollections.PCollection;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.io.File;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.*;
@Slf4j
@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class HealthService implements IHealthService{
@Autowired

8
health/src/main/java/com/ccsens/health/service/IStudentService.java

@ -1,13 +1,13 @@
package com.ccsens.health.service;
import com.ccsens.health.bean.dto.StudentDto;
import com.ccsens.health.bean.vo.StudentVo;
import com.ccsens.health.bean.dto.MemberDto;
import com.ccsens.health.bean.vo.MemberVo;
import com.ccsens.util.bean.dto.QueryDto;
import java.util.List;
public interface IStudentService {
List<StudentVo.StudentHealthVo> getStudentHealthList(QueryDto<StudentDto.StudentHealth> params);
List<MemberVo.StudentHealthVo> getStudentHealthList(QueryDto<MemberDto.StudentHealth> params);
StudentVo.ContactPatientVo getContactPatient(QueryDto<StudentDto.ContactPatientDto> params);
MemberVo.ContactPatientVo getContactPatient(QueryDto<MemberDto.ContactPatientDto> params);
}

6
health/src/main/java/com/ccsens/health/service/JourneyService.java

@ -17,13 +17,17 @@ import com.ccsens.util.CodeEnum;
import com.ccsens.util.DateUtil;
import com.ccsens.util.bean.dto.QueryDto;
import com.ccsens.util.exception.BaseException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.List;
@Slf4j
@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class JourneyService implements IJourneyService{
@Autowired

14
health/src/main/java/com/ccsens/health/service/StudentService.java

@ -1,13 +1,17 @@
package com.ccsens.health.service;
import com.ccsens.health.bean.dto.StudentDto;
import com.ccsens.health.bean.vo.StudentVo;
import com.ccsens.health.bean.dto.MemberDto;
import com.ccsens.health.bean.vo.MemberVo;
import com.ccsens.util.bean.dto.QueryDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
@Slf4j
@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class StudentService implements IStudentService{
/**
@ -16,7 +20,7 @@ public class StudentService implements IStudentService{
* @return
*/
@Override
public List<StudentVo.StudentHealthVo> getStudentHealthList(QueryDto<StudentDto.StudentHealth> params) {
public List<MemberVo.StudentHealthVo> getStudentHealthList(QueryDto<MemberDto.StudentHealth> params) {
return null;
}
@ -26,7 +30,7 @@ public class StudentService implements IStudentService{
* @return
*/
@Override
public StudentVo.ContactPatientVo getContactPatient(QueryDto<StudentDto.ContactPatientDto> params) {
public MemberVo.ContactPatientVo getContactPatient(QueryDto<MemberDto.ContactPatientDto> params) {
return null;
}
}

5
health/src/main/java/com/ccsens/health/service/UserService.java

@ -18,14 +18,19 @@ import com.ccsens.util.CodeEnum;
import com.ccsens.util.DateUtil;
import com.ccsens.util.bean.dto.QueryDto;
import com.ccsens.util.exception.BaseException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Slf4j
@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class UserService implements IUserService{
@Autowired
private EmployeeDao employeeDao;

67
health/src/main/resources/mapper_raw/StudentMapper.xml → health/src/main/resources/mapper_raw/MemberMapper.xml

@ -1,7 +1,7 @@
<?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.ccsens.health.persist.mapper.StudentMapper">
<resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.Student">
<mapper namespace="com.ccsens.health.persist.mapper.MemberMapper">
<resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.Member">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="wkno" jdbcType="VARCHAR" property="wkno" />
<result column="name" jdbcType="VARCHAR" property="name" />
@ -10,6 +10,7 @@
<result column="city" jdbcType="VARCHAR" property="city" />
<result column="county" jdbcType="VARCHAR" property="county" />
<result column="site" jdbcType="VARCHAR" property="site" />
<result column="type" jdbcType="TINYINT" property="type" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="rec_status" jdbcType="TINYINT" property="recStatus" />
@ -73,16 +74,16 @@
</where>
</sql>
<sql id="Base_Column_List">
id, wkno, name, department, province, city, county, site, created_at, updated_at,
id, wkno, name, department, province, city, county, site, type, created_at, updated_at,
rec_status
</sql>
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.StudentExample" resultMap="BaseResultMap">
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.MemberExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_student
from t_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
@ -93,31 +94,33 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from t_student
from t_member
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from t_student
delete from t_member
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.ccsens.health.bean.po.StudentExample">
delete from t_student
<delete id="deleteByExample" parameterType="com.ccsens.health.bean.po.MemberExample">
delete from t_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.ccsens.health.bean.po.Student">
insert into t_student (id, wkno, name,
<insert id="insert" parameterType="com.ccsens.health.bean.po.Member">
insert into t_member (id, wkno, name,
department, province, city,
county, site, created_at,
updated_at, rec_status)
county, site, type,
created_at, updated_at, rec_status
)
values (#{id,jdbcType=BIGINT}, #{wkno,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{department,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR}, #{city,jdbcType=VARCHAR},
#{county,jdbcType=VARCHAR}, #{site,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP},
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT})
#{county,jdbcType=VARCHAR}, #{site,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT},
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}
)
</insert>
<insert id="insertSelective" parameterType="com.ccsens.health.bean.po.Student">
insert into t_student
<insert id="insertSelective" parameterType="com.ccsens.health.bean.po.Member">
insert into t_member
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
@ -143,6 +146,9 @@
<if test="site != null">
site,
</if>
<if test="type != null">
type,
</if>
<if test="createdAt != null">
created_at,
</if>
@ -178,6 +184,9 @@
<if test="site != null">
#{site,jdbcType=VARCHAR},
</if>
<if test="type != null">
#{type,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
@ -189,14 +198,14 @@
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.ccsens.health.bean.po.StudentExample" resultType="java.lang.Long">
select count(*) from t_student
<select id="countByExample" parameterType="com.ccsens.health.bean.po.MemberExample" resultType="java.lang.Long">
select count(*) from t_member
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_student
update t_member
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
@ -222,6 +231,9 @@
<if test="record.site != null">
site = #{record.site,jdbcType=VARCHAR},
</if>
<if test="record.type != null">
type = #{record.type,jdbcType=TINYINT},
</if>
<if test="record.createdAt != null">
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
</if>
@ -237,7 +249,7 @@
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_student
update t_member
set id = #{record.id,jdbcType=BIGINT},
wkno = #{record.wkno,jdbcType=VARCHAR},
name = #{record.name,jdbcType=VARCHAR},
@ -246,6 +258,7 @@
city = #{record.city,jdbcType=VARCHAR},
county = #{record.county,jdbcType=VARCHAR},
site = #{record.site,jdbcType=VARCHAR},
type = #{record.type,jdbcType=TINYINT},
created_at = #{record.createdAt,jdbcType=TIMESTAMP},
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP},
rec_status = #{record.recStatus,jdbcType=TINYINT}
@ -253,8 +266,8 @@
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.Student">
update t_student
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.Member">
update t_member
<set>
<if test="wkno != null">
wkno = #{wkno,jdbcType=VARCHAR},
@ -277,6 +290,9 @@
<if test="site != null">
site = #{site,jdbcType=VARCHAR},
</if>
<if test="type != null">
type = #{type,jdbcType=TINYINT},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
@ -289,8 +305,8 @@
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.Student">
update t_student
<update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.Member">
update t_member
set wkno = #{wkno,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
department = #{department,jdbcType=VARCHAR},
@ -298,6 +314,7 @@
city = #{city,jdbcType=VARCHAR},
county = #{county,jdbcType=VARCHAR},
site = #{site,jdbcType=VARCHAR},
type = #{type,jdbcType=TINYINT},
created_at = #{createdAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
rec_status = #{recStatus,jdbcType=TINYINT}
Loading…
Cancel
Save