增加移动考勤服务
parent
ad3c8079e8
commit
432ae50f24
7
pom.xml
7
pom.xml
|
@ -288,6 +288,13 @@
|
|||
<version>13.0.2</version>
|
||||
</dependency>
|
||||
|
||||
<!-- MySQL 驱动 -->
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
<version>8.0.31</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.yanzhu.flowable.domain.my;
|
|||
import com.yanzhu.common.core.web.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
|
||||
|
@ -14,6 +15,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
|
|||
* @date 2024-02-23
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel("工作流项目单位关系")
|
||||
public class FlowDeptVo extends BaseEntity {
|
||||
|
||||
|
|
|
@ -0,0 +1,201 @@
|
|||
package com.yanzhu.manage.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
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_mobile_attendance_config
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-08-29
|
||||
*/
|
||||
public class ProMobileAttendanceConfig extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long comId;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long projectId;
|
||||
|
||||
/** 标题 */
|
||||
@Excel(name = "标题")
|
||||
private String title;
|
||||
|
||||
/** 开始时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date starteDate;
|
||||
|
||||
/** 结束时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date endDate;
|
||||
|
||||
/** 地址 */
|
||||
@Excel(name = "地址")
|
||||
private String address;
|
||||
|
||||
/** 经度 */
|
||||
@Excel(name = "经度")
|
||||
private BigDecimal longitude;
|
||||
|
||||
/** 纬度 */
|
||||
@Excel(name = "纬度")
|
||||
private BigDecimal latitude;
|
||||
|
||||
/** 有效 */
|
||||
@Excel(name = "有效")
|
||||
private Long valid;
|
||||
|
||||
/** 考勤范围 */
|
||||
@Excel(name = "考勤范围")
|
||||
private BigDecimal rang;
|
||||
|
||||
/** $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 setComId(Long comId)
|
||||
{
|
||||
this.comId = comId;
|
||||
}
|
||||
|
||||
public Long getComId()
|
||||
{
|
||||
return comId;
|
||||
}
|
||||
public void setProjectId(Long projectId)
|
||||
{
|
||||
this.projectId = projectId;
|
||||
}
|
||||
|
||||
public Long getProjectId()
|
||||
{
|
||||
return projectId;
|
||||
}
|
||||
public void setTitle(String title)
|
||||
{
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getTitle()
|
||||
{
|
||||
return title;
|
||||
}
|
||||
public void setStarteDate(Date starteDate)
|
||||
{
|
||||
this.starteDate = starteDate;
|
||||
}
|
||||
|
||||
public Date getStarteDate()
|
||||
{
|
||||
return starteDate;
|
||||
}
|
||||
public void setEndDate(Date endDate)
|
||||
{
|
||||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
public Date getEndDate()
|
||||
{
|
||||
return endDate;
|
||||
}
|
||||
public void setAddress(String address)
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getAddress()
|
||||
{
|
||||
return address;
|
||||
}
|
||||
public void setLongitude(BigDecimal longitude)
|
||||
{
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public BigDecimal getLongitude()
|
||||
{
|
||||
return longitude;
|
||||
}
|
||||
public void setLatitude(BigDecimal latitude)
|
||||
{
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public BigDecimal getLatitude()
|
||||
{
|
||||
return latitude;
|
||||
}
|
||||
public void setValid(Long valid)
|
||||
{
|
||||
this.valid = valid;
|
||||
}
|
||||
|
||||
public Long getValid()
|
||||
{
|
||||
return valid;
|
||||
}
|
||||
public void setRang(BigDecimal rang)
|
||||
{
|
||||
this.rang = rang;
|
||||
}
|
||||
|
||||
public BigDecimal getRang()
|
||||
{
|
||||
return rang;
|
||||
}
|
||||
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("comId", getComId())
|
||||
.append("projectId", getProjectId())
|
||||
.append("title", getTitle())
|
||||
.append("starteDate", getStarteDate())
|
||||
.append("endDate", getEndDate())
|
||||
.append("address", getAddress())
|
||||
.append("longitude", getLongitude())
|
||||
.append("latitude", getLatitude())
|
||||
.append("valid", getValid())
|
||||
.append("rang", getRang())
|
||||
.append("state", getState())
|
||||
.append("remark", getRemark())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
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_mobile_attendance_config_group
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-08-29
|
||||
*/
|
||||
public class ProMobileAttendanceConfigGroup extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 配置表ID */
|
||||
@Excel(name = "配置表ID")
|
||||
private Long cfgId;
|
||||
|
||||
/** 班级ID */
|
||||
@Excel(name = "班级ID")
|
||||
private Long groupId;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCfgId(Long cfgId)
|
||||
{
|
||||
this.cfgId = cfgId;
|
||||
}
|
||||
|
||||
public Long getCfgId()
|
||||
{
|
||||
return cfgId;
|
||||
}
|
||||
public void setGroupId(Long groupId)
|
||||
{
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
public Long getGroupId()
|
||||
{
|
||||
return groupId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("cfgId", getCfgId())
|
||||
.append("groupId", getGroupId())
|
||||
.toString();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.ProMobileAttendanceConfigGroup;
|
||||
|
||||
/**
|
||||
* 移动端考勤配置分组信息Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-08-29
|
||||
*/
|
||||
public interface ProMobileAttendanceConfigGroupMapper
|
||||
{
|
||||
/**
|
||||
* 查询移动端考勤配置分组信息
|
||||
*
|
||||
* @param id 移动端考勤配置分组信息主键
|
||||
* @return 移动端考勤配置分组信息
|
||||
*/
|
||||
public ProMobileAttendanceConfigGroup selectProMobileAttendanceConfigGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询移动端考勤配置分组信息列表
|
||||
*
|
||||
* @param proMobileAttendanceConfigGroup 移动端考勤配置分组信息
|
||||
* @return 移动端考勤配置分组信息集合
|
||||
*/
|
||||
public List<ProMobileAttendanceConfigGroup> selectProMobileAttendanceConfigGroupList(ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup);
|
||||
|
||||
/**
|
||||
* 新增移动端考勤配置分组信息
|
||||
*
|
||||
* @param proMobileAttendanceConfigGroup 移动端考勤配置分组信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProMobileAttendanceConfigGroup(ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup);
|
||||
|
||||
/**
|
||||
* 修改移动端考勤配置分组信息
|
||||
*
|
||||
* @param proMobileAttendanceConfigGroup 移动端考勤配置分组信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProMobileAttendanceConfigGroup(ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup);
|
||||
|
||||
/**
|
||||
* 删除移动端考勤配置分组信息
|
||||
*
|
||||
* @param id 移动端考勤配置分组信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMobileAttendanceConfigGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除移动端考勤配置分组信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMobileAttendanceConfigGroupByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.ProMobileAttendanceConfig;
|
||||
|
||||
/**
|
||||
* 移动端考勤配置Mapper接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-08-29
|
||||
*/
|
||||
public interface ProMobileAttendanceConfigMapper
|
||||
{
|
||||
/**
|
||||
* 查询移动端考勤配置
|
||||
*
|
||||
* @param id 移动端考勤配置主键
|
||||
* @return 移动端考勤配置
|
||||
*/
|
||||
public ProMobileAttendanceConfig selectProMobileAttendanceConfigById(Long id);
|
||||
|
||||
/**
|
||||
* 查询移动端考勤配置列表
|
||||
*
|
||||
* @param proMobileAttendanceConfig 移动端考勤配置
|
||||
* @return 移动端考勤配置集合
|
||||
*/
|
||||
public List<ProMobileAttendanceConfig> selectProMobileAttendanceConfigList(ProMobileAttendanceConfig proMobileAttendanceConfig);
|
||||
|
||||
/**
|
||||
* 新增移动端考勤配置
|
||||
*
|
||||
* @param proMobileAttendanceConfig 移动端考勤配置
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProMobileAttendanceConfig(ProMobileAttendanceConfig proMobileAttendanceConfig);
|
||||
|
||||
/**
|
||||
* 修改移动端考勤配置
|
||||
*
|
||||
* @param proMobileAttendanceConfig 移动端考勤配置
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProMobileAttendanceConfig(ProMobileAttendanceConfig proMobileAttendanceConfig);
|
||||
|
||||
/**
|
||||
* 删除移动端考勤配置
|
||||
*
|
||||
* @param id 移动端考勤配置主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMobileAttendanceConfigById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除移动端考勤配置
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMobileAttendanceConfigByIds(Long[] ids);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
<?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.ProMobileAttendanceConfigGroupMapper">
|
||||
|
||||
<resultMap type="ProMobileAttendanceConfigGroup" id="ProMobileAttendanceConfigGroupResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cfgId" column="cfg_id" />
|
||||
<result property="groupId" column="group_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectProMobileAttendanceConfigGroupVo">
|
||||
select id, cfg_id, group_id from pro_mobile_attendance_config_group
|
||||
</sql>
|
||||
|
||||
<select id="selectProMobileAttendanceConfigGroupList" parameterType="ProMobileAttendanceConfigGroup" resultMap="ProMobileAttendanceConfigGroupResult">
|
||||
<include refid="selectProMobileAttendanceConfigGroupVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null "> and cfg_id = #{cfgId}</if>
|
||||
<if test="groupId != null "> and group_id = #{groupId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectProMobileAttendanceConfigGroupById" parameterType="Long" resultMap="ProMobileAttendanceConfigGroupResult">
|
||||
<include refid="selectProMobileAttendanceConfigGroupVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertProMobileAttendanceConfigGroup" parameterType="ProMobileAttendanceConfigGroup" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into pro_mobile_attendance_config_group
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id,</if>
|
||||
<if test="groupId != null">group_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cfgId != null">#{cfgId},</if>
|
||||
<if test="groupId != null">#{groupId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateProMobileAttendanceConfigGroup" parameterType="ProMobileAttendanceConfigGroup">
|
||||
update pro_mobile_attendance_config_group
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cfgId != null">cfg_id = #{cfgId},</if>
|
||||
<if test="groupId != null">group_id = #{groupId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteProMobileAttendanceConfigGroupById" parameterType="Long">
|
||||
delete from pro_mobile_attendance_config_group where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteProMobileAttendanceConfigGroupByIds" parameterType="String">
|
||||
delete from pro_mobile_attendance_config_group where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -0,0 +1,126 @@
|
|||
<?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.ProMobileAttendanceConfigMapper">
|
||||
|
||||
<resultMap type="ProMobileAttendanceConfig" id="ProMobileAttendanceConfigResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="comId" column="com_id" />
|
||||
<result property="projectId" column="project_id" />
|
||||
<result property="title" column="title" />
|
||||
<result property="starteDate" column="starte_date" />
|
||||
<result property="endDate" column="end_date" />
|
||||
<result property="address" column="address" />
|
||||
<result property="longitude" column="longitude" />
|
||||
<result property="latitude" column="latitude" />
|
||||
<result property="valid" column="valid" />
|
||||
<result property="rang" column="rang" />
|
||||
<result property="state" column="state" />
|
||||
<result property="remark" column="remark" />
|
||||
<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="selectProMobileAttendanceConfigVo">
|
||||
select id, com_id, project_id, title, starte_date, end_date, address, longitude, latitude, valid, rang, state, remark, create_by, create_time, update_by, update_time from pro_mobile_attendance_config
|
||||
</sql>
|
||||
|
||||
<select id="selectProMobileAttendanceConfigList" parameterType="ProMobileAttendanceConfig" resultMap="ProMobileAttendanceConfigResult">
|
||||
<include refid="selectProMobileAttendanceConfigVo"/>
|
||||
<where>
|
||||
<if test="comId != null "> and com_id = #{comId}</if>
|
||||
<if test="projectId != null "> and project_id = #{projectId}</if>
|
||||
<if test="title != null and title != ''"> and title = #{title}</if>
|
||||
<if test="starteDate != null "> and starte_date = #{starteDate}</if>
|
||||
<if test="endDate != null "> and end_date = #{endDate}</if>
|
||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
||||
<if test="longitude != null "> and longitude = #{longitude}</if>
|
||||
<if test="latitude != null "> and latitude = #{latitude}</if>
|
||||
<if test="valid != null "> and valid = #{valid}</if>
|
||||
<if test="rang != null "> and rang = #{rang}</if>
|
||||
<if test="state != null "> and state = #{state}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectProMobileAttendanceConfigById" parameterType="Long" resultMap="ProMobileAttendanceConfigResult">
|
||||
<include refid="selectProMobileAttendanceConfigVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertProMobileAttendanceConfig" parameterType="ProMobileAttendanceConfig" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into pro_mobile_attendance_config
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="comId != null">com_id,</if>
|
||||
<if test="projectId != null">project_id,</if>
|
||||
<if test="title != null and title != ''">title,</if>
|
||||
<if test="starteDate != null">starte_date,</if>
|
||||
<if test="endDate != null">end_date,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="longitude != null">longitude,</if>
|
||||
<if test="latitude != null">latitude,</if>
|
||||
<if test="valid != null">valid,</if>
|
||||
<if test="rang != null">rang,</if>
|
||||
<if test="state != null">state,</if>
|
||||
<if test="remark != null">remark,</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="comId != null">#{comId},</if>
|
||||
<if test="projectId != null">#{projectId},</if>
|
||||
<if test="title != null and title != ''">#{title},</if>
|
||||
<if test="starteDate != null">#{starteDate},</if>
|
||||
<if test="endDate != null">#{endDate},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="longitude != null">#{longitude},</if>
|
||||
<if test="latitude != null">#{latitude},</if>
|
||||
<if test="valid != null">#{valid},</if>
|
||||
<if test="rang != null">#{rang},</if>
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="remark != null">#{remark},</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="updateProMobileAttendanceConfig" parameterType="ProMobileAttendanceConfig">
|
||||
update pro_mobile_attendance_config
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="comId != null">com_id = #{comId},</if>
|
||||
<if test="projectId != null">project_id = #{projectId},</if>
|
||||
<if test="title != null and title != ''">title = #{title},</if>
|
||||
<if test="starteDate != null">starte_date = #{starteDate},</if>
|
||||
<if test="endDate != null">end_date = #{endDate},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="longitude != null">longitude = #{longitude},</if>
|
||||
<if test="latitude != null">latitude = #{latitude},</if>
|
||||
<if test="valid != null">valid = #{valid},</if>
|
||||
<if test="rang != null">rang = #{rang},</if>
|
||||
<if test="state != null">state = #{state},</if>
|
||||
<if test="remark != null">remark = #{remark},</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="deleteProMobileAttendanceConfigById" parameterType="Long">
|
||||
delete from pro_mobile_attendance_config where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteProMobileAttendanceConfigByIds" parameterType="String">
|
||||
delete from pro_mobile_attendance_config where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
|
@ -62,8 +62,8 @@
|
|||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- YanZhu Common Log -->
|
||||
|
|
|
@ -56,8 +56,8 @@
|
|||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- YanZhu Common Log -->
|
||||
|
|
|
@ -62,8 +62,8 @@
|
|||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- YanZhu Common Log -->
|
||||
|
|
|
@ -61,8 +61,8 @@
|
|||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- YanZhu Common Log -->
|
||||
|
|
|
@ -0,0 +1,107 @@
|
|||
package com.yanzhu.manage.controller.remoteAttendance;
|
||||
|
||||
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.ProMobileAttendanceConfig;
|
||||
import com.yanzhu.manage.service.IProMobileAttendanceConfigService;
|
||||
|
||||
/**
|
||||
* 移动端考勤配置Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-08-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/mobileAttendConfig")
|
||||
public class ProMobileAttendanceConfigController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IProMobileAttendanceConfigService proMobileAttendanceConfigService;
|
||||
|
||||
/**
|
||||
* 查询移动端考勤配置列表
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendConfig:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ProMobileAttendanceConfig proMobileAttendanceConfig)
|
||||
{
|
||||
startPage();
|
||||
List<ProMobileAttendanceConfig> list = proMobileAttendanceConfigService.selectProMobileAttendanceConfigList(proMobileAttendanceConfig);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出移动端考勤配置列表
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendConfig:export")
|
||||
@Log(title = "移动端考勤配置", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ProMobileAttendanceConfig proMobileAttendanceConfig)
|
||||
{
|
||||
List<ProMobileAttendanceConfig> list = proMobileAttendanceConfigService.selectProMobileAttendanceConfigList(proMobileAttendanceConfig);
|
||||
ExcelUtil<ProMobileAttendanceConfig> util = new ExcelUtil<ProMobileAttendanceConfig>(ProMobileAttendanceConfig.class);
|
||||
util.exportExcel(response, list, "移动端考勤配置数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取移动端考勤配置详细信息
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendConfig:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(proMobileAttendanceConfigService.selectProMobileAttendanceConfigById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增移动端考勤配置
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendConfig:add")
|
||||
@Log(title = "移动端考勤配置", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ProMobileAttendanceConfig proMobileAttendanceConfig)
|
||||
{
|
||||
return toAjax(proMobileAttendanceConfigService.insertProMobileAttendanceConfig(proMobileAttendanceConfig));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改移动端考勤配置
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendConfig:edit")
|
||||
@Log(title = "移动端考勤配置", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ProMobileAttendanceConfig proMobileAttendanceConfig)
|
||||
{
|
||||
return toAjax(proMobileAttendanceConfigService.updateProMobileAttendanceConfig(proMobileAttendanceConfig));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除移动端考勤配置
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendConfig:remove")
|
||||
@Log(title = "移动端考勤配置", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(proMobileAttendanceConfigService.deleteProMobileAttendanceConfigByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,108 @@
|
|||
package com.yanzhu.manage.controller.remoteAttendance;
|
||||
|
||||
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.ProMobileAttendanceConfigGroup;
|
||||
import com.yanzhu.manage.service.IProMobileAttendanceConfigGroupService;
|
||||
|
||||
|
||||
/**
|
||||
* 移动端考勤配置分组信息Controller
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-08-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/mobileAttendanceConfigGroup")
|
||||
public class ProMobileAttendanceConfigGroupController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IProMobileAttendanceConfigGroupService proMobileAttendanceConfigGroupService;
|
||||
|
||||
/**
|
||||
* 查询移动端考勤配置分组信息列表
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendanceConfigGroup:list")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup)
|
||||
{
|
||||
startPage();
|
||||
List<ProMobileAttendanceConfigGroup> list = proMobileAttendanceConfigGroupService.selectProMobileAttendanceConfigGroupList(proMobileAttendanceConfigGroup);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出移动端考勤配置分组信息列表
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendanceConfigGroup:export")
|
||||
@Log(title = "移动端考勤配置分组信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup)
|
||||
{
|
||||
List<ProMobileAttendanceConfigGroup> list = proMobileAttendanceConfigGroupService.selectProMobileAttendanceConfigGroupList(proMobileAttendanceConfigGroup);
|
||||
ExcelUtil<ProMobileAttendanceConfigGroup> util = new ExcelUtil<ProMobileAttendanceConfigGroup>(ProMobileAttendanceConfigGroup.class);
|
||||
util.exportExcel(response, list, "移动端考勤配置分组信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取移动端考勤配置分组信息详细信息
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendanceConfigGroup:query")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(proMobileAttendanceConfigGroupService.selectProMobileAttendanceConfigGroupById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增移动端考勤配置分组信息
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendanceConfigGroup:add")
|
||||
@Log(title = "移动端考勤配置分组信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup)
|
||||
{
|
||||
return toAjax(proMobileAttendanceConfigGroupService.insertProMobileAttendanceConfigGroup(proMobileAttendanceConfigGroup));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改移动端考勤配置分组信息
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendanceConfigGroup:edit")
|
||||
@Log(title = "移动端考勤配置分组信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup)
|
||||
{
|
||||
return toAjax(proMobileAttendanceConfigGroupService.updateProMobileAttendanceConfigGroup(proMobileAttendanceConfigGroup));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除移动端考勤配置分组信息
|
||||
*/
|
||||
@RequiresPermissions("manage:mobileAttendanceConfigGroup:remove")
|
||||
@Log(title = "移动端考勤配置分组信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(proMobileAttendanceConfigGroupService.deleteProMobileAttendanceConfigGroupByIds(ids));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.ProMobileAttendanceConfigGroup;
|
||||
|
||||
/**
|
||||
* 移动端考勤配置分组信息Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-08-29
|
||||
*/
|
||||
public interface IProMobileAttendanceConfigGroupService
|
||||
{
|
||||
/**
|
||||
* 查询移动端考勤配置分组信息
|
||||
*
|
||||
* @param id 移动端考勤配置分组信息主键
|
||||
* @return 移动端考勤配置分组信息
|
||||
*/
|
||||
public ProMobileAttendanceConfigGroup selectProMobileAttendanceConfigGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询移动端考勤配置分组信息列表
|
||||
*
|
||||
* @param proMobileAttendanceConfigGroup 移动端考勤配置分组信息
|
||||
* @return 移动端考勤配置分组信息集合
|
||||
*/
|
||||
public List<ProMobileAttendanceConfigGroup> selectProMobileAttendanceConfigGroupList(ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup);
|
||||
|
||||
/**
|
||||
* 新增移动端考勤配置分组信息
|
||||
*
|
||||
* @param proMobileAttendanceConfigGroup 移动端考勤配置分组信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProMobileAttendanceConfigGroup(ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup);
|
||||
|
||||
/**
|
||||
* 修改移动端考勤配置分组信息
|
||||
*
|
||||
* @param proMobileAttendanceConfigGroup 移动端考勤配置分组信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProMobileAttendanceConfigGroup(ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup);
|
||||
|
||||
/**
|
||||
* 批量删除移动端考勤配置分组信息
|
||||
*
|
||||
* @param ids 需要删除的移动端考勤配置分组信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMobileAttendanceConfigGroupByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除移动端考勤配置分组信息信息
|
||||
*
|
||||
* @param id 移动端考勤配置分组信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMobileAttendanceConfigGroupById(Long id);
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.yanzhu.manage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.yanzhu.manage.domain.ProMobileAttendanceConfig;
|
||||
|
||||
/**
|
||||
* 移动端考勤配置Service接口
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-08-29
|
||||
*/
|
||||
public interface IProMobileAttendanceConfigService
|
||||
{
|
||||
/**
|
||||
* 查询移动端考勤配置
|
||||
*
|
||||
* @param id 移动端考勤配置主键
|
||||
* @return 移动端考勤配置
|
||||
*/
|
||||
public ProMobileAttendanceConfig selectProMobileAttendanceConfigById(Long id);
|
||||
|
||||
/**
|
||||
* 查询移动端考勤配置列表
|
||||
*
|
||||
* @param proMobileAttendanceConfig 移动端考勤配置
|
||||
* @return 移动端考勤配置集合
|
||||
*/
|
||||
public List<ProMobileAttendanceConfig> selectProMobileAttendanceConfigList(ProMobileAttendanceConfig proMobileAttendanceConfig);
|
||||
|
||||
/**
|
||||
* 新增移动端考勤配置
|
||||
*
|
||||
* @param proMobileAttendanceConfig 移动端考勤配置
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertProMobileAttendanceConfig(ProMobileAttendanceConfig proMobileAttendanceConfig);
|
||||
|
||||
/**
|
||||
* 修改移动端考勤配置
|
||||
*
|
||||
* @param proMobileAttendanceConfig 移动端考勤配置
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateProMobileAttendanceConfig(ProMobileAttendanceConfig proMobileAttendanceConfig);
|
||||
|
||||
/**
|
||||
* 批量删除移动端考勤配置
|
||||
*
|
||||
* @param ids 需要删除的移动端考勤配置主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMobileAttendanceConfigByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除移动端考勤配置信息
|
||||
*
|
||||
* @param id 移动端考勤配置主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteProMobileAttendanceConfigById(Long id);
|
||||
}
|
|
@ -0,0 +1,93 @@
|
|||
package com.yanzhu.manage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.yanzhu.manage.mapper.ProMobileAttendanceConfigGroupMapper;
|
||||
import com.yanzhu.manage.domain.ProMobileAttendanceConfigGroup;
|
||||
import com.yanzhu.manage.service.IProMobileAttendanceConfigGroupService;
|
||||
|
||||
/**
|
||||
* 移动端考勤配置分组信息Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-08-29
|
||||
*/
|
||||
@Service
|
||||
public class ProMobileAttendanceConfigGroupServiceImpl implements IProMobileAttendanceConfigGroupService
|
||||
{
|
||||
@Autowired
|
||||
private ProMobileAttendanceConfigGroupMapper proMobileAttendanceConfigGroupMapper;
|
||||
|
||||
/**
|
||||
* 查询移动端考勤配置分组信息
|
||||
*
|
||||
* @param id 移动端考勤配置分组信息主键
|
||||
* @return 移动端考勤配置分组信息
|
||||
*/
|
||||
@Override
|
||||
public ProMobileAttendanceConfigGroup selectProMobileAttendanceConfigGroupById(Long id)
|
||||
{
|
||||
return proMobileAttendanceConfigGroupMapper.selectProMobileAttendanceConfigGroupById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询移动端考勤配置分组信息列表
|
||||
*
|
||||
* @param proMobileAttendanceConfigGroup 移动端考勤配置分组信息
|
||||
* @return 移动端考勤配置分组信息
|
||||
*/
|
||||
@Override
|
||||
public List<ProMobileAttendanceConfigGroup> selectProMobileAttendanceConfigGroupList(ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup)
|
||||
{
|
||||
return proMobileAttendanceConfigGroupMapper.selectProMobileAttendanceConfigGroupList(proMobileAttendanceConfigGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增移动端考勤配置分组信息
|
||||
*
|
||||
* @param proMobileAttendanceConfigGroup 移动端考勤配置分组信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertProMobileAttendanceConfigGroup(ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup)
|
||||
{
|
||||
return proMobileAttendanceConfigGroupMapper.insertProMobileAttendanceConfigGroup(proMobileAttendanceConfigGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改移动端考勤配置分组信息
|
||||
*
|
||||
* @param proMobileAttendanceConfigGroup 移动端考勤配置分组信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateProMobileAttendanceConfigGroup(ProMobileAttendanceConfigGroup proMobileAttendanceConfigGroup)
|
||||
{
|
||||
return proMobileAttendanceConfigGroupMapper.updateProMobileAttendanceConfigGroup(proMobileAttendanceConfigGroup);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除移动端考勤配置分组信息
|
||||
*
|
||||
* @param ids 需要删除的移动端考勤配置分组信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProMobileAttendanceConfigGroupByIds(Long[] ids)
|
||||
{
|
||||
return proMobileAttendanceConfigGroupMapper.deleteProMobileAttendanceConfigGroupByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除移动端考勤配置分组信息信息
|
||||
*
|
||||
* @param id 移动端考勤配置分组信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProMobileAttendanceConfigGroupById(Long id)
|
||||
{
|
||||
return proMobileAttendanceConfigGroupMapper.deleteProMobileAttendanceConfigGroupById(id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,100 @@
|
|||
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.ProMobileAttendanceConfigMapper;
|
||||
import com.yanzhu.manage.domain.ProMobileAttendanceConfig;
|
||||
import com.yanzhu.manage.service.IProMobileAttendanceConfigService;
|
||||
|
||||
/**
|
||||
* 移动端考勤配置Service业务层处理
|
||||
*
|
||||
* @author yanzhu
|
||||
* @date 2025-08-29
|
||||
*/
|
||||
@Service
|
||||
public class ProMobileAttendanceConfigServiceImpl implements IProMobileAttendanceConfigService
|
||||
{
|
||||
@Autowired
|
||||
private ProMobileAttendanceConfigMapper proMobileAttendanceConfigMapper;
|
||||
|
||||
/**
|
||||
* 查询移动端考勤配置
|
||||
*
|
||||
* @param id 移动端考勤配置主键
|
||||
* @return 移动端考勤配置
|
||||
*/
|
||||
@Override
|
||||
public ProMobileAttendanceConfig selectProMobileAttendanceConfigById(Long id)
|
||||
{
|
||||
return proMobileAttendanceConfigMapper.selectProMobileAttendanceConfigById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询移动端考勤配置列表
|
||||
*
|
||||
* @param proMobileAttendanceConfig 移动端考勤配置
|
||||
* @return 移动端考勤配置
|
||||
*/
|
||||
@Override
|
||||
public List<ProMobileAttendanceConfig> selectProMobileAttendanceConfigList(ProMobileAttendanceConfig proMobileAttendanceConfig)
|
||||
{
|
||||
return proMobileAttendanceConfigMapper.selectProMobileAttendanceConfigList(proMobileAttendanceConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增移动端考勤配置
|
||||
*
|
||||
* @param proMobileAttendanceConfig 移动端考勤配置
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertProMobileAttendanceConfig(ProMobileAttendanceConfig proMobileAttendanceConfig)
|
||||
{
|
||||
proMobileAttendanceConfig.setCreateBy(SecurityContextHolder.getUserName());
|
||||
proMobileAttendanceConfig.setCreateTime(DateUtils.getNowDate());
|
||||
return proMobileAttendanceConfigMapper.insertProMobileAttendanceConfig(proMobileAttendanceConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改移动端考勤配置
|
||||
*
|
||||
* @param proMobileAttendanceConfig 移动端考勤配置
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateProMobileAttendanceConfig(ProMobileAttendanceConfig proMobileAttendanceConfig)
|
||||
{
|
||||
proMobileAttendanceConfig.setUpdateBy(SecurityContextHolder.getUserName());
|
||||
proMobileAttendanceConfig.setUpdateTime(DateUtils.getNowDate());
|
||||
return proMobileAttendanceConfigMapper.updateProMobileAttendanceConfig(proMobileAttendanceConfig);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除移动端考勤配置
|
||||
*
|
||||
* @param ids 需要删除的移动端考勤配置主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProMobileAttendanceConfigByIds(Long[] ids)
|
||||
{
|
||||
return proMobileAttendanceConfigMapper.deleteProMobileAttendanceConfigByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除移动端考勤配置信息
|
||||
*
|
||||
* @param id 移动端考勤配置主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteProMobileAttendanceConfigById(Long id)
|
||||
{
|
||||
return proMobileAttendanceConfigMapper.deleteProMobileAttendanceConfigById(id);
|
||||
}
|
||||
}
|
|
@ -57,8 +57,8 @@
|
|||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- YanZhu Common DataSource-->
|
||||
|
|
|
@ -49,8 +49,8 @@
|
|||
|
||||
<!-- Mysql Connector -->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- YanZhu Common Log -->
|
||||
|
|
Loading…
Reference in New Issue