9.16增加员工出入场记录
parent
d8d3693787
commit
82a5ebd371
|
@ -0,0 +1,266 @@
|
||||||
|
package com.yanzhu.manage.domain;
|
||||||
|
|
||||||
|
import com.yanzhu.common.core.annotation.Excel;
|
||||||
|
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工出入场记录对象 pro_user_inout_record
|
||||||
|
*
|
||||||
|
* @author yanzhu
|
||||||
|
* @date 2025-09-16
|
||||||
|
*/
|
||||||
|
public class ProUserInoutRecord extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private Long projectId;
|
||||||
|
|
||||||
|
/** 用户ID */
|
||||||
|
@Excel(name = "用户ID")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
/** 用户名 */
|
||||||
|
@Excel(name = "用户名")
|
||||||
|
private String userName;
|
||||||
|
|
||||||
|
/** 用户手机 */
|
||||||
|
@Excel(name = "用户手机")
|
||||||
|
private String userPhone;
|
||||||
|
|
||||||
|
/** 用户图像 */
|
||||||
|
@Excel(name = "用户图像")
|
||||||
|
private String userPicture;
|
||||||
|
|
||||||
|
/** 用户性别 */
|
||||||
|
@Excel(name = "用户性别")
|
||||||
|
private String userSex;
|
||||||
|
|
||||||
|
/** 进场状态 */
|
||||||
|
@Excel(name = "进场状态")
|
||||||
|
private String useStatus;
|
||||||
|
|
||||||
|
/** 分包单位ID */
|
||||||
|
@Excel(name = "分包单位ID")
|
||||||
|
private Long subDeptId;
|
||||||
|
|
||||||
|
/** 分包单位 */
|
||||||
|
@Excel(name = "分包单位")
|
||||||
|
private String subDeptName;
|
||||||
|
|
||||||
|
/** 分包类型 */
|
||||||
|
@Excel(name = "分包类型")
|
||||||
|
private String subDeptType;
|
||||||
|
|
||||||
|
/** 班组编号 */
|
||||||
|
@Excel(name = "班组编号")
|
||||||
|
private Long subDeptGroup;
|
||||||
|
|
||||||
|
/** 班组名称 */
|
||||||
|
@Excel(name = "班组名称")
|
||||||
|
private String subDeptGroupName;
|
||||||
|
|
||||||
|
/** 工种类型 */
|
||||||
|
@Excel(name = "工种类型")
|
||||||
|
private String craftType;
|
||||||
|
|
||||||
|
/** 工种岗位 */
|
||||||
|
@Excel(name = "工种岗位")
|
||||||
|
private String craftPost;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private Long isDel;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private Long state;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setProjectId(Long projectId)
|
||||||
|
{
|
||||||
|
this.projectId = projectId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getProjectId()
|
||||||
|
{
|
||||||
|
return projectId;
|
||||||
|
}
|
||||||
|
public void setUserId(Long userId)
|
||||||
|
{
|
||||||
|
this.userId = userId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getUserId()
|
||||||
|
{
|
||||||
|
return userId;
|
||||||
|
}
|
||||||
|
public void setUserName(String userName)
|
||||||
|
{
|
||||||
|
this.userName = userName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserName()
|
||||||
|
{
|
||||||
|
return userName;
|
||||||
|
}
|
||||||
|
public void setUserPhone(String userPhone)
|
||||||
|
{
|
||||||
|
this.userPhone = userPhone;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserPhone()
|
||||||
|
{
|
||||||
|
return userPhone;
|
||||||
|
}
|
||||||
|
public void setUserPicture(String userPicture)
|
||||||
|
{
|
||||||
|
this.userPicture = userPicture;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserPicture()
|
||||||
|
{
|
||||||
|
return userPicture;
|
||||||
|
}
|
||||||
|
public void setUserSex(String userSex)
|
||||||
|
{
|
||||||
|
this.userSex = userSex;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUserSex()
|
||||||
|
{
|
||||||
|
return userSex;
|
||||||
|
}
|
||||||
|
public void setUseStatus(String useStatus)
|
||||||
|
{
|
||||||
|
this.useStatus = useStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUseStatus()
|
||||||
|
{
|
||||||
|
return useStatus;
|
||||||
|
}
|
||||||
|
public void setSubDeptId(Long subDeptId)
|
||||||
|
{
|
||||||
|
this.subDeptId = subDeptId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getSubDeptId()
|
||||||
|
{
|
||||||
|
return subDeptId;
|
||||||
|
}
|
||||||
|
public void setSubDeptName(String subDeptName)
|
||||||
|
{
|
||||||
|
this.subDeptName = subDeptName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSubDeptName()
|
||||||
|
{
|
||||||
|
return subDeptName;
|
||||||
|
}
|
||||||
|
public void setSubDeptType(String subDeptType)
|
||||||
|
{
|
||||||
|
this.subDeptType = subDeptType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSubDeptType()
|
||||||
|
{
|
||||||
|
return subDeptType;
|
||||||
|
}
|
||||||
|
public void setSubDeptGroup(Long subDeptGroup)
|
||||||
|
{
|
||||||
|
this.subDeptGroup = subDeptGroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getSubDeptGroup()
|
||||||
|
{
|
||||||
|
return subDeptGroup;
|
||||||
|
}
|
||||||
|
public void setSubDeptGroupName(String subDeptGroupName)
|
||||||
|
{
|
||||||
|
this.subDeptGroupName = subDeptGroupName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSubDeptGroupName()
|
||||||
|
{
|
||||||
|
return subDeptGroupName;
|
||||||
|
}
|
||||||
|
public void setCraftType(String craftType)
|
||||||
|
{
|
||||||
|
this.craftType = craftType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCraftType()
|
||||||
|
{
|
||||||
|
return craftType;
|
||||||
|
}
|
||||||
|
public void setCraftPost(String craftPost)
|
||||||
|
{
|
||||||
|
this.craftPost = craftPost;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCraftPost()
|
||||||
|
{
|
||||||
|
return craftPost;
|
||||||
|
}
|
||||||
|
public void setIsDel(Long isDel)
|
||||||
|
{
|
||||||
|
this.isDel = isDel;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getIsDel()
|
||||||
|
{
|
||||||
|
return isDel;
|
||||||
|
}
|
||||||
|
public void setState(Long state)
|
||||||
|
{
|
||||||
|
this.state = state;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getState()
|
||||||
|
{
|
||||||
|
return state;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("projectId", getProjectId())
|
||||||
|
.append("userId", getUserId())
|
||||||
|
.append("userName", getUserName())
|
||||||
|
.append("userPhone", getUserPhone())
|
||||||
|
.append("userPicture", getUserPicture())
|
||||||
|
.append("userSex", getUserSex())
|
||||||
|
.append("useStatus", getUseStatus())
|
||||||
|
.append("subDeptId", getSubDeptId())
|
||||||
|
.append("subDeptName", getSubDeptName())
|
||||||
|
.append("subDeptType", getSubDeptType())
|
||||||
|
.append("subDeptGroup", getSubDeptGroup())
|
||||||
|
.append("subDeptGroupName", getSubDeptGroupName())
|
||||||
|
.append("craftType", getCraftType())
|
||||||
|
.append("craftPost", getCraftPost())
|
||||||
|
.append("isDel", getIsDel())
|
||||||
|
.append("remark", getRemark())
|
||||||
|
.append("state", getState())
|
||||||
|
.append("createBy", getCreateBy())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.append("updateBy", getUpdateBy())
|
||||||
|
.append("updateTime", getUpdateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.yanzhu.manage.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.yanzhu.manage.domain.ProUserInoutRecord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工出入场记录Mapper接口
|
||||||
|
*
|
||||||
|
* @author yanzhu
|
||||||
|
* @date 2025-09-16
|
||||||
|
*/
|
||||||
|
public interface ProUserInoutRecordMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询员工出入场记录
|
||||||
|
*
|
||||||
|
* @param id 员工出入场记录主键
|
||||||
|
* @return 员工出入场记录
|
||||||
|
*/
|
||||||
|
public ProUserInoutRecord selectProUserInoutRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询员工出入场记录列表
|
||||||
|
*
|
||||||
|
* @param proUserInoutRecord 员工出入场记录
|
||||||
|
* @return 员工出入场记录集合
|
||||||
|
*/
|
||||||
|
public List<ProUserInoutRecord> selectProUserInoutRecordList(ProUserInoutRecord proUserInoutRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增员工出入场记录
|
||||||
|
*
|
||||||
|
* @param proUserInoutRecord 员工出入场记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertProUserInoutRecord(ProUserInoutRecord proUserInoutRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改员工出入场记录
|
||||||
|
*
|
||||||
|
* @param proUserInoutRecord 员工出入场记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateProUserInoutRecord(ProUserInoutRecord proUserInoutRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除员工出入场记录
|
||||||
|
*
|
||||||
|
* @param id 员工出入场记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProUserInoutRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除员工出入场记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProUserInoutRecordByIds(Long[] ids);
|
||||||
|
}
|
|
@ -0,0 +1,151 @@
|
||||||
|
<?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.yanzhu.manage.mapper.ProUserInoutRecordMapper">
|
||||||
|
|
||||||
|
<resultMap type="ProUserInoutRecord" id="ProUserInoutRecordResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="projectId" column="project_id" />
|
||||||
|
<result property="userId" column="user_id" />
|
||||||
|
<result property="userName" column="user_name" />
|
||||||
|
<result property="userPhone" column="user_phone" />
|
||||||
|
<result property="userPicture" column="user_picture" />
|
||||||
|
<result property="userSex" column="user_sex" />
|
||||||
|
<result property="useStatus" column="use_status" />
|
||||||
|
<result property="subDeptId" column="sub_dept_id" />
|
||||||
|
<result property="subDeptName" column="sub_dept_name" />
|
||||||
|
<result property="subDeptType" column="sub_dept_type" />
|
||||||
|
<result property="subDeptGroup" column="sub_dept_group" />
|
||||||
|
<result property="subDeptGroupName" column="sub_dept_group_name" />
|
||||||
|
<result property="craftType" column="craft_type" />
|
||||||
|
<result property="craftPost" column="craft_post" />
|
||||||
|
<result property="isDel" column="is_del" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="state" column="state" />
|
||||||
|
<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="selectProUserInoutRecordVo">
|
||||||
|
select id, project_id, user_id, user_name, user_phone, user_picture, user_sex, use_status, sub_dept_id, sub_dept_name, sub_dept_type, sub_dept_group, sub_dept_group_name, craft_type, craft_post, is_del, remark, state, create_by, create_time, update_by, update_time from pro_user_inout_record
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectProUserInoutRecordList" parameterType="ProUserInoutRecord" resultMap="ProUserInoutRecordResult">
|
||||||
|
<include refid="selectProUserInoutRecordVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="projectId != null "> and project_id = #{projectId}</if>
|
||||||
|
<if test="userId != null "> and user_id = #{userId}</if>
|
||||||
|
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
|
||||||
|
<if test="userPhone != null and userPhone != ''"> and user_phone = #{userPhone}</if>
|
||||||
|
<if test="userPicture != null and userPicture != ''"> and user_picture = #{userPicture}</if>
|
||||||
|
<if test="userSex != null and userSex != ''"> and user_sex = #{userSex}</if>
|
||||||
|
<if test="useStatus != null and useStatus != ''"> and use_status = #{useStatus}</if>
|
||||||
|
<if test="subDeptId != null "> and sub_dept_id = #{subDeptId}</if>
|
||||||
|
<if test="subDeptName != null and subDeptName != ''"> and sub_dept_name like concat('%', #{subDeptName}, '%')</if>
|
||||||
|
<if test="subDeptType != null and subDeptType != ''"> and sub_dept_type = #{subDeptType}</if>
|
||||||
|
<if test="subDeptGroup != null "> and sub_dept_group = #{subDeptGroup}</if>
|
||||||
|
<if test="subDeptGroupName != null and subDeptGroupName != ''"> and sub_dept_group_name like concat('%', #{subDeptGroupName}, '%')</if>
|
||||||
|
<if test="craftType != null and craftType != ''"> and craft_type = #{craftType}</if>
|
||||||
|
<if test="craftPost != null and craftPost != ''"> and craft_post = #{craftPost}</if>
|
||||||
|
<if test="isDel != null "> and is_del = #{isDel}</if>
|
||||||
|
<if test="state != null "> and state = #{state}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectProUserInoutRecordById" parameterType="Long" resultMap="ProUserInoutRecordResult">
|
||||||
|
<include refid="selectProUserInoutRecordVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertProUserInoutRecord" parameterType="ProUserInoutRecord" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into pro_user_inout_record
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="projectId != null">project_id,</if>
|
||||||
|
<if test="userId != null">user_id,</if>
|
||||||
|
<if test="userName != null">user_name,</if>
|
||||||
|
<if test="userPhone != null">user_phone,</if>
|
||||||
|
<if test="userPicture != null">user_picture,</if>
|
||||||
|
<if test="userSex != null">user_sex,</if>
|
||||||
|
<if test="useStatus != null">use_status,</if>
|
||||||
|
<if test="subDeptId != null">sub_dept_id,</if>
|
||||||
|
<if test="subDeptName != null">sub_dept_name,</if>
|
||||||
|
<if test="subDeptType != null">sub_dept_type,</if>
|
||||||
|
<if test="subDeptGroup != null">sub_dept_group,</if>
|
||||||
|
<if test="subDeptGroupName != null">sub_dept_group_name,</if>
|
||||||
|
<if test="craftType != null">craft_type,</if>
|
||||||
|
<if test="craftPost != null">craft_post,</if>
|
||||||
|
<if test="isDel != null">is_del,</if>
|
||||||
|
<if test="remark != null">remark,</if>
|
||||||
|
<if test="state != null">state,</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="projectId != null">#{projectId},</if>
|
||||||
|
<if test="userId != null">#{userId},</if>
|
||||||
|
<if test="userName != null">#{userName},</if>
|
||||||
|
<if test="userPhone != null">#{userPhone},</if>
|
||||||
|
<if test="userPicture != null">#{userPicture},</if>
|
||||||
|
<if test="userSex != null">#{userSex},</if>
|
||||||
|
<if test="useStatus != null">#{useStatus},</if>
|
||||||
|
<if test="subDeptId != null">#{subDeptId},</if>
|
||||||
|
<if test="subDeptName != null">#{subDeptName},</if>
|
||||||
|
<if test="subDeptType != null">#{subDeptType},</if>
|
||||||
|
<if test="subDeptGroup != null">#{subDeptGroup},</if>
|
||||||
|
<if test="subDeptGroupName != null">#{subDeptGroupName},</if>
|
||||||
|
<if test="craftType != null">#{craftType},</if>
|
||||||
|
<if test="craftPost != null">#{craftPost},</if>
|
||||||
|
<if test="isDel != null">#{isDel},</if>
|
||||||
|
<if test="remark != null">#{remark},</if>
|
||||||
|
<if test="state != null">#{state},</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="updateProUserInoutRecord" parameterType="ProUserInoutRecord">
|
||||||
|
update pro_user_inout_record
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="projectId != null">project_id = #{projectId},</if>
|
||||||
|
<if test="userId != null">user_id = #{userId},</if>
|
||||||
|
<if test="userName != null">user_name = #{userName},</if>
|
||||||
|
<if test="userPhone != null">user_phone = #{userPhone},</if>
|
||||||
|
<if test="userPicture != null">user_picture = #{userPicture},</if>
|
||||||
|
<if test="userSex != null">user_sex = #{userSex},</if>
|
||||||
|
<if test="useStatus != null">use_status = #{useStatus},</if>
|
||||||
|
<if test="subDeptId != null">sub_dept_id = #{subDeptId},</if>
|
||||||
|
<if test="subDeptName != null">sub_dept_name = #{subDeptName},</if>
|
||||||
|
<if test="subDeptType != null">sub_dept_type = #{subDeptType},</if>
|
||||||
|
<if test="subDeptGroup != null">sub_dept_group = #{subDeptGroup},</if>
|
||||||
|
<if test="subDeptGroupName != null">sub_dept_group_name = #{subDeptGroupName},</if>
|
||||||
|
<if test="craftType != null">craft_type = #{craftType},</if>
|
||||||
|
<if test="craftPost != null">craft_post = #{craftPost},</if>
|
||||||
|
<if test="isDel != null">is_del = #{isDel},</if>
|
||||||
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
|
<if test="state != null">state = #{state},</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="deleteProUserInoutRecordById" parameterType="Long">
|
||||||
|
delete from pro_user_inout_record where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteProUserInoutRecordByIds" parameterType="String">
|
||||||
|
delete from pro_user_inout_record where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
|
@ -0,0 +1,106 @@
|
||||||
|
package com.yanzhu.manage.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.io.IOException;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import com.yanzhu.common.core.utils.poi.ExcelUtil;
|
||||||
|
import com.yanzhu.common.core.web.controller.BaseController;
|
||||||
|
import com.yanzhu.common.core.web.domain.AjaxResult;
|
||||||
|
import com.yanzhu.common.core.web.page.TableDataInfo;
|
||||||
|
import com.yanzhu.common.log.annotation.Log;
|
||||||
|
import com.yanzhu.common.log.enums.BusinessType;
|
||||||
|
import com.yanzhu.common.security.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.yanzhu.manage.domain.ProUserInoutRecord;
|
||||||
|
import com.yanzhu.manage.service.IProUserInoutRecordService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工出入场记录Controller
|
||||||
|
*
|
||||||
|
* @author yanzhu
|
||||||
|
* @date 2025-09-16
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/userInOutRecord")
|
||||||
|
public class ProUserInoutRecordController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IProUserInoutRecordService proUserInoutRecordService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询员工出入场记录列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:userInOutRecord:list")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(ProUserInoutRecord proUserInoutRecord)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<ProUserInoutRecord> list = proUserInoutRecordService.selectProUserInoutRecordList(proUserInoutRecord);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出员工出入场记录列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:userInOutRecord:export")
|
||||||
|
@Log(title = "员工出入场记录", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, ProUserInoutRecord proUserInoutRecord)
|
||||||
|
{
|
||||||
|
List<ProUserInoutRecord> list = proUserInoutRecordService.selectProUserInoutRecordList(proUserInoutRecord);
|
||||||
|
ExcelUtil<ProUserInoutRecord> util = new ExcelUtil<ProUserInoutRecord>(ProUserInoutRecord.class);
|
||||||
|
util.exportExcel(response, list, "员工出入场记录数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取员工出入场记录详细信息
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:userInOutRecord:query")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(proUserInoutRecordService.selectProUserInoutRecordById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增员工出入场记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:userInOutRecord:add")
|
||||||
|
@Log(title = "员工出入场记录", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody ProUserInoutRecord proUserInoutRecord)
|
||||||
|
{
|
||||||
|
return toAjax(proUserInoutRecordService.insertProUserInoutRecord(proUserInoutRecord));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改员工出入场记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:userInOutRecord:edit")
|
||||||
|
@Log(title = "员工出入场记录", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody ProUserInoutRecord proUserInoutRecord)
|
||||||
|
{
|
||||||
|
return toAjax(proUserInoutRecordService.updateProUserInoutRecord(proUserInoutRecord));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除员工出入场记录
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("manage:userInOutRecord:remove")
|
||||||
|
@Log(title = "员工出入场记录", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(proUserInoutRecordService.deleteProUserInoutRecordByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.yanzhu.manage.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.yanzhu.manage.domain.ProUserInoutRecord;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工出入场记录Service接口
|
||||||
|
*
|
||||||
|
* @author yanzhu
|
||||||
|
* @date 2025-09-16
|
||||||
|
*/
|
||||||
|
public interface IProUserInoutRecordService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询员工出入场记录
|
||||||
|
*
|
||||||
|
* @param id 员工出入场记录主键
|
||||||
|
* @return 员工出入场记录
|
||||||
|
*/
|
||||||
|
public ProUserInoutRecord selectProUserInoutRecordById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询员工出入场记录列表
|
||||||
|
*
|
||||||
|
* @param proUserInoutRecord 员工出入场记录
|
||||||
|
* @return 员工出入场记录集合
|
||||||
|
*/
|
||||||
|
public List<ProUserInoutRecord> selectProUserInoutRecordList(ProUserInoutRecord proUserInoutRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增员工出入场记录
|
||||||
|
*
|
||||||
|
* @param proUserInoutRecord 员工出入场记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertProUserInoutRecord(ProUserInoutRecord proUserInoutRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改员工出入场记录
|
||||||
|
*
|
||||||
|
* @param proUserInoutRecord 员工出入场记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateProUserInoutRecord(ProUserInoutRecord proUserInoutRecord);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除员工出入场记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的员工出入场记录主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProUserInoutRecordByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除员工出入场记录信息
|
||||||
|
*
|
||||||
|
* @param id 员工出入场记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteProUserInoutRecordById(Long id);
|
||||||
|
}
|
|
@ -0,0 +1,99 @@
|
||||||
|
package com.yanzhu.manage.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.yanzhu.common.core.context.SecurityContextHolder;
|
||||||
|
import com.yanzhu.common.core.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.yanzhu.manage.mapper.ProUserInoutRecordMapper;
|
||||||
|
import com.yanzhu.manage.domain.ProUserInoutRecord;
|
||||||
|
import com.yanzhu.manage.service.IProUserInoutRecordService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 员工出入场记录Service业务层处理
|
||||||
|
*
|
||||||
|
* @author yanzhu
|
||||||
|
* @date 2025-09-16
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ProUserInoutRecordServiceImpl implements IProUserInoutRecordService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ProUserInoutRecordMapper proUserInoutRecordMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询员工出入场记录
|
||||||
|
*
|
||||||
|
* @param id 员工出入场记录主键
|
||||||
|
* @return 员工出入场记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public ProUserInoutRecord selectProUserInoutRecordById(Long id)
|
||||||
|
{
|
||||||
|
return proUserInoutRecordMapper.selectProUserInoutRecordById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询员工出入场记录列表
|
||||||
|
*
|
||||||
|
* @param proUserInoutRecord 员工出入场记录
|
||||||
|
* @return 员工出入场记录
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<ProUserInoutRecord> selectProUserInoutRecordList(ProUserInoutRecord proUserInoutRecord)
|
||||||
|
{
|
||||||
|
return proUserInoutRecordMapper.selectProUserInoutRecordList(proUserInoutRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增员工出入场记录
|
||||||
|
*
|
||||||
|
* @param proUserInoutRecord 员工出入场记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertProUserInoutRecord(ProUserInoutRecord proUserInoutRecord)
|
||||||
|
{
|
||||||
|
proUserInoutRecord.setCreateBy(SecurityContextHolder.getUserName());
|
||||||
|
proUserInoutRecord.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return proUserInoutRecordMapper.insertProUserInoutRecord(proUserInoutRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改员工出入场记录
|
||||||
|
*
|
||||||
|
* @param proUserInoutRecord 员工出入场记录
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateProUserInoutRecord(ProUserInoutRecord proUserInoutRecord)
|
||||||
|
{
|
||||||
|
proUserInoutRecord.setUpdateBy(SecurityContextHolder.getUserName());
|
||||||
|
proUserInoutRecord.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return proUserInoutRecordMapper.updateProUserInoutRecord(proUserInoutRecord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除员工出入场记录
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的员工出入场记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteProUserInoutRecordByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return proUserInoutRecordMapper.deleteProUserInoutRecordByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除员工出入场记录信息
|
||||||
|
*
|
||||||
|
* @param id 员工出入场记录主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteProUserInoutRecordById(Long id)
|
||||||
|
{
|
||||||
|
return proUserInoutRecordMapper.deleteProUserInoutRecordById(id);
|
||||||
|
}
|
||||||
|
}
|
|
@ -338,6 +338,8 @@ public class UniServiceImpl implements IUniService {
|
||||||
String admitGuid = u.getAdmitGuid();
|
String admitGuid = u.getAdmitGuid();
|
||||||
if (StringUtils.isNotEmpty(admitGuid)) {
|
if (StringUtils.isNotEmpty(admitGuid)) {
|
||||||
admitGuidList.add(admitGuid);
|
admitGuidList.add(admitGuid);
|
||||||
|
}else{
|
||||||
|
syncUniUser(u,true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (int i = 0; i < admitGuidList.size(); i += 50) {
|
for (int i = 0; i < admitGuidList.size(); i += 50) {
|
||||||
|
|
|
@ -1,143 +1,26 @@
|
||||||
<p align="center">
|
2025.9.16
|
||||||
<img alt="logo" src="https://oscimg.oschina.net/oscnet/up-b99b286755aef70355a7084753f89cdb7c9.png">
|
1.增加表pro_user_inout_record 员工出入场记录
|
||||||
</p>
|
|
||||||
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RuoYi v3.6.3</h1>
|
|
||||||
<h4 align="center">基于 Vue3/Element Plus 和 Spring Boot/Spring Cloud & Alibaba 前后端分离的分布式微服务架构</h4>
|
|
||||||
<p align="center">
|
|
||||||
<a href="https://gitee.com/y_project/RuoYi-Cloud/stargazers"><img src="https://gitee.com/y_project/RuoYi-Cloud/badge/star.svg?theme=dark"></a>
|
|
||||||
<a href="https://gitee.com/y_project/RuoYi-Cloud"><img src="https://img.shields.io/badge/RuoYi-v3.6.3-brightgreen.svg"></a>
|
|
||||||
<a href="https://gitee.com/y_project/RuoYi-Cloud/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
## 平台简介
|
-- 菜单 SQL
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('员工出入场记录', '2484', '1', 'userInOutRecord', 'manage/userInOutRecord/index', 1, 0, 'C', '0', '0', 'manage:userInOutRecord:list', '#', 'admin', sysdate(), '', null, '员工出入场记录菜单');
|
||||||
|
|
||||||
* 本仓库为前端技术栈 [Vue3](https://v3.cn.vuejs.org) + [Element Plus](https://element-plus.org/zh-CN) + [Vite](https://cn.vitejs.dev) 版本。
|
-- 按钮父菜单ID
|
||||||
* 配套后端代码仓库地址[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud) 或 [RuoYi-Cloud-Oracle](https://github.com/yangzongzhuan/RuoYi-Cloud-Oracle) 版本。
|
SELECT @parentId := LAST_INSERT_ID();
|
||||||
* 前端技术栈([Vue2](https://cn.vuejs.org) + [Element](https://github.com/ElemeFE/element) + [Vue CLI](https://cli.vuejs.org/zh)),请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud/tree/master/ruoyi-ui)。
|
|
||||||
* 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)
|
|
||||||
* 阿里云优惠券:[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link),腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)
|
|
||||||
|
|
||||||
## 前端运行
|
-- 按钮 SQL
|
||||||
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values('员工出入场记录查询', @parentId, '1', '#', '', 1, 0, 'F', '0', '0', 'manage:userInOutRecord:query', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
```bash
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
# 克隆项目
|
values('员工出入场记录新增', @parentId, '2', '#', '', 1, 0, 'F', '0', '0', 'manage:userInOutRecord:add', '#', 'admin', sysdate(), '', null, '');
|
||||||
git clone https://github.com/yangzongzhuan/RuoYi-Cloud-Vue3.git
|
|
||||||
|
|
||||||
# 进入项目目录
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
cd RuoYi-Cloud-Vue3
|
values('员工出入场记录修改', @parentId, '3', '#', '', 1, 0, 'F', '0', '0', 'manage:userInOutRecord:edit', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
# 安装依赖
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
yarn --registry=https://registry.npmmirror.com
|
values('员工出入场记录删除', @parentId, '4', '#', '', 1, 0, 'F', '0', '0', 'manage:userInOutRecord:remove', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
# 启动服务
|
insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
yarn dev
|
values('员工出入场记录导出', @parentId, '5', '#', '', 1, 0, 'F', '0', '0', 'manage:userInOutRecord:export', '#', 'admin', sysdate(), '', null, '');
|
||||||
|
|
||||||
# 构建测试环境 yarn build:stage
|
|
||||||
# 构建生产环境 yarn build:prod
|
|
||||||
# 前端访问地址 http://localhost:80
|
|
||||||
```
|
|
||||||
|
|
||||||
## 系统模块
|
|
||||||
|
|
||||||
~~~
|
|
||||||
com.ruoyi
|
|
||||||
├── ruoyi-ui // 前端框架 [80]
|
|
||||||
├── ruoyi-gateway // 网关模块 [8080]
|
|
||||||
├── ruoyi-auth // 认证中心 [9200]
|
|
||||||
├── ruoyi-api // 接口模块
|
|
||||||
│ └── ruoyi-api-system // 系统接口
|
|
||||||
├── ruoyi-common // 通用模块
|
|
||||||
│ └── ruoyi-common-core // 核心模块
|
|
||||||
│ └── ruoyi-common-datascope // 权限范围
|
|
||||||
│ └── ruoyi-common-datasource // 多数据源
|
|
||||||
│ └── ruoyi-common-log // 日志记录
|
|
||||||
│ └── ruoyi-common-redis // 缓存服务
|
|
||||||
│ └── ruoyi-common-security // 安全模块
|
|
||||||
│ └── ruoyi-common-swagger // 系统接口
|
|
||||||
├── ruoyi-modules // 业务模块
|
|
||||||
│ └── ruoyi-system // 系统模块 [9201]
|
|
||||||
│ └── ruoyi-gen // 代码生成 [9202]
|
|
||||||
│ └── ruoyi-job // 定时任务 [9203]
|
|
||||||
│ └── ruoyi-file // 文件服务 [9300]
|
|
||||||
├── ruoyi-visual // 图形化管理模块
|
|
||||||
│ └── ruoyi-visual-monitor // 监控中心 [9100]
|
|
||||||
├──pom.xml // 公共依赖
|
|
||||||
~~~
|
|
||||||
|
|
||||||
## 架构图
|
|
||||||
|
|
||||||
<img src="https://oscimg.oschina.net/oscnet/up-82e9722ecb846786405a904bafcf19f73f3.png"/>
|
|
||||||
|
|
||||||
## 内置功能
|
|
||||||
|
|
||||||
1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。
|
|
||||||
2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。
|
|
||||||
3. 岗位管理:配置系统用户所属担任职务。
|
|
||||||
4. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。
|
|
||||||
5. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。
|
|
||||||
6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。
|
|
||||||
7. 参数管理:对系统动态配置常用参数。
|
|
||||||
8. 通知公告:系统通知公告信息发布维护。
|
|
||||||
9. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。
|
|
||||||
10. 登录日志:系统登录日志记录查询包含登录异常。
|
|
||||||
11. 在线用户:当前系统中活跃用户状态监控。
|
|
||||||
12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。
|
|
||||||
13. 代码生成:前后端代码的生成(java、html、xml、sql)支持CRUD下载 。
|
|
||||||
14. 系统接口:根据业务代码自动生成相关的api接口文档。
|
|
||||||
15. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。
|
|
||||||
16. 在线构建器:拖动表单元素生成相应的HTML代码。
|
|
||||||
17. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。
|
|
||||||
|
|
||||||
## 在线体验
|
|
||||||
|
|
||||||
- admin/admin123
|
|
||||||
- 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。
|
|
||||||
|
|
||||||
演示地址:http://ruoyi.vip
|
|
||||||
文档地址:http://doc.ruoyi.vip
|
|
||||||
|
|
||||||
## 演示图
|
|
||||||
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/cd1f90be5f2684f4560c9519c0f2a232ee8.jpg"/></td>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/1cbcf0e6f257c7d3a063c0e3f2ff989e4b3.jpg"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-8074972883b5ba0622e13246738ebba237a.png"/></td>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-9f88719cdfca9af2e58b352a20e23d43b12.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-39bf2584ec3a529b0d5a3b70d15c9b37646.png"/></td>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-4148b24f58660a9dc347761e4cf6162f28f.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-b2d62ceb95d2dd9b3fbe157bb70d26001e9.png"/></td>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-d67451d308b7a79ad6819723396f7c3d77a.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/5e8c387724954459291aafd5eb52b456f53.jpg"/></td>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/644e78da53c2e92a95dfda4f76e6d117c4b.jpg"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-8370a0d02977eebf6dbf854c8450293c937.png"/></td>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-49003ed83f60f633e7153609a53a2b644f7.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-d4fe726319ece268d4746602c39cffc0621.png"/></td>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-c195234bbcd30be6927f037a6755e6ab69c.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-ece3fd37a3d4bb75a3926e905a3c5629055.png"/></td>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-92ffb7f3835855cff100fa0f754a6be0d99.png"/></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-ff9e3066561574aca73005c5730c6a41f15.png"/></td>
|
|
||||||
<td><img src="https://oscimg.oschina.net/oscnet/up-5e4daac0bb59612c5038448acbcef235e3a.png"/></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
## 若依微服务交流群
|
|
||||||
|
|
||||||
QQ群: [](https://jq.qq.com/?_wv=1027&k=yqInfq0S) [](https://jq.qq.com/?_wv=1027&k=Oy1mb3p8) [](https://jq.qq.com/?_wv=1027&k=rvxkJtXK) [](https://jq.qq.com/?_wv=1027&k=0Ck3PvTe) [](https://jq.qq.com/?_wv=1027&k=FnHHP4TT) [](https://jq.qq.com/?_wv=1027&k=qdT1Ojpz) [](https://jq.qq.com/?_wv=1027&k=nw3OiyXs) [](https://jq.qq.com/?_wv=1027&k=kiU5WDls) [](https://jq.qq.com/?_wv=1027&k=MtBy6YfT) [](https://jq.qq.com/?_wv=1027&k=FqImHgH2) 点击按钮入群。
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
// 查询员工出入场记录列表
|
||||||
|
export function listUserInOutRecord(query) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/userInOutRecord/list',
|
||||||
|
method: 'get',
|
||||||
|
params: query
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询员工出入场记录详细
|
||||||
|
export function getUserInOutRecord(id) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/userInOutRecord/' + id,
|
||||||
|
method: 'get'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增员工出入场记录
|
||||||
|
export function addUserInOutRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/userInOutRecord',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改员工出入场记录
|
||||||
|
export function updateUserInOutRecord(data) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/userInOutRecord',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除员工出入场记录
|
||||||
|
export function delUserInOutRecord(id) {
|
||||||
|
return request({
|
||||||
|
url: '/manage/userInOutRecord/' + id,
|
||||||
|
method: 'delete'
|
||||||
|
})
|
||||||
|
}
|
|
@ -78,7 +78,6 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="150">
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="150">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
111
|
|
||||||
<el-button link type="primary" icon="ChromeFilled" @click="handleAuth(scope.row)" v-hasPermi="['manage:attendance_ubi_device:edit']">同步</el-button>
|
<el-button link type="primary" icon="ChromeFilled" @click="handleAuth(scope.row)" v-hasPermi="['manage:attendance_ubi_device:edit']">同步</el-button>
|
||||||
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['manage:attendance_ubi_device:edit']">修改</el-button>
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['manage:attendance_ubi_device:edit']">修改</el-button>
|
||||||
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:attendance_ubi_device:remove']">删除</el-button>
|
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:attendance_ubi_device:remove']">删除</el-button>
|
||||||
|
|
|
@ -0,0 +1,394 @@
|
||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryRef" :inline="true" v-show="showSearch" label-width="68px">
|
||||||
|
<el-form-item label="${comment}" prop="projectId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.projectId"
|
||||||
|
placeholder="请输入${comment}"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用户ID" prop="userId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.userId"
|
||||||
|
placeholder="请输入用户ID"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用户名" prop="userName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.userName"
|
||||||
|
placeholder="请输入用户名"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用户手机" prop="userPhone">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.userPhone"
|
||||||
|
placeholder="请输入用户手机"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="分包单位ID" prop="subDeptId">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.subDeptId"
|
||||||
|
placeholder="请输入分包单位ID"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="分包单位" prop="subDeptName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.subDeptName"
|
||||||
|
placeholder="请输入分包单位"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="班组编号" prop="subDeptGroup">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.subDeptGroup"
|
||||||
|
placeholder="请输入班组编号"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="班组名称" prop="subDeptGroupName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.subDeptGroupName"
|
||||||
|
placeholder="请输入班组名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="工种岗位" prop="craftPost">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.craftPost"
|
||||||
|
placeholder="请输入工种岗位"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="isDel">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.isDel"
|
||||||
|
placeholder="请输入${comment}"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="state">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.state"
|
||||||
|
placeholder="请输入${comment}"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
||||||
|
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
|
||||||
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
icon="Plus"
|
||||||
|
@click="handleAdd"
|
||||||
|
v-hasPermi="['manage:userInOutRecord:add']"
|
||||||
|
>新增</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
plain
|
||||||
|
icon="Edit"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['manage:userInOutRecord:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="danger"
|
||||||
|
plain
|
||||||
|
icon="Delete"
|
||||||
|
:disabled="multiple"
|
||||||
|
@click="handleDelete"
|
||||||
|
v-hasPermi="['manage:userInOutRecord:remove']"
|
||||||
|
>删除</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="Download"
|
||||||
|
@click="handleExport"
|
||||||
|
v-hasPermi="['manage:userInOutRecord:export']"
|
||||||
|
>导出</el-button>
|
||||||
|
</el-col>
|
||||||
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-table v-loading="loading" :data="userInOutRecordList" @selection-change="handleSelectionChange">
|
||||||
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
|
<el-table-column label="${comment}" align="center" prop="id" />
|
||||||
|
<el-table-column label="${comment}" align="center" prop="projectId" />
|
||||||
|
<el-table-column label="用户ID" align="center" prop="userId" />
|
||||||
|
<el-table-column label="用户名" align="center" prop="userName" />
|
||||||
|
<el-table-column label="用户手机" align="center" prop="userPhone" />
|
||||||
|
<el-table-column label="用户图像" align="center" prop="userPicture" />
|
||||||
|
<el-table-column label="用户性别" align="center" prop="userSex" />
|
||||||
|
<el-table-column label="进场状态" align="center" prop="useStatus" />
|
||||||
|
<el-table-column label="分包单位ID" align="center" prop="subDeptId" />
|
||||||
|
<el-table-column label="分包单位" align="center" prop="subDeptName" />
|
||||||
|
<el-table-column label="分包类型" align="center" prop="subDeptType" />
|
||||||
|
<el-table-column label="班组编号" align="center" prop="subDeptGroup" />
|
||||||
|
<el-table-column label="班组名称" align="center" prop="subDeptGroupName" />
|
||||||
|
<el-table-column label="工种类型" align="center" prop="craftType" />
|
||||||
|
<el-table-column label="工种岗位" align="center" prop="craftPost" />
|
||||||
|
<el-table-column label="${comment}" align="center" prop="isDel" />
|
||||||
|
<el-table-column label="${comment}" align="center" prop="remark" />
|
||||||
|
<el-table-column label="${comment}" align="center" prop="state" />
|
||||||
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['manage:userInOutRecord:edit']">修改</el-button>
|
||||||
|
<el-button link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['manage:userInOutRecord:remove']">删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
v-model:page="queryParams.pageNum"
|
||||||
|
v-model:limit="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
|
||||||
|
<!-- 添加或修改员工出入场记录对话框 -->
|
||||||
|
<el-dialog :title="title" v-model="open" width="500px" append-to-body>
|
||||||
|
<el-form ref="userInOutRecordRef" :model="form" :rules="rules" label-width="80px">
|
||||||
|
<el-form-item label="${comment}" prop="projectId">
|
||||||
|
<el-input v-model="form.projectId" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用户ID" prop="userId">
|
||||||
|
<el-input v-model="form.userId" placeholder="请输入用户ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用户名" prop="userName">
|
||||||
|
<el-input v-model="form.userName" placeholder="请输入用户名" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用户手机" prop="userPhone">
|
||||||
|
<el-input v-model="form.userPhone" placeholder="请输入用户手机" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用户图像" prop="userPicture">
|
||||||
|
<el-input v-model="form.userPicture" type="textarea" placeholder="请输入内容" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="分包单位ID" prop="subDeptId">
|
||||||
|
<el-input v-model="form.subDeptId" placeholder="请输入分包单位ID" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="分包单位" prop="subDeptName">
|
||||||
|
<el-input v-model="form.subDeptName" placeholder="请输入分包单位" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="班组编号" prop="subDeptGroup">
|
||||||
|
<el-input v-model="form.subDeptGroup" placeholder="请输入班组编号" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="班组名称" prop="subDeptGroupName">
|
||||||
|
<el-input v-model="form.subDeptGroupName" placeholder="请输入班组名称" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="工种岗位" prop="craftPost">
|
||||||
|
<el-input v-model="form.craftPost" placeholder="请输入工种岗位" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="isDel">
|
||||||
|
<el-input v-model="form.isDel" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="remark">
|
||||||
|
<el-input v-model="form.remark" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="${comment}" prop="state">
|
||||||
|
<el-input v-model="form.state" placeholder="请输入${comment}" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<template #footer>
|
||||||
|
<div class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||||
|
<el-button @click="cancel">取 消</el-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup name="UserInOutRecord">
|
||||||
|
import { listUserInOutRecord, getUserInOutRecord, delUserInOutRecord, addUserInOutRecord, updateUserInOutRecord } from "@/api/manage/userInOutRecord";
|
||||||
|
|
||||||
|
const { proxy } = getCurrentInstance();
|
||||||
|
|
||||||
|
const userInOutRecordList = ref([]);
|
||||||
|
const open = ref(false);
|
||||||
|
const loading = ref(true);
|
||||||
|
const showSearch = ref(true);
|
||||||
|
const ids = ref([]);
|
||||||
|
const single = ref(true);
|
||||||
|
const multiple = ref(true);
|
||||||
|
const total = ref(0);
|
||||||
|
const title = ref("");
|
||||||
|
|
||||||
|
const data = reactive({
|
||||||
|
form: {},
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
projectId: null,
|
||||||
|
userId: null,
|
||||||
|
userName: null,
|
||||||
|
userPhone: null,
|
||||||
|
userPicture: null,
|
||||||
|
userSex: null,
|
||||||
|
useStatus: null,
|
||||||
|
subDeptId: null,
|
||||||
|
subDeptName: null,
|
||||||
|
subDeptType: null,
|
||||||
|
subDeptGroup: null,
|
||||||
|
subDeptGroupName: null,
|
||||||
|
craftType: null,
|
||||||
|
craftPost: null,
|
||||||
|
isDel: null,
|
||||||
|
state: null,
|
||||||
|
},
|
||||||
|
rules: {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
const { queryParams, form, rules } = toRefs(data);
|
||||||
|
|
||||||
|
/** 查询员工出入场记录列表 */
|
||||||
|
function getList() {
|
||||||
|
loading.value = true;
|
||||||
|
listUserInOutRecord(queryParams.value).then(response => {
|
||||||
|
userInOutRecordList.value = response.rows;
|
||||||
|
total.value = response.total;
|
||||||
|
loading.value = false;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 取消按钮
|
||||||
|
function cancel() {
|
||||||
|
open.value = false;
|
||||||
|
reset();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 表单重置
|
||||||
|
function reset() {
|
||||||
|
form.value = {
|
||||||
|
id: null,
|
||||||
|
projectId: null,
|
||||||
|
userId: null,
|
||||||
|
userName: null,
|
||||||
|
userPhone: null,
|
||||||
|
userPicture: null,
|
||||||
|
userSex: null,
|
||||||
|
useStatus: null,
|
||||||
|
subDeptId: null,
|
||||||
|
subDeptName: null,
|
||||||
|
subDeptType: null,
|
||||||
|
subDeptGroup: null,
|
||||||
|
subDeptGroupName: null,
|
||||||
|
craftType: null,
|
||||||
|
craftPost: null,
|
||||||
|
isDel: null,
|
||||||
|
remark: null,
|
||||||
|
state: null,
|
||||||
|
createBy: null,
|
||||||
|
createTime: null,
|
||||||
|
updateBy: null,
|
||||||
|
updateTime: null
|
||||||
|
};
|
||||||
|
proxy.resetForm("userInOutRecordRef");
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
function handleQuery() {
|
||||||
|
queryParams.value.pageNum = 1;
|
||||||
|
getList();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
function resetQuery() {
|
||||||
|
proxy.resetForm("queryRef");
|
||||||
|
handleQuery();
|
||||||
|
}
|
||||||
|
|
||||||
|
// 多选框选中数据
|
||||||
|
function handleSelectionChange(selection) {
|
||||||
|
ids.value = selection.map(item => item.id);
|
||||||
|
single.value = selection.length != 1;
|
||||||
|
multiple.value = !selection.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 新增按钮操作 */
|
||||||
|
function handleAdd() {
|
||||||
|
reset();
|
||||||
|
open.value = true;
|
||||||
|
title.value = "添加员工出入场记录";
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 修改按钮操作 */
|
||||||
|
function handleUpdate(row) {
|
||||||
|
reset();
|
||||||
|
const _id = row.id || ids.value
|
||||||
|
getUserInOutRecord(_id).then(response => {
|
||||||
|
form.value = response.data;
|
||||||
|
open.value = true;
|
||||||
|
title.value = "修改员工出入场记录";
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 提交按钮 */
|
||||||
|
function submitForm() {
|
||||||
|
proxy.$refs["userInOutRecordRef"].validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (form.value.id != null) {
|
||||||
|
updateUserInOutRecord(form.value).then(response => {
|
||||||
|
proxy.$modal.msgSuccess("修改成功");
|
||||||
|
open.value = false;
|
||||||
|
getList();
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
addUserInOutRecord(form.value).then(response => {
|
||||||
|
proxy.$modal.msgSuccess("新增成功");
|
||||||
|
open.value = false;
|
||||||
|
getList();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 删除按钮操作 */
|
||||||
|
function handleDelete(row) {
|
||||||
|
const _ids = row.id || ids.value;
|
||||||
|
proxy.$modal.confirm('是否确认删除员工出入场记录编号为"' + _ids + '"的数据项?').then(function() {
|
||||||
|
return delUserInOutRecord(_ids);
|
||||||
|
}).then(() => {
|
||||||
|
getList();
|
||||||
|
proxy.$modal.msgSuccess("删除成功");
|
||||||
|
}).catch(() => {});
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
function handleExport() {
|
||||||
|
proxy.download('manage/userInOutRecord/export', {
|
||||||
|
...queryParams.value
|
||||||
|
}, `userInOutRecord_${new Date().getTime()}.xlsx`)
|
||||||
|
}
|
||||||
|
|
||||||
|
getList();
|
||||||
|
</script>
|
Loading…
Reference in New Issue