Merge remote-tracking branch 'origin/main'
# Conflicts: # bonus-modules/bonus-base/src/main/java/com/bonus/base/basic/service/impl/TtPersonnelBlackServiceImpl.java
This commit is contained in:
commit
8874fb18ca
|
|
@ -5,6 +5,7 @@ import com.bonus.base.basic.domain.TtSysUserReqVo;
|
|||
import com.bonus.base.basic.domain.vo.TtPersonnelBlackVo;
|
||||
import com.bonus.base.basic.domain.vo.TtSysUserVo;
|
||||
import com.bonus.base.basic.service.TtPersonnelBlackService;
|
||||
import com.bonus.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.common.core.web.controller.BaseController;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.common.core.web.page.TableDataInfo;
|
||||
|
|
@ -16,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
|
@ -37,6 +39,7 @@ public class TtPersonnelBlackController extends BaseController {
|
|||
List<TtPersonnelBlackVo> ttPersonnelBlackList = ttPersonnelBlackService.getTtPersonnelBlackList(ttPersonnelBlackReqVo);
|
||||
return getDataTable(ttPersonnelBlackList);
|
||||
}catch (Exception e){
|
||||
log.info("查询失败",e.getMessage());
|
||||
return getDataTableError(null);
|
||||
}
|
||||
}
|
||||
|
|
@ -49,7 +52,59 @@ public class TtPersonnelBlackController extends BaseController {
|
|||
TtPersonnelBlackVo ttPersonnelBlack = ttPersonnelBlackService.getTtPersonnelBlackById(ttPersonnelBlackReqVo);
|
||||
return success(ttPersonnelBlack);
|
||||
}catch (Exception e){
|
||||
log.info("查询失败",e.getMessage());
|
||||
return error("获取详情失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "新增人员黑名单")
|
||||
@PostMapping("/addTtPersonnelBlack")
|
||||
public AjaxResult addTtPersonnelBlack(@RequestBody TtPersonnelBlackVo ttPersonnelBlackVo) {
|
||||
try {
|
||||
|
||||
ttPersonnelBlackService.addTtPersonnelBlack(ttPersonnelBlackVo);
|
||||
return success("新增成功");
|
||||
}catch (Exception e){
|
||||
log.info("新增失败",e.getMessage());
|
||||
return error("新增失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "修改人员黑名单")
|
||||
@PostMapping("/updateTtPersonnelBlack")
|
||||
public AjaxResult updateTtPersonnelBlack(@RequestBody TtPersonnelBlackVo ttPersonnelBlackVo) {
|
||||
try {
|
||||
|
||||
ttPersonnelBlackService.updateTtPersonnelBlack(ttPersonnelBlackVo);
|
||||
return success("修改成功");
|
||||
}catch (Exception e){
|
||||
log.info("修改失败",e.getMessage());
|
||||
return error("修改失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "删除人员黑名单")
|
||||
@PostMapping("/delTtPersonnelBlack")
|
||||
public AjaxResult delTtPersonnelBlack(@RequestBody TtPersonnelBlackVo ttPersonnelBlackVo) {
|
||||
try {
|
||||
|
||||
ttPersonnelBlackService.delTtPersonnelBlack(ttPersonnelBlackVo);
|
||||
return success("删除成功");
|
||||
}catch (Exception e){
|
||||
log.info("删除失败",e.getMessage());
|
||||
return error("删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "人员黑名单导出")
|
||||
@PostMapping("/ttPersonnelBlackExport")
|
||||
public void ttPersonnelBlackExport(HttpServletResponse response, @RequestBody TtPersonnelBlackReqVo ttPersonnelBlackReqVo) {
|
||||
try {
|
||||
List<TtPersonnelBlackVo> ttPersonnelBlackList = ttPersonnelBlackService.getTtPersonnelBlackList(ttPersonnelBlackReqVo);
|
||||
ExcelUtil<TtPersonnelBlackVo> util = new ExcelUtil<TtPersonnelBlackVo>(TtPersonnelBlackVo.class);
|
||||
util.exportExcel(response, ttPersonnelBlackList, "重要事项及宣传照片");
|
||||
}catch (Exception e){
|
||||
log.info("导出失败",e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
package com.bonus.base.basic.controller;
|
||||
|
||||
|
||||
|
||||
import com.bonus.base.basic.domain.TtSysTeamReqVo;
|
||||
import com.bonus.base.basic.domain.vo.TtSysTeamVo;
|
||||
import com.bonus.base.basic.service.TtSysTeamService;
|
||||
import com.bonus.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.common.core.web.controller.BaseController;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.common.core.web.page.TableDataInfo;
|
||||
|
|
@ -12,6 +14,7 @@ import lombok.extern.slf4j.Slf4j;
|
|||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
|
@ -84,5 +87,15 @@ public class TtSysTeamController extends BaseController {
|
|||
return error("解散班组失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "班组导出")
|
||||
@PostMapping("/ttSysTeamExport")
|
||||
public void ttSysTeamExport(HttpServletResponse response, @RequestBody TtSysTeamReqVo ttSysTeamReqVo) {
|
||||
try {
|
||||
List<TtSysTeamVo> ttSysTeamVoList = ttSysTeamService.getTtSysTeamList(ttSysTeamReqVo);
|
||||
ExcelUtil<TtSysTeamVo> util = new ExcelUtil<TtSysTeamVo>(TtSysTeamVo.class);
|
||||
util.exportExcel(response, ttSysTeamVoList, "班组");
|
||||
}catch (Exception e){
|
||||
log.info("导出失败",e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
package com.bonus.base.basic.controller;
|
||||
|
||||
|
||||
import com.bonus.base.basic.domain.TtSysTeamReqVo;
|
||||
import com.bonus.base.basic.domain.TtSysUserReqVo;
|
||||
import com.bonus.base.basic.domain.vo.TtSysTeamVo;
|
||||
import com.bonus.base.basic.domain.vo.TtSysUserVo;
|
||||
import com.bonus.base.basic.service.TtSysUserService;
|
||||
import com.bonus.common.core.utils.poi.ExcelUtil;
|
||||
import com.bonus.common.core.web.controller.BaseController;
|
||||
import com.bonus.common.core.web.domain.AjaxResult;
|
||||
import com.bonus.common.core.web.page.TableDataInfo;
|
||||
|
|
@ -16,6 +18,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
|
|
@ -96,4 +99,16 @@ public class TtSysUserController extends BaseController {
|
|||
return error("删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "人员信息导出")
|
||||
@PostMapping("/ttSysUserExport")
|
||||
public void ttSysUserExport(HttpServletResponse response, @RequestBody TtSysUserReqVo ttSysUserReqVo) {
|
||||
try {
|
||||
List<TtSysUserVo> ttSysUserVoList = ttSysUserService.getTtSysUserList(ttSysUserReqVo);
|
||||
ExcelUtil<TtSysUserVo> util = new ExcelUtil<TtSysUserVo>(TtSysUserVo.class);
|
||||
util.exportExcel(response, ttSysUserVoList, "人员信息");
|
||||
}catch (Exception e){
|
||||
log.info("导出失败",e.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,13 +80,13 @@ public class DeviceVo {
|
|||
* 创建时间
|
||||
*/
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date createTime;
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private Date updateTime;
|
||||
/**
|
||||
* 备注
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.bonus.base.basic.domain.vo;
|
|||
|
||||
|
||||
import com.bonus.base.basic.domain.BmFileInfo;
|
||||
import com.bonus.common.core.annotation.Excel;
|
||||
import jdk.internal.dynalink.linker.LinkerServices;
|
||||
import lombok.Data;
|
||||
|
||||
|
|
@ -18,11 +19,13 @@ public class TtPersonnelBlackVo {
|
|||
/**
|
||||
* 姓名
|
||||
*/
|
||||
@Excel(name = "姓名", sort = 1)
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 身份证号
|
||||
*/
|
||||
@Excel(name = "身份证号", sort = 2)
|
||||
private String idCode;
|
||||
|
||||
/**
|
||||
|
|
@ -33,16 +36,19 @@ public class TtPersonnelBlackVo {
|
|||
/**
|
||||
* 岗位
|
||||
*/
|
||||
@Excel(name = "岗位", sort = 3)
|
||||
private String post;
|
||||
|
||||
/**
|
||||
* 事件
|
||||
*/
|
||||
@Excel(name = "事件", sort = 4)
|
||||
private String event;
|
||||
|
||||
/**
|
||||
* 起止时间
|
||||
*/
|
||||
@Excel(name = "起止时间", sort = 5)
|
||||
private String startAndEndTime;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.base.basic.domain.vo;
|
||||
|
||||
import com.bonus.base.basic.domain.vo.TtSysUserVo;
|
||||
import com.bonus.common.core.annotation.Excel;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
|
@ -16,6 +17,7 @@ public class TtSysTeamVo {
|
|||
/**
|
||||
*班组名称
|
||||
*/
|
||||
@Excel(name = "班组名称", sort = 1)
|
||||
private String teamName;
|
||||
|
||||
/**
|
||||
|
|
@ -31,6 +33,7 @@ public class TtSysTeamVo {
|
|||
/**
|
||||
*参建单位
|
||||
*/
|
||||
@Excel(name = "参建单位", sort = 2)
|
||||
private String unitName;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.bonus.base.basic.domain.vo;
|
||||
|
||||
import com.bonus.common.core.annotation.Excel;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
|
@ -16,26 +17,31 @@ public class TtSysUserVo {
|
|||
/**
|
||||
*用户名称
|
||||
*/
|
||||
@Excel(name = "用户名称", sort = 1)
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
*手机号
|
||||
*/
|
||||
@Excel(name = "手机号", sort = 2)
|
||||
private String userPhone;
|
||||
|
||||
/**
|
||||
*身份证
|
||||
*/
|
||||
@Excel(name = "身份证", sort = 3)
|
||||
private String idCar;
|
||||
|
||||
/**
|
||||
*参建单位
|
||||
*/
|
||||
@Excel(name = "参建单位", sort = 4)
|
||||
private String unitId;
|
||||
|
||||
/**
|
||||
*班组
|
||||
*/
|
||||
@Excel(name = "班组", sort = 5)
|
||||
private String teamId;
|
||||
|
||||
/**
|
||||
|
|
@ -56,11 +62,13 @@ public class TtSysUserVo {
|
|||
/**
|
||||
*出生日期
|
||||
*/
|
||||
@Excel(name = "出生日期", sort = 6)
|
||||
private String birthday;
|
||||
|
||||
/**
|
||||
*性别
|
||||
*/
|
||||
@Excel(name = "性别", sort = 7)
|
||||
private String sex;
|
||||
|
||||
/**
|
||||
|
|
@ -71,21 +79,25 @@ public class TtSysUserVo {
|
|||
/**
|
||||
*地址
|
||||
*/
|
||||
@Excel(name = "地址", sort = 8)
|
||||
private String address;
|
||||
|
||||
/**
|
||||
*发证机关
|
||||
*/
|
||||
@Excel(name = "发证机关", sort = 9)
|
||||
private String issAuth;
|
||||
|
||||
/**
|
||||
*有效开始日期
|
||||
*/
|
||||
@Excel(name = "有效开始日期", sort = 10)
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
*有效结束日期
|
||||
*/
|
||||
@Excel(name = "有效结束日期", sort = 11)
|
||||
private String endTime;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -44,25 +44,25 @@ public class UnitVo {
|
|||
/**
|
||||
* 联系人
|
||||
*/
|
||||
@NotBlank(message = "联系人不能为空", groups = {Add.class, Edit.class})
|
||||
// @NotBlank(message = "联系人不能为空", groups = {Add.class, Edit.class})
|
||||
@Length(max = 32, message = "联系人字符长度不能超过32", groups = {Add.class, Edit.class})
|
||||
private String unitUser;
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
@NotBlank(message = "联系电话不能为空", groups = {Add.class, Edit.class})
|
||||
// @NotBlank(message = "联系电话不能为空", groups = {Add.class, Edit.class})
|
||||
@Pattern(regexp = "^1[3-9]\\d{9}$", message = "联系电话格式不正确", groups = {Add.class, Edit.class})
|
||||
private String unitPhone;
|
||||
/**
|
||||
* 法人姓名
|
||||
*/
|
||||
@NotBlank(message = "法人姓名不能为空", groups = {Add.class, Edit.class})
|
||||
// @NotBlank(message = "法人姓名不能为空", groups = {Add.class, Edit.class})
|
||||
@Length(max = 32, message = "法人姓名字符长度不能超过32", groups = {Add.class, Edit.class})
|
||||
private String suffUser;
|
||||
/**
|
||||
* 法人手机号
|
||||
*/
|
||||
@NotBlank(message = "法人手机号不能为空", groups = {Add.class, Edit.class})
|
||||
// @NotBlank(message = "法人手机号不能为空", groups = {Add.class, Edit.class})
|
||||
@Pattern(regexp = "^1[3-9]\\d{9}$", message = "法人手机号格式不正确", groups = {Add.class, Edit.class})
|
||||
private String suffPhone;
|
||||
/**
|
||||
|
|
@ -78,7 +78,7 @@ public class UnitVo {
|
|||
/**
|
||||
* 公司成立日期
|
||||
*/
|
||||
@NotBlank(message = "公司成立日期不能为空", groups = {Add.class, Edit.class})
|
||||
// @NotBlank(message = "公司成立日期不能为空", groups = {Add.class, Edit.class})
|
||||
private String createDay;
|
||||
/**
|
||||
* 注册资本
|
||||
|
|
|
|||
|
|
@ -7,4 +7,8 @@ import java.util.List;
|
|||
|
||||
public interface TtPersonnelBlackMapper {
|
||||
List<TtPersonnelBlackVo> getTtPersonnelBlackList(TtPersonnelBlackReqVo ttPersonnelBlackReqVo);
|
||||
|
||||
void addTtPersonnelBlack(TtPersonnelBlackVo ttPersonnelBlackVo);
|
||||
|
||||
void updateTtPersonnelBlack(TtPersonnelBlackVo ttPersonnelBlackVo);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,16 +6,16 @@ import java.util.List;
|
|||
/**
|
||||
* 附件
|
||||
Service接口
|
||||
*
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-26
|
||||
*/
|
||||
public interface IBmFileInfoService
|
||||
public interface IBmFileInfoService
|
||||
{
|
||||
/**
|
||||
* 查询附件
|
||||
|
||||
*
|
||||
*
|
||||
* @param id 附件
|
||||
主键
|
||||
* @return 附件
|
||||
|
|
@ -26,7 +26,7 @@ public interface IBmFileInfoService
|
|||
/**
|
||||
* 查询附件
|
||||
列表
|
||||
*
|
||||
*
|
||||
* @param bmFileInfo 附件
|
||||
|
||||
* @return 附件
|
||||
|
|
@ -37,7 +37,7 @@ public interface IBmFileInfoService
|
|||
/**
|
||||
* 新增附件
|
||||
|
||||
*
|
||||
*
|
||||
* @param bmFileInfo 附件
|
||||
|
||||
* @return 结果
|
||||
|
|
@ -49,7 +49,7 @@ public interface IBmFileInfoService
|
|||
/**
|
||||
* 修改附件
|
||||
|
||||
*
|
||||
*
|
||||
* @param bmFileInfo 附件
|
||||
|
||||
* @return 结果
|
||||
|
|
@ -59,7 +59,7 @@ public interface IBmFileInfoService
|
|||
/**
|
||||
* 批量删除附件
|
||||
|
||||
*
|
||||
*
|
||||
* @param ids 需要删除的附件
|
||||
主键集合
|
||||
* @return 结果
|
||||
|
|
@ -69,10 +69,12 @@ public interface IBmFileInfoService
|
|||
/**
|
||||
* 删除附件
|
||||
信息
|
||||
*
|
||||
*
|
||||
* @param id 附件
|
||||
主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteBmFileInfoById(Long id);
|
||||
|
||||
int deleteBmFileInfoByBizInfo(BmFileInfo bmFileInfo);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,36 @@ import com.bonus.base.basic.domain.vo.TtPersonnelBlackVo;
|
|||
import java.util.List;
|
||||
|
||||
public interface TtPersonnelBlackService {
|
||||
|
||||
/**
|
||||
* 查询人员黑名单列表
|
||||
* @param ttPersonnelBlackReqVo
|
||||
* @return
|
||||
*/
|
||||
List<TtPersonnelBlackVo> getTtPersonnelBlackList(TtPersonnelBlackReqVo ttPersonnelBlackReqVo);
|
||||
|
||||
/**
|
||||
* 查询人员黑名单详情
|
||||
* @param ttPersonnelBlackReqVo
|
||||
* @return
|
||||
*/
|
||||
TtPersonnelBlackVo getTtPersonnelBlackById(TtPersonnelBlackReqVo ttPersonnelBlackReqVo);
|
||||
|
||||
/**
|
||||
* 新增人员黑名单
|
||||
* @param ttPersonnelBlackVo
|
||||
*/
|
||||
void addTtPersonnelBlack(TtPersonnelBlackVo ttPersonnelBlackVo);
|
||||
|
||||
/**
|
||||
* 修改人员黑名单
|
||||
* @param ttPersonnelBlackVo
|
||||
*/
|
||||
void updateTtPersonnelBlack(TtPersonnelBlackVo ttPersonnelBlackVo);
|
||||
|
||||
/**
|
||||
* 删除人员黑名单
|
||||
* @param ttPersonnelBlackVo
|
||||
*/
|
||||
void delTtPersonnelBlack(TtPersonnelBlackVo ttPersonnelBlackVo);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,13 +6,35 @@ import com.bonus.base.basic.domain.vo.TtSysTeamVo;
|
|||
import java.util.List;
|
||||
|
||||
public interface TtSysTeamService {
|
||||
/**
|
||||
* 查询班组列表
|
||||
* @param ttSysTeamReqVo
|
||||
* @return
|
||||
*/
|
||||
List<TtSysTeamVo> getTtSysTeamList(TtSysTeamReqVo ttSysTeamReqVo);
|
||||
|
||||
/**
|
||||
* 新增班组信息
|
||||
* @param ttSysTeamVo
|
||||
*/
|
||||
void addTtSysTeam(TtSysTeamVo ttSysTeamVo);
|
||||
|
||||
/**
|
||||
* 获取班组详情
|
||||
* @param ttSysTeamReqVo
|
||||
* @return
|
||||
*/
|
||||
TtSysTeamVo getTtSysTeamById(TtSysTeamReqVo ttSysTeamReqVo);
|
||||
|
||||
/**
|
||||
* 修改班组信息
|
||||
* @param ttSysTeamVo
|
||||
*/
|
||||
void updateTtSysTeam(TtSysTeamVo ttSysTeamVo);
|
||||
|
||||
/**
|
||||
* 删除班组信息
|
||||
* @param ttSysTeamVo
|
||||
*/
|
||||
void deleteTtSysTeam(TtSysTeamVo ttSysTeamVo);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,21 +8,60 @@ import com.bonus.base.basic.domain.vo.TtSysUserVo;
|
|||
import java.util.List;
|
||||
|
||||
public interface TtSysUserService {
|
||||
/**
|
||||
* 获取班组下面人员信息
|
||||
* @param teamId
|
||||
* @return
|
||||
*/
|
||||
List<TtSysUserVo> getTtSysUserVoListByTeamId(String teamId);
|
||||
|
||||
/**
|
||||
* 绑定和班组的关系
|
||||
* @param ttSysUserVo
|
||||
*/
|
||||
void updateTtSysUserVoByTeam(TtSysUserVo ttSysUserVo);
|
||||
|
||||
/**
|
||||
* 删除和班组的关系
|
||||
* @param teamId
|
||||
*/
|
||||
void delTtSysUserByTeam(String teamId);
|
||||
|
||||
/**
|
||||
* 获取人员信息列表
|
||||
* @param ttSysUserReqVo
|
||||
* @return
|
||||
*/
|
||||
List<TtSysUserVo> getTtSysUserList(TtSysUserReqVo ttSysUserReqVo);
|
||||
|
||||
/**
|
||||
* 获取人员详情
|
||||
* @param ttSysUserReqVo
|
||||
* @return
|
||||
*/
|
||||
TtSysUserVo getTtSysUserById(TtSysUserReqVo ttSysUserReqVo);
|
||||
|
||||
/**
|
||||
* 新增人员信息
|
||||
* @param ttSysUserVo
|
||||
*/
|
||||
void addTtSysUser(TtSysUserVo ttSysUserVo);
|
||||
|
||||
/**
|
||||
* 修改人员信息
|
||||
* @param ttSysUserVo
|
||||
*/
|
||||
void updateTtSysUser(TtSysUserVo ttSysUserVo);
|
||||
|
||||
/**
|
||||
* 修改人员状态
|
||||
* @param ttSysUserVo
|
||||
*/
|
||||
void updateTtSysUserStatus(TtSysUserVo ttSysUserVo);
|
||||
|
||||
/**
|
||||
* 删除人员
|
||||
* @param ttSysUserVo
|
||||
*/
|
||||
void deleteTtSysUser(TtSysUserVo ttSysUserVo);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@ import java.util.List;
|
|||
/**
|
||||
* 附件
|
||||
Service业务层处理
|
||||
*
|
||||
*
|
||||
* @author xsheng
|
||||
* @date 2024-09-26
|
||||
*/
|
||||
@Service
|
||||
public class BmFileInfoServiceImpl implements IBmFileInfoService
|
||||
public class BmFileInfoServiceImpl implements IBmFileInfoService
|
||||
{
|
||||
@Autowired
|
||||
private BmFileInfoMapper bmFileInfoMapper;
|
||||
|
|
@ -24,7 +24,7 @@ public class BmFileInfoServiceImpl implements IBmFileInfoService
|
|||
/**
|
||||
* 查询附件
|
||||
|
||||
*
|
||||
*
|
||||
* @param id 附件
|
||||
主键
|
||||
* @return 附件
|
||||
|
|
@ -39,7 +39,7 @@ public class BmFileInfoServiceImpl implements IBmFileInfoService
|
|||
/**
|
||||
* 查询附件
|
||||
列表
|
||||
*
|
||||
*
|
||||
* @param bmFileInfo 附件
|
||||
|
||||
* @return 附件
|
||||
|
|
@ -54,7 +54,7 @@ public class BmFileInfoServiceImpl implements IBmFileInfoService
|
|||
/**
|
||||
* 新增附件
|
||||
|
||||
*
|
||||
*
|
||||
* @param bmFileInfo 附件
|
||||
|
||||
* @return 结果
|
||||
|
|
@ -76,7 +76,7 @@ public class BmFileInfoServiceImpl implements IBmFileInfoService
|
|||
/**
|
||||
* 修改附件
|
||||
|
||||
*
|
||||
*
|
||||
* @param bmFileInfo 附件
|
||||
|
||||
* @return 结果
|
||||
|
|
@ -90,7 +90,7 @@ public class BmFileInfoServiceImpl implements IBmFileInfoService
|
|||
/**
|
||||
* 批量删除附件
|
||||
|
||||
*
|
||||
*
|
||||
* @param ids 需要删除的附件
|
||||
主键
|
||||
* @return 结果
|
||||
|
|
@ -104,7 +104,7 @@ public class BmFileInfoServiceImpl implements IBmFileInfoService
|
|||
/**
|
||||
* 删除附件
|
||||
信息
|
||||
*
|
||||
*
|
||||
* @param id 附件
|
||||
主键
|
||||
* @return 结果
|
||||
|
|
@ -114,4 +114,9 @@ public class BmFileInfoServiceImpl implements IBmFileInfoService
|
|||
{
|
||||
return bmFileInfoMapper.deleteBmFileInfoById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteBmFileInfoByBizInfo(BmFileInfo bmFileInfo) {
|
||||
return bmFileInfoMapper.deleteBmFileInfoByBizInfo(bmFileInfo);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import com.bonus.base.basic.service.IBmFileInfoService;
|
|||
import com.bonus.base.basic.service.TtPersonnelBlackService;
|
||||
import lombok.extern.log4j.Log4j;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
|
@ -24,6 +25,11 @@ public class TtPersonnelBlackServiceImpl implements TtPersonnelBlackService {
|
|||
@Resource
|
||||
private IBmFileInfoService bmFileInfoService;
|
||||
|
||||
/**
|
||||
* 获取黑名单列表
|
||||
* @param ttPersonnelBlackReqVo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<TtPersonnelBlackVo> getTtPersonnelBlackList(TtPersonnelBlackReqVo ttPersonnelBlackReqVo) {
|
||||
//获取黑名单列表
|
||||
|
|
@ -38,6 +44,11 @@ public class TtPersonnelBlackServiceImpl implements TtPersonnelBlackService {
|
|||
return TtPersonnelBlackList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询人员黑名单详情
|
||||
* @param ttPersonnelBlackReqVo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public TtPersonnelBlackVo getTtPersonnelBlackById(TtPersonnelBlackReqVo ttPersonnelBlackReqVo) {
|
||||
TtPersonnelBlackVo ttPersonnelBlackVo = ttPersonnelBlackMapper.getTtPersonnelBlackList(ttPersonnelBlackReqVo).get(0);
|
||||
|
|
@ -47,4 +58,50 @@ public class TtPersonnelBlackServiceImpl implements TtPersonnelBlackService {
|
|||
ttPersonnelBlackVo.setBmFileInfoList(bmFileInfoList);
|
||||
return ttPersonnelBlackVo;
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存黑名单信息
|
||||
* @param ttPersonnelBlackVo
|
||||
*/
|
||||
@Override
|
||||
public void addTtPersonnelBlack(TtPersonnelBlackVo ttPersonnelBlackVo) {
|
||||
//保存黑名单信息
|
||||
ttPersonnelBlackMapper.addTtPersonnelBlack(ttPersonnelBlackVo);
|
||||
//保存附件信息
|
||||
List<BmFileInfo> bmFileInfoList = ttPersonnelBlackVo.getBmFileInfoList();
|
||||
for (BmFileInfo bmFileInfo : bmFileInfoList) {
|
||||
bmFileInfo.setTaskId(ttPersonnelBlackVo.getId());
|
||||
bmFileInfoService.insertBmFileInfo(bmFileInfo);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改黑名单信息
|
||||
* @param ttPersonnelBlackVo
|
||||
*/
|
||||
@Override
|
||||
public void updateTtPersonnelBlack(TtPersonnelBlackVo ttPersonnelBlackVo) {
|
||||
//修改黑名单信息
|
||||
ttPersonnelBlackMapper.updateTtPersonnelBlack(ttPersonnelBlackVo);
|
||||
//先删除
|
||||
BmFileInfo bmFileInfo = new BmFileInfo();
|
||||
bmFileInfo.setTaskId(ttPersonnelBlackVo.getId());
|
||||
bmFileInfoService.deleteBmFileInfoByBizInfo(bmFileInfo);
|
||||
//保存附件信息
|
||||
List<BmFileInfo> bmFileInfoList = ttPersonnelBlackVo.getBmFileInfoList();
|
||||
for (BmFileInfo bmFileInfoNew : bmFileInfoList) {
|
||||
bmFileInfoNew.setTaskId(ttPersonnelBlackVo.getId());
|
||||
bmFileInfoService.insertBmFileInfo(bmFileInfo);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除黑名单信息
|
||||
* @param ttPersonnelBlackVo
|
||||
*/
|
||||
@Override
|
||||
public void delTtPersonnelBlack(TtPersonnelBlackVo ttPersonnelBlackVo) {
|
||||
//修改黑名单信息
|
||||
ttPersonnelBlackMapper.updateTtPersonnelBlack(ttPersonnelBlackVo);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,11 @@ public class TtSysUserServiceImpl implements TtSysUserService {
|
|||
ttSysUserMapper.delTtSysUserByTeam(teamId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取人员信息列表
|
||||
* @param ttSysUserReqVo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<TtSysUserVo> getTtSysUserList(TtSysUserReqVo ttSysUserReqVo) {
|
||||
//获取热源列表
|
||||
|
|
@ -67,11 +72,20 @@ public class TtSysUserServiceImpl implements TtSysUserService {
|
|||
return ttSysUserList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取人员详情
|
||||
* @param ttSysUserReqVo
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public TtSysUserVo getTtSysUserById(TtSysUserReqVo ttSysUserReqVo) {
|
||||
return ttSysUserMapper.getTtSysUserList(ttSysUserReqVo).get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增人员信息
|
||||
* @param ttSysUserVo
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public void addTtSysUser(TtSysUserVo ttSysUserVo) {
|
||||
|
|
@ -86,12 +100,20 @@ public class TtSysUserServiceImpl implements TtSysUserService {
|
|||
ttPersonnelEntryExitService.addTtPersonnelEntryExit(ttPersonnelEntryExitVo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改人员信息
|
||||
* @param ttSysUserVo
|
||||
*/
|
||||
@Override
|
||||
public void updateTtSysUser(TtSysUserVo ttSysUserVo) {
|
||||
//修改用户信息
|
||||
ttSysUserMapper.updateTtSysUser(ttSysUserVo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改人员状态
|
||||
* @param ttSysUserVo
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
public void updateTtSysUserStatus(TtSysUserVo ttSysUserVo) {
|
||||
|
|
@ -108,6 +130,10 @@ public class TtSysUserServiceImpl implements TtSysUserService {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除人员
|
||||
* @param ttSysUserVo
|
||||
*/
|
||||
@Override
|
||||
public void deleteTtSysUser(TtSysUserVo ttSysUserVo) {
|
||||
//修改用户信息
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</if>
|
||||
AND td.is_active = '1'
|
||||
</where>
|
||||
ORDER BY td.update_time DESC
|
||||
</select>
|
||||
<!--查询数据是否重复-共用同一个puid的视频设备-->
|
||||
<select id="queryValueIsExist2" resultType="java.lang.Integer">
|
||||
|
|
|
|||
|
|
@ -3,6 +3,45 @@
|
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.bonus.base.basic.mapper.TtPersonnelBlackMapper">
|
||||
<insert id="addTtPersonnelBlack" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into tt_personnel_black
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userName != null and userName != ''">user_name,</if>
|
||||
<if test="idCode != null">id_code,</if>
|
||||
<if test="lotId != null and lotId != ''">lot_id,</if>
|
||||
<if test="post != null">post,</if>
|
||||
<if test="event != null and event != ''">event,</if>
|
||||
<if test="startAndEndTime != null and startAndEndTime != ''">start_and_end_time,</if>
|
||||
<if test="deptId != null and deptId != ''">dept_id,</if>
|
||||
create_time,
|
||||
status
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userName != null and userName != ''">#{userName},</if>
|
||||
<if test="idCode != null">#{idCode},</if>
|
||||
<if test="lotId != null and lotId != ''">#{lotId},</if>
|
||||
<if test="post != null">#{post},</if>
|
||||
<if test="event != null and event != ''">#{event},</if>
|
||||
<if test="startAndEndTime != null and startAndEndTime != ''">#{startAndEndTime},</if>
|
||||
<if test="deptId != null and deptId != ''">#{deptId},</if>
|
||||
NOW(),
|
||||
0
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateTtPersonnelBlack">
|
||||
update tt_personnel_black
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userName != null">user_name = #{userName},</if>
|
||||
<if test="idCode != null">id_code = #{idCode},</if>
|
||||
<if test="lotId != null">lot_id = #{lotId},</if>
|
||||
<if test="post != null">post = #{post},</if>
|
||||
<if test="event != null">event = #{event},</if>
|
||||
<if test="startAndEndTime != null">start_and_end_time = #{startAndEndTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="deptId != null">dept_id = #{deptId},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<select id="getTtPersonnelBlackList" resultType="com.bonus.base.basic.domain.vo.TtPersonnelBlackVo">
|
||||
select id as id,user_name as userName,id_code as idCode, lot_id as lotId, post as post,event as event,
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
team_id as teamId,car_image as carImage,post_unit as postUnit,work_type as workType,
|
||||
birthday as birthday,sex as sex,nationality as nationality,address as address,iss_auth as issAuth,
|
||||
start_time as startTime,end_time as endTime,photos as photos,status as status
|
||||
from tt_sys_user where 1=1
|
||||
from tt_sys_user where del_flag=0
|
||||
<if test="id != '' and id != null"> and id = #{id}</if>
|
||||
<if test="postUnit != '' and postUnit != null"> and post_unit = #{postUnit}</if>
|
||||
<if test="teamId != '' and teamId != null"> and team_id = #{teamId}</if>
|
||||
|
|
|
|||
|
|
@ -84,6 +84,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
INSTR(suff_phone,#{keyWord}) > 0
|
||||
)
|
||||
</if>
|
||||
<if test="unitType!=null and unitType!=''">
|
||||
AND unit_type =#{unitType}
|
||||
</if>
|
||||
AND is_active = '1'
|
||||
</where>
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue