| | |
| | | and tenant_id = #{user.tenantId} |
| | | </if> |
| | | <if test="user.account!=null and user.account != ''"> |
| | | and account = #{user.account} |
| | | and account like concat('%',#{user.account},'%') |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and real_name = #{user.realName} |
| | | and real_name like concat('%',#{user.real_name},'%') |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and user_type = #{user.userType} |
| | |
| | | s.role_id=br.id |
| | | where s.is_deleted = 0 |
| | | <if test="user.account!=null and user.account != ''"> |
| | | and s.account = #{user.account} |
| | | and s.account like concat('%',#{user.account},'%') |
| | | </if> |
| | | <if test="user.cardid!=null and user.cardid != ''"> |
| | | and s.cardid like concat('%',#{user.cardid},'%') |
| | | </if> |
| | | <if test="user.id!=null and user.id != ''"> |
| | | and s.id = #{user.id} |
| | | </if> |
| | | <if test="user.realName!=null and user.realName != ''"> |
| | | and s.real_name = #{user.realName} |
| | | and s.real_name like concat('%',#{user.real_name},'%') |
| | | </if> |
| | | <if test="user.userType!=null and user.userType != ''"> |
| | | and s.user_type = #{user.userType} |
| | |
| | | |
| | | String s = "insert into blade_user(id,tenant_id,account,password,name,real_name,avatar,email,phone,sex,role_id,dept_id,cardid," + |
| | | "jurisdiction,examination_type,status,is_deleted) " + |
| | | "values(" + "'" + user.getId() + "'" + "," + "'" + user.getTenantId() + "'" + "," + "'" + user.getAccount() + "'" + "," + |
| | | "values(" + "'" + user.getId() + "'" + "," + "'" + "000000" + "'" + "," + "'" + user.getAccount() + "'" + "," + |
| | | "'" + user.getPassword() + "'" + "," + "'" + user.getName() + "'" + "," + "'" + user.getRealName() + "'" + "," + "'" + user.getAvatar() + "'" + "," + |
| | | "'" + user.getEmail() + "'" + "," + "'" + user.getPhone() + "'" + "," + "'" + user.getSex() + "'" + "," + "'" + user.getRoleId() + "'" + |
| | | "," + "'" + user.getDeptId() + "'" + |
| | |
| | | package org.springblade.modules.zc.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 实体类 |
| | |
| | | */ |
| | | private String cardid; |
| | | |
| | | private String examination_type; |
| | | |
| | | private String examination_mx; |
| | | |
| | | /** |
| | | * 审查时间 |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @TableField("audit_time") |
| | | private Date auditTime; |
| | | |
| | | } |