Merge remote-tracking branch 'origin/master'
commit
6dafbca7d1
@ -0,0 +1,123 @@
|
||||
package com.op.device.domain;
|
||||
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 附件对象 base_file
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-10
|
||||
*/
|
||||
public class EquFile extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 附件ID */
|
||||
private String fileId;
|
||||
|
||||
/** 附件名称 */
|
||||
@Excel(name = "附件名称")
|
||||
private String fileName;
|
||||
|
||||
/** 附件地址 */
|
||||
@Excel(name = "附件地址")
|
||||
private String fileAddress;
|
||||
|
||||
/** 数据来源 */
|
||||
@Excel(name = "数据来源")
|
||||
private String sourceId;
|
||||
|
||||
/** 预留字段1 */
|
||||
@Excel(name = "预留字段1")
|
||||
private String attr1;
|
||||
|
||||
/** 预留字段2 */
|
||||
@Excel(name = "预留字段2")
|
||||
private String attr2;
|
||||
|
||||
/** 预留字段3 */
|
||||
@Excel(name = "预留字段3")
|
||||
private Long attr3;
|
||||
|
||||
/** 预留字段4 */
|
||||
@Excel(name = "预留字段4")
|
||||
private Long attr4;
|
||||
|
||||
public void setFileId(String fileId) {
|
||||
this.fileId = fileId;
|
||||
}
|
||||
|
||||
public String getFileId() {
|
||||
return fileId;
|
||||
}
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return fileName;
|
||||
}
|
||||
public void setFileAddress(String fileAddress) {
|
||||
this.fileAddress = fileAddress;
|
||||
}
|
||||
|
||||
public String getFileAddress() {
|
||||
return fileAddress;
|
||||
}
|
||||
public void setSourceId(String sourceId) {
|
||||
this.sourceId = sourceId;
|
||||
}
|
||||
|
||||
public String getSourceId() {
|
||||
return sourceId;
|
||||
}
|
||||
public void setAttr1(String attr1) {
|
||||
this.attr1 = attr1;
|
||||
}
|
||||
|
||||
public String getAttr1() {
|
||||
return attr1;
|
||||
}
|
||||
public void setAttr2(String attr2) {
|
||||
this.attr2 = attr2;
|
||||
}
|
||||
|
||||
public String getAttr2() {
|
||||
return attr2;
|
||||
}
|
||||
public void setAttr3(Long attr3) {
|
||||
this.attr3 = attr3;
|
||||
}
|
||||
|
||||
public Long getAttr3() {
|
||||
return attr3;
|
||||
}
|
||||
public void setAttr4(Long attr4) {
|
||||
this.attr4 = attr4;
|
||||
}
|
||||
|
||||
public Long getAttr4() {
|
||||
return attr4;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("fileId", getFileId())
|
||||
.append("fileName", getFileName())
|
||||
.append("fileAddress", getFileAddress())
|
||||
.append("sourceId", getSourceId())
|
||||
.append("remark", getRemark())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("attr4", getAttr4())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package com.op.device.domain;
|
||||
|
||||
import com.op.common.core.annotation.Excel;
|
||||
import com.op.common.core.web.domain.BaseEntity;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* 班组人员对象 equ_team_user
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-29
|
||||
*/
|
||||
public class EquTeamUser extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 班组id */
|
||||
@Excel(name = "班组id")
|
||||
private String teamId;
|
||||
|
||||
/** 班组编码 */
|
||||
@Excel(name = "班组编码")
|
||||
private String teamCode;
|
||||
|
||||
/** 人员id */
|
||||
@Excel(name = "人员id")
|
||||
private String userId;
|
||||
|
||||
/** 人员名字编号 */
|
||||
@Excel(name = "人员名字")
|
||||
private String userName;
|
||||
|
||||
/** 人员名字 */
|
||||
@Excel(name = "人员名字")
|
||||
private String nickName;
|
||||
|
||||
/** 人员拼接名字 */
|
||||
@Excel(name = "人员拼接名字")
|
||||
private String teamUserName;
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public void setTeamId(String teamId) {
|
||||
this.teamId = teamId;
|
||||
}
|
||||
|
||||
public String getTeamId() {
|
||||
return teamId;
|
||||
}
|
||||
public void setTeamCode(String teamCode) {
|
||||
this.teamCode = teamCode;
|
||||
}
|
||||
|
||||
public String getTeamCode() {
|
||||
return teamCode;
|
||||
}
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public String getNickName() {
|
||||
return nickName;
|
||||
}
|
||||
public void setNickName(String nickName) {
|
||||
this.nickName = nickName;
|
||||
}
|
||||
|
||||
public String getTeamUserName() {
|
||||
return teamUserName;
|
||||
}
|
||||
public void setTeamUserName(String teamUserName) {
|
||||
this.teamUserName = teamUserName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("teamId", getTeamId())
|
||||
.append("teamCode", getTeamCode())
|
||||
.append("userId", getUserId())
|
||||
.append("userName", getUserName())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
package com.op.device.mapper;
|
||||
|
||||
import com.op.common.core.domain.BaseFileData;
|
||||
import com.op.device.domain.EquFile;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 附件Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-07-10
|
||||
*/
|
||||
@Mapper
|
||||
public interface EquFileMapper {
|
||||
/**
|
||||
* 查询附件
|
||||
*
|
||||
* @param fileId 附件主键
|
||||
* @return 附件
|
||||
*/
|
||||
public EquFile selectEquFileByFileId(String fileId);
|
||||
|
||||
/**
|
||||
* 查询附件列表
|
||||
*
|
||||
* @param equFile 附件
|
||||
* @return 附件集合
|
||||
*/
|
||||
public List<EquFile> selectEquFileList(EquFile equFile);
|
||||
|
||||
/**
|
||||
* 新增附件
|
||||
*
|
||||
* @param equFile 附件
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEquFile(EquFile equFile);
|
||||
|
||||
/**
|
||||
* 修改附件
|
||||
*
|
||||
* @param equFile 附件
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEquFile(EquFile equFile);
|
||||
|
||||
/**
|
||||
* 删除附件
|
||||
*
|
||||
* @param fileId 附件主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquFileByFileId(String fileId);
|
||||
|
||||
/**
|
||||
* 批量删除附件
|
||||
*
|
||||
* @param fileIds 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquFileByFileIds(String[] fileIds);
|
||||
|
||||
/**
|
||||
* 上传图片
|
||||
* @param equFiles
|
||||
*/
|
||||
public Boolean insertEquFileBatch(@Param("baseFiles") List<BaseFileData> equFiles);
|
||||
|
||||
//查询图片
|
||||
public List<EquFile> getEquFileBatch(String orderId);
|
||||
|
||||
//删除照图片
|
||||
public void deleteEquFileBySourceId(String orderId);
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package com.op.device.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.op.device.domain.EquTeamUser;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 班组人员Mapper接口
|
||||
*
|
||||
* @author Open Platform
|
||||
* @date 2023-08-29
|
||||
*/
|
||||
public interface EquTeamUserMapper {
|
||||
/**
|
||||
* 查询班组人员
|
||||
*
|
||||
* @param id 班组人员主键
|
||||
* @return 班组人员
|
||||
*/
|
||||
public EquTeamUser selectEquTeamUserById(String id);
|
||||
|
||||
/**
|
||||
* 查询班组人员列表
|
||||
*
|
||||
* @param equTeamUser 班组人员
|
||||
* @return 班组人员集合
|
||||
*/
|
||||
public List<EquTeamUser> selectEquTeamUserList(EquTeamUser equTeamUser);
|
||||
|
||||
/**
|
||||
* 新增班组人员
|
||||
*
|
||||
* @param equTeamUser 班组人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEquTeamUser(EquTeamUser equTeamUser);
|
||||
|
||||
/**
|
||||
* 修改班组人员
|
||||
*
|
||||
* @param equTeamUser 班组人员
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateEquTeamUser(EquTeamUser equTeamUser);
|
||||
|
||||
/**
|
||||
* 删除班组人员
|
||||
*
|
||||
* @param id 班组人员主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquTeamUserById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除班组人员
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteEquTeamUserByIds(String[] ids);
|
||||
|
||||
//查询人员
|
||||
@DS("master")
|
||||
public List<EquTeamUser> selectTeamMembers(EquTeamUser equTeamUser);
|
||||
|
||||
//查询人员对应名字
|
||||
public List<String> selectTeamMembersIds(EquTeamUser equTeamUser);
|
||||
|
||||
//查询人员ID
|
||||
public String selectId(EquTeamUser equTeamUser);
|
||||
|
||||
@DS("master")
|
||||
public String selectUserName(EquTeamUser equTeamUser);
|
||||
|
||||
//批量删除
|
||||
public void deleteEquTeamUserByTeamId(String teamId);
|
||||
void deleteEquTeamUserByTeamIds(String[] teamIds);
|
||||
}
|
@ -0,0 +1,157 @@
|
||||
<?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.op.device.mapper.EquFileMapper">
|
||||
|
||||
<resultMap type="EquFile" id="EquFileResult">
|
||||
<result property="fileId" column="file_id" />
|
||||
<result property="fileName" column="file_name" />
|
||||
<result property="fileAddress" column="file_address" />
|
||||
<result property="sourceId" column="source_id" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="attr1" column="attr1" />
|
||||
<result property="attr2" column="attr2" />
|
||||
<result property="attr3" column="attr3" />
|
||||
<result property="attr4" column="attr4" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="imageType" column="image_type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEquFileVo">
|
||||
select file_id, file_name, file_address, source_id, remark, attr1,
|
||||
attr2, attr3, attr4, create_by, create_time, update_by,
|
||||
update_time,image_type from base_file
|
||||
</sql>
|
||||
|
||||
<select id="selectEquFileList" parameterType="EquFile" resultMap="EquFileResult">
|
||||
<include refid="selectEquFileVo"/>
|
||||
<where>
|
||||
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
|
||||
<if test="fileAddress != null and fileAddress != ''"> and file_address = #{fileAddress}</if>
|
||||
<if test="sourceId != null and sourceId != ''"> and source_id = #{sourceId}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
||||
<if test="attr3 != null "> and attr3 = #{attr3}</if>
|
||||
<if test="attr4 != null "> and attr4 = #{attr4}</if>
|
||||
<if test="imageType != null "> and image_type = #{imageType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectEquFileByFileId" parameterType="String" resultMap="EquFileResult">
|
||||
<include refid="selectEquFileVo"/>
|
||||
where file_id = #{fileId}
|
||||
</select>
|
||||
<select id="getEquFileBatch" resultMap="EquFileResult">
|
||||
<include refid="selectEquFileVo"/>
|
||||
where source_id = #{sourceId}
|
||||
</select>
|
||||
|
||||
<select id="getImageFileBatch" resultMap="EquFileResult">
|
||||
<include refid="selectEquFileVo"/>
|
||||
where source_id = #{sourceId}
|
||||
and image_type = #{imageType}
|
||||
</select>
|
||||
|
||||
<select id="getQrFileBatch" resultMap="EquFileResult">
|
||||
<include refid="selectEquFileVo"/>
|
||||
where source_id = #{sourceId}
|
||||
and image_type = #{imageType}
|
||||
</select>
|
||||
|
||||
<select id="getBarcodeFileBatch" resultMap="EquFileResult">
|
||||
<include refid="selectEquFileVo"/>
|
||||
where source_id = #{sourceId}
|
||||
and image_type = #{imageType}
|
||||
</select>
|
||||
|
||||
<insert id="insertEquFile" parameterType="EquFile">
|
||||
insert into base_file
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="fileId != null">file_id,</if>
|
||||
<if test="fileName != null">file_name,</if>
|
||||
<if test="fileAddress != null">file_address,</if>
|
||||
<if test="sourceId != null">source_id,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
<if test="attr3 != null">attr3,</if>
|
||||
<if test="attr4 != null">attr4,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="imageType != null">image_type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="fileId != null">#{fileId},</if>
|
||||
<if test="fileName != null">#{fileName},</if>
|
||||
<if test="fileAddress != null">#{fileAddress},</if>
|
||||
<if test="sourceId != null">#{sourceId},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
<if test="attr3 != null">#{attr3},</if>
|
||||
<if test="attr4 != null">#{attr4},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="imageType != null">{imageType},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertEquFileBatch">
|
||||
INSERT INTO base_file(file_id, file_name, file_address, source_id, remark, create_by, create_time)
|
||||
VALUES
|
||||
<foreach collection="baseFiles" index="" item="baseFile" separator=",">
|
||||
(
|
||||
#{baseFile.fileId},
|
||||
#{baseFile.fileName},
|
||||
#{baseFile.fileAddress},
|
||||
#{baseFile.sourceId},
|
||||
#{baseFile.remark},
|
||||
#{baseFile.createBy},
|
||||
#{baseFile.createTime}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<update id="updateEquFile" parameterType="EquFile">
|
||||
update base_file
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="fileName != null">file_name = #{fileName},</if>
|
||||
<if test="fileAddress != null">file_address = #{fileAddress},</if>
|
||||
<if test="sourceId != null">source_id = #{sourceId},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
<if test="attr3 != null">attr3 = #{attr3},</if>
|
||||
<if test="attr4 != null">attr4 = #{attr4},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where file_id = #{fileId}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEquFileByFileId" parameterType="String">
|
||||
delete from base_file where file_id = #{fileId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEquFileByFileIds" parameterType="String">
|
||||
delete from base_file where file_id in
|
||||
<foreach item="fileId" collection="array" open="(" separator="," close=")">
|
||||
#{fileId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEquFileBySourceId">
|
||||
delete from base_file where source_id = #{sourceId}
|
||||
</delete>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,144 @@
|
||||
<?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.op.device.mapper.EquTeamUserMapper">
|
||||
|
||||
<resultMap type="EquTeamUser" id="EquTeamUserResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="teamId" column="team_id" />
|
||||
<result property="teamCode" column="team_code" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="userName" column="user_name" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEquTeamUserVo">
|
||||
select id, team_id, team_code, user_id, user_name, create_by, create_time, update_by, update_time from equ_team_user
|
||||
</sql>
|
||||
|
||||
<select id="selectEquTeamUserList" parameterType="EquTeamUser" resultMap="EquTeamUserResult">
|
||||
<include refid="selectEquTeamUserVo"/>
|
||||
<where>
|
||||
<if test="teamId != null and teamId != ''"> and team_id = #{teamId}</if>
|
||||
<if test="teamCode != null and teamCode != ''"> and team_code = #{teamCode}</if>
|
||||
<if test="userId != null and userId != ''"> and user_id = #{userId}</if>
|
||||
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectEquTeamUserById" parameterType="String" resultMap="EquTeamUserResult">
|
||||
<include refid="selectEquTeamUserVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertEquTeamUser" parameterType="EquTeamUser">
|
||||
insert into equ_team_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="teamId != null and teamId != ''">team_id,</if>
|
||||
<if test="teamCode != null">team_code,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="userName != null">user_name,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="teamId != null and teamId != ''">#{teamId},</if>
|
||||
<if test="teamCode != null">#{teamCode},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="userName != null">#{userName},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEquTeamUser" parameterType="EquTeamUser">
|
||||
update equ_team_user
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="teamId != null and teamId != ''">team_id = #{teamId},</if>
|
||||
<if test="teamCode != null">team_code = #{teamCode},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="userName != null">user_name = #{userName},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteEquTeamUserById" parameterType="String">
|
||||
delete from equ_team_user where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEquTeamUserByTeamId" parameterType="String">
|
||||
delete from equ_team_user where team_id = #{teamId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEquTeamUserByIds" parameterType="String">
|
||||
delete from equ_team_user where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectTeamMembers" parameterType="EquTeamUser" resultMap="EquTeamUserResult">
|
||||
select
|
||||
user_id,
|
||||
user_name,
|
||||
nick_name,
|
||||
CONCAT(nick_name,user_name) AS teamUserName
|
||||
from sys_user
|
||||
</select>
|
||||
|
||||
<select id="selectTeamMember" parameterType="EquTeamUser" resultMap="EquTeamUserResult">
|
||||
select
|
||||
user_id,
|
||||
user_name,
|
||||
nick_name,
|
||||
CONCAT(nick_name,user_name) AS teamUserName
|
||||
from sys_user
|
||||
where user_id = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="selectTeamMembersNameById" parameterType="EquTeamUser" resultType="java.lang.String">
|
||||
select user_name
|
||||
from sys_user su
|
||||
where su.id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectTeamMembersIds" parameterType="EquTeamUser" resultType="java.lang.String">
|
||||
select user_id
|
||||
from equ_team_user
|
||||
</select>
|
||||
|
||||
<select id="selectId" parameterType="EquTeamUser" resultType="java.lang.String">
|
||||
select id
|
||||
from equ_team_user
|
||||
where user_id = #{userId}
|
||||
and team_id = #{teamId}
|
||||
</select>
|
||||
|
||||
<select id="selectUserName" parameterType="EquTeamUser" resultType="java.lang.String">
|
||||
select user_name
|
||||
from sys_user
|
||||
where user_id = #{userId}
|
||||
</select>
|
||||
|
||||
<delete id="deleteEquTeamUserByTeamIds" parameterType="String">
|
||||
delete from equ_team_user where team_id in
|
||||
<foreach item="teamId" collection="array" open="(" separator="," close=")">
|
||||
#{teamId}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue