28 changed files with 1881 additions and 0 deletions
@ -0,0 +1,196 @@ |
|||
package com.yxt.wms.apiadmin.aggregation; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.func.sysstaffinfo.*; |
|||
import com.yxt.wms.biz.func.sysstaffinfo.app.AppSysStaffQuery; |
|||
import com.yxt.wms.biz.func.sysstaffinfo.app.AppSysStaffVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysStaffinfoFeignFallback.java <br/> |
|||
* Class: com.yxt.user.biz.sysstaffinfo.SysStaffinfoRest <br/> |
|||
* Description: 人员基础信息表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "人员基础信息表") |
|||
@RestController |
|||
@RequestMapping("apiadmin/sysstaffinfo") |
|||
public class SysStaffinfoRest { |
|||
|
|||
|
|||
|
|||
@Autowired |
|||
private SysStaffinfoService sysStaffinfoService; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 员工管理的分页列表 |
|||
* |
|||
* @param pq 查询条件 |
|||
* @return |
|||
*/ |
|||
@ApiOperation("员工管理分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SysStaffinfoVo>> listPage(@RequestBody PagerQuery<SysStaffinfoQuery> pq) { |
|||
return sysStaffinfoService.pagerList(pq); |
|||
} |
|||
|
|||
/** |
|||
* 员工信息的新增保存 |
|||
* |
|||
* @param dto 数据传输对象 |
|||
* @return |
|||
*/ |
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody SysStaffinfoDto dto) { |
|||
return sysStaffinfoService.saveStaffInfo(dto); |
|||
} |
|||
|
|||
/** |
|||
* 员工信息的修改保存 |
|||
* |
|||
* @param dto 数据传输对象 |
|||
* @param sid 员工信息sid |
|||
* @return |
|||
*/ |
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@RequestBody SysStaffinfoDto dto, @RequestParam String sid) { |
|||
return sysStaffinfoService.updateStaffInfo(dto, sid); |
|||
} |
|||
|
|||
/** |
|||
* 进行删除操作,即设置员工类型为离职类型02的操作。 |
|||
* |
|||
* @param sysStaffQuery 数据传输对象 |
|||
* @return |
|||
*/ |
|||
@ApiOperation("设置离职") |
|||
@PostMapping("/del") |
|||
public ResultBean del(SysStaffQuery sysStaffQuery) { |
|||
return sysStaffinfoService.del(sysStaffQuery); |
|||
} |
|||
|
|||
@ApiOperation("员工信息编辑初始化及详情") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<SysStaffinfoDetailsVo> fetchBySid(@PathVariable("sid") String sid) { |
|||
return sysStaffinfoService.selectDetailsBySid(sid); |
|||
} |
|||
/** |
|||
* 获取集团内全部员工姓名 |
|||
* |
|||
* @param staffName 员工姓名 |
|||
* @return |
|||
*/ |
|||
@ApiOperation("获取集团内全部员工姓名") |
|||
@GetMapping("/getStaffName") |
|||
|
|||
public ResultBean<List<Map<String, String>>> getStaffName(String staffName, String deptSid) { |
|||
return sysStaffinfoService.getStaffName(staffName, deptSid); |
|||
} |
|||
/** |
|||
* 获取部门内全部员工姓名 |
|||
* |
|||
* @param staffName 员工姓名 |
|||
* @return |
|||
*/ |
|||
@ApiOperation("获取部门内全部员工姓名") |
|||
@GetMapping("/getStaffNameByDeptSid") |
|||
|
|||
public ResultBean<List<Map<String, String>>> getStaffNameByDeptSid(String staffName, String deptSid) { |
|||
return sysStaffinfoService.getStaffNameByDeptSid(staffName, deptSid); |
|||
} |
|||
|
|||
|
|||
@ApiOperation("获取App通讯录") |
|||
@ResponseBody |
|||
@GetMapping("/selectAppContactsList") |
|||
public ResultBean<List<SysStaffinfoAppContactsVo>> selectAppContactsList(String names) { |
|||
return sysStaffinfoService.selectAppContactsList(); |
|||
} |
|||
|
|||
@ApiOperation("app查看通讯录详情") |
|||
@ResponseBody |
|||
@GetMapping("/selectAppContactsVO/{staffSid}") |
|||
public ResultBean<AppContactsDetailsVo> selectAppContactsVO(String staffSid) { |
|||
|
|||
return sysStaffinfoService.selectAppContactsVO(staffSid); |
|||
} |
|||
|
|||
@ApiOperation("App通讯录搜索") |
|||
@ResponseBody |
|||
@PostMapping("/searchAppContactsList") |
|||
public ResultBean<PagerVo<SysStaffinfoAppContactsSearchVo>> searchAppContactsList(PagerQuery<SysStaffinfoQuery> pq) { |
|||
|
|||
return sysStaffinfoService.searchAppContactsList(pq); |
|||
} |
|||
|
|||
@ApiOperation("App通讯录搜索2") |
|||
@ResponseBody |
|||
@PostMapping("/searchAppContactsList2") |
|||
public ResultBean<PagerVo<SysStaffinfoAppContactsSearchVo>> searchAppContactsList2(PagerQuery<SysStaffinfoQuery> pq) { |
|||
return sysStaffinfoService.searchAppContactsList2(pq); |
|||
} |
|||
|
|||
@ApiOperation("销售订单-内部推荐人下拉框") |
|||
@ResponseBody |
|||
@GetMapping("/selectStaffList") |
|||
public ResultBean<List<PcSysStaffVo>> selectStaffList(PcSysStaffQuery pcSysStaffQuery) { |
|||
return sysStaffinfoService.selectStaffList(pcSysStaffQuery); |
|||
} |
|||
|
|||
@ApiOperation("移动端-销售订单-内部推荐人下拉框") |
|||
@ResponseBody |
|||
@PostMapping("/getUserList") |
|||
public ResultBean<PagerVo<AppSysStaffVo>> getUserList(PagerQuery<AppSysStaffQuery> pagerQuery) { |
|||
return sysStaffinfoService.getUserList(pagerQuery); |
|||
} |
|||
|
|||
@ApiOperation("存放地点变更-获取人员列表") |
|||
@ResponseBody |
|||
@GetMapping("/getGressionUserList/{userSid}") |
|||
public ResultBean<List<AppSysStaffVo>> getGressionUserList(String userSid) { |
|||
return sysStaffinfoService.getGressionUserList(userSid, ""); |
|||
} |
|||
|
|||
@ApiOperation("切换机构:存放地点变更-获取人员列表") |
|||
@ResponseBody |
|||
@GetMapping("/getGressionUserList") |
|||
public ResultBean<List<AppSysStaffVo>> getGressionUserList(String userSid, String orgPath) { |
|||
return sysStaffinfoService.getGressionUserList(userSid, orgPath); |
|||
} |
|||
|
|||
@ApiOperation("获取集团所有人员") |
|||
@ResponseBody |
|||
@GetMapping("/selectStaffLists") |
|||
public ResultBean<List<PcSysStaffVo>> selectStaffLists() { |
|||
return sysStaffinfoService.selectStaffLists(); |
|||
} |
|||
|
|||
@ApiOperation("获取集团所有在职人员") |
|||
@ResponseBody |
|||
@GetMapping("/selectStaffListss") |
|||
public ResultBean<List<PcSysStaffVo>> selectStaffListss() { |
|||
return sysStaffinfoService.selectStaffListss(); |
|||
} |
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author liuguohui |
|||
* @Date 2021/9/17 |
|||
*/ |
|||
@ApiModel(value = "App通讯录查看详情") |
|||
@Data |
|||
public class AppContactsDetailsVo implements Vo { |
|||
|
|||
// @ApiModelProperty("人员sid")
|
|||
// private String sid;
|
|||
|
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("手机号") |
|||
private String mobile; |
|||
|
|||
@ApiModelProperty("头像") |
|||
private String headImage; |
|||
|
|||
@ApiModelProperty("部门名称(路径)") |
|||
private String orgNamePath; |
|||
|
|||
@ApiModelProperty("职位") |
|||
private String position; |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/5/20 15:47 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class PcSysStaffQuery implements Query { |
|||
private static final long serialVersionUID = 1858291601540877140L; |
|||
@ApiModelProperty(value = "业务员sid",required = false) |
|||
private String staffSid; |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/5/20 15:44 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class PcSysStaffVo implements Vo { |
|||
private static final long serialVersionUID = -9042032921079833819L; |
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty("人员") |
|||
private String staffName; |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/2/15 15:22 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class SysStaffQuery implements Query { |
|||
private static final long serialVersionUID = -7345786610678948794L; |
|||
|
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
@ApiModelProperty(value = "离职日期") |
|||
@NotNull(message = "离职日期不能为空") |
|||
private Date quitDate; |
|||
@ApiModelProperty(value = "离职原因") |
|||
@NotBlank(message = "离职原因不能为空") |
|||
private String quitReason; |
|||
@ApiModelProperty(value = "员工sid") |
|||
private String sid; |
|||
} |
@ -0,0 +1,87 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysStaffinfo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysstaffinfo.SysStaffinfo <br/> |
|||
* Description: 人员基础信息表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "人员基础信息表", description = "人员基础信息表") |
|||
@TableName("sys_staffinfo") |
|||
@Data |
|||
public class SysStaffinfo extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("工号") |
|||
private String jobNumber; |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
|
|||
@ApiModelProperty(value = "性别") |
|||
private String gender; |
|||
@ApiModelProperty("身份证号") |
|||
private String idNo; |
|||
@ApiModelProperty("证件有效期") |
|||
private String idTerm; |
|||
@ApiModelProperty("生日") |
|||
private Date birthday; |
|||
@ApiModelProperty("民族") |
|||
private String national; |
|||
|
|||
@ApiModelProperty("籍贯") |
|||
private String nativePlace; |
|||
|
|||
@ApiModelProperty("住址") |
|||
private String address; |
|||
@ApiModelProperty("手机号") |
|||
private String mobile; |
|||
@ApiModelProperty("邮箱") |
|||
private String email; |
|||
|
|||
@ApiModelProperty("婚姻状况") |
|||
private String maritalStatus; |
|||
|
|||
@ApiModelProperty("员工类型(无类型、全职、兼职、实习、劳务派遣、退休返聘、劳务外包)") |
|||
private String personType; |
|||
|
|||
@ApiModelProperty("入职时间") |
|||
private Date joinCompnyDate; |
|||
@ApiModelProperty("试用期(无试用期、1个月、2个月、3个月、其他)") |
|||
private String probPeriod; |
|||
|
|||
@ApiModelProperty("计划转正日期") |
|||
private Date plannedConfirmDate; |
|||
@ApiModelProperty("实际转正日期") |
|||
private Date confirmationDate; |
|||
@ApiModelProperty("银行卡号") |
|||
private String bankCardNo; |
|||
@ApiModelProperty("开户行") |
|||
private String openBank; |
|||
@ApiModelProperty("身份证(人像面)") |
|||
private String idCardA; |
|||
@ApiModelProperty("身份证(国徽面)") |
|||
private String idCardB; |
|||
@ApiModelProperty("学历证书") |
|||
private String diploma; |
|||
@ApiModelProperty("学位证书") |
|||
private String degreeCertificate; |
|||
@ApiModelProperty("前公司离职证明") |
|||
private String leaveCertificate; |
|||
@ApiModelProperty("员工照片") |
|||
private String photo; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author liuguohui |
|||
* @Date 2021/9/24 |
|||
*/ |
|||
@ApiModel(value = "App通讯录(搜索)") |
|||
@Data |
|||
public class SysStaffinfoAppContactsSearchVo implements Vo { |
|||
|
|||
@ApiModelProperty("人员sid") |
|||
private String sid; |
|||
|
|||
@ApiModelProperty("用户头像") |
|||
private String headImage; |
|||
|
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("手机号") |
|||
private String mobile; |
|||
|
|||
@ApiModelProperty("职位") |
|||
private String position; |
|||
|
|||
@ApiModelProperty("部门名称") |
|||
private String orgName; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Description |
|||
* @Author liuguohui |
|||
* @Date 2021/9/16 |
|||
*/ |
|||
@ApiModel(value = "App通讯录") |
|||
@Data |
|||
public class SysStaffinfoAppContactsVo implements Vo { |
|||
|
|||
@ApiModelProperty("人员sid") |
|||
private String sid; |
|||
|
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
|
|||
@ApiModelProperty("手机号") |
|||
private String mobile; |
|||
|
|||
@ApiModelProperty("用户头像") |
|||
private String headImage; |
|||
|
|||
@ApiModelProperty("姓名的拼音(全)") |
|||
private String pinYinName; |
|||
|
|||
@ApiModelProperty("姓名拼音的首字母(特殊的#表示)") |
|||
private String firstPinYinLabel; |
|||
} |
@ -0,0 +1,86 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import com.yxt.wms.biz.func.sysstafforg.SysStaffOrgDetailsVo; |
|||
import com.yxt.wms.biz.func.sysuserrole.SysUserRoleVo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/2/11 16:12 |
|||
* @Description 员工信息的编辑初始化和详情返回数据 |
|||
*/ |
|||
@Data |
|||
public class SysStaffinfoDetailsVo implements Vo { |
|||
private static final long serialVersionUID = 1232171677690215067L; |
|||
|
|||
private String sid; |
|||
@ApiModelProperty("工号") |
|||
private String jobNumber; |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
|
|||
@ApiModelProperty(value = "性别") |
|||
private String gender; |
|||
@ApiModelProperty("身份证号") |
|||
private String idNo; |
|||
@ApiModelProperty("证件有效期") |
|||
private String idTerm; |
|||
@ApiModelProperty("生日") |
|||
private Date birthday; |
|||
@ApiModelProperty("民族") |
|||
private String national; |
|||
|
|||
@ApiModelProperty("籍贯") |
|||
private String nativePlace; |
|||
|
|||
@ApiModelProperty("住址") |
|||
private String address; |
|||
@ApiModelProperty("手机号") |
|||
private String mobile; |
|||
@ApiModelProperty("邮箱") |
|||
private String email; |
|||
|
|||
@ApiModelProperty("婚姻状况") |
|||
private String maritalStatus; |
|||
|
|||
@ApiModelProperty("员工类型(无类型、全职、兼职、实习、劳务派遣、退休返聘、劳务外包)") |
|||
private String personType; |
|||
|
|||
@ApiModelProperty("入职时间") |
|||
private Date joinCompnyDate; |
|||
@ApiModelProperty("试用期(无试用期、1个月、2个月、3个月、其他)") |
|||
private String probPeriod; |
|||
|
|||
@ApiModelProperty("计划转正日期") |
|||
private Date plannedConfirmDate; |
|||
@ApiModelProperty("实际转正日期") |
|||
private Date confirmationDate; |
|||
@ApiModelProperty("银行卡号") |
|||
private String bankCardNo; |
|||
@ApiModelProperty("开户行") |
|||
private String openBank; |
|||
@ApiModelProperty("身份证(人像面)") |
|||
private String idCardA; |
|||
@ApiModelProperty("身份证(国徽面)") |
|||
private String idCardB; |
|||
@ApiModelProperty("学历证书") |
|||
private String diploma; |
|||
@ApiModelProperty("学位证书") |
|||
private String degreeCertificate; |
|||
@ApiModelProperty("前公司离职证明") |
|||
private String leaveCertificate; |
|||
@ApiModelProperty("员工照片") |
|||
private String photo; |
|||
@ApiModelProperty(value = "员工部门信息") |
|||
private SysStaffOrgDetailsVo sysStaffOrg; |
|||
private List<SysUserRoleVo> sysUserRoles; |
|||
|
|||
private String accountType;//账号类型 1单位管理员,2操作员,0是平台管理员 3非登录账户
|
|||
private String userType;//用户类型:1员工、2客户、3供应商
|
|||
|
|||
} |
@ -0,0 +1,189 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import com.yxt.wms.biz.func.sysstafforg.SysStaffOrgDto; |
|||
import com.yxt.wms.biz.func.sysuserrole.SysUserRoleDto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.Pattern; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysStaffinfoDto.java <br/> |
|||
* Class: com.yxt.user.biz.sysstaffinfo.SysStaffinfoDto <br/> |
|||
* Description: 人员基础信息表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "人员基础信息表 数据传输对象", description = "人员基础信息表 数据传输对象") |
|||
@Data |
|||
public class SysStaffinfoDto implements Dto { |
|||
|
|||
private static final long serialVersionUID = 8637516813924395044L; |
|||
@ApiModelProperty(value = "姓名", required = true) |
|||
@NotBlank(message = "姓名不能为空") |
|||
private String name; |
|||
@ApiModelProperty(value = "性别key", required = true) |
|||
@NotBlank(message = "性别不能为空") |
|||
private String genderKey; |
|||
@ApiModelProperty(value = "性别", required = true) |
|||
@NotBlank(message = "性别不能为空") |
|||
private String gender; |
|||
@ApiModelProperty(value = "员工编号") |
|||
private String jobNumber; |
|||
@ApiModelProperty(value = "身份证号", required = true) |
|||
@Pattern(regexp = "^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$", message = "请输入正确的身份证号") |
|||
@NotBlank(message = "身份证号不能为空") |
|||
private String idNo; |
|||
@ApiModelProperty(value = "证件有效期", required = true) |
|||
@NotBlank(message = "证件有效期不能为空") |
|||
private String idTerm; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
@ApiModelProperty("生日") |
|||
private Date birthday; |
|||
@ApiModelProperty(value = "民族", required = true) |
|||
@NotBlank(message = "民族不能为空") |
|||
private String national; |
|||
@ApiModelProperty(value = "民族key", required = true) |
|||
@NotBlank(message = "民族不能为空") |
|||
private String nationalKey; |
|||
@ApiModelProperty(value = "籍贯", required = false) |
|||
private String nativePlace; |
|||
@ApiModelProperty(value = "省", required = false) |
|||
private String province; |
|||
@ApiModelProperty(value = "市", required = false) |
|||
private String city; |
|||
@ApiModelProperty(value = "县区", required = false) |
|||
private String county; |
|||
@ApiModelProperty(value = "省code", required = false) |
|||
private String provinceCode; |
|||
@ApiModelProperty(value = "市code", required = false) |
|||
private String cityCode; |
|||
@ApiModelProperty(value = "县区code", required = false) |
|||
private String countyCode; |
|||
@ApiModelProperty(value = "住址", required = false) |
|||
private String address; |
|||
@ApiModelProperty(value = "手机号", required = true) |
|||
// @Pattern(regexp = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|(19[1,3,5-9])|166|(147))\\d{8}$", message = "手机号码格式不正确")
|
|||
@Pattern(regexp = "^[0-9]{11}$", message = "手机号码格式不正确") |
|||
@NotBlank(message = "手机号不能为空") |
|||
private String mobile; |
|||
@ApiModelProperty(value = "邮箱", required = false) |
|||
//@Pattern(regexp = "[a-zA-Z0-9]+@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+", message = "邮箱格式不正确")
|
|||
private String email; |
|||
@ApiModelProperty(value = "紧急联系人", required = false) |
|||
private String emergencyContact; |
|||
@ApiModelProperty(value = "紧急联系电话", required = false) |
|||
private String emergencyMobile; |
|||
@ApiModelProperty(value = "政治面貌", required = false) |
|||
private String poliCode; |
|||
@ApiModelProperty(value = "政治面貌key", required = false) |
|||
private String poliCodeKey; |
|||
@ApiModelProperty(value = "婚姻状况", required = false) |
|||
private String maritalStatus; |
|||
@ApiModelProperty(value = "婚姻状况key", required = false) |
|||
private String maritalStatusKey; |
|||
@ApiModelProperty(value = "员工类型", required = true) |
|||
@NotBlank(message = "员工类型不能为空") |
|||
private String personType; |
|||
@ApiModelProperty(value = "员工类型key", required = true) |
|||
@NotBlank(message = "员工类型不能为空") |
|||
private String personTypeKey; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
@ApiModelProperty("入职时间") |
|||
private Date joinCompnyDate; |
|||
@ApiModelProperty("试用期(无试用期、1个月、2个月、3个月、其他)") |
|||
private String probPeriod; |
|||
@ApiModelProperty("试用期key") |
|||
private String probPeriodKey; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
@ApiModelProperty("计划转正日期") |
|||
private Date plannedConfirmDate; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
@ApiModelProperty("实际转正日期") |
|||
private Date confirmationDate; |
|||
@ApiModelProperty("银行卡号") |
|||
private String bankCardNo; |
|||
@ApiModelProperty("开户行") |
|||
private String openBank; |
|||
@ApiModelProperty("身份证(人像面)") |
|||
private String idCardA; |
|||
@ApiModelProperty("身份证(国徽面)") |
|||
private String idCardB; |
|||
@ApiModelProperty("学历证书") |
|||
private String diploma; |
|||
@ApiModelProperty("学位证书") |
|||
private String degreeCertificate; |
|||
@ApiModelProperty("前公司离职证明") |
|||
private String leaveCertificate; |
|||
@ApiModelProperty("员工照片") |
|||
private String photo; |
|||
@ApiModelProperty(value = "员工部门信息") |
|||
private SysStaffOrgDto sysStaffOrg; |
|||
@ApiModelProperty(value = "员工角色信息") |
|||
private List<SysUserRoleDto> sysUserRoles; |
|||
//========================================//
|
|||
@ApiModelProperty(value = "毕业院校") |
|||
private String graduate; |
|||
@ApiModelProperty(value = "学历/专业") |
|||
private String education; |
|||
private String educationKey; |
|||
@ApiModelProperty(value = "职称") |
|||
private String title; |
|||
@ApiModelProperty(value = "资格认证") |
|||
private String qualification; |
|||
@ApiModelProperty(value = "驾照类型") |
|||
private String licenseType; |
|||
@ApiModelProperty(value = "驾照类型key") |
|||
private String licenseTypeKey; |
|||
@ApiModelProperty(value = "意外险参保:1是,0否") |
|||
private Integer isHaveInsurance; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
@ApiModelProperty(value = "意外险参保时间") |
|||
private Date insuranceStartDate; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
@ApiModelProperty(value = "意外险参保终止日期") |
|||
private Date insuranceEndDate; |
|||
@ApiModelProperty(value = "意外险参保地") |
|||
private String insuranceAddr; |
|||
|
|||
@ApiModelProperty(value = "养老:1是,0否") |
|||
private Integer isHaveAged; |
|||
@ApiModelProperty(value = "医疗:1是,0否") |
|||
private Integer isHaveMedical; |
|||
@ApiModelProperty(value = "工伤:1是,0否") |
|||
private Integer isHaveInjury; |
|||
@ApiModelProperty(value = "失业:1是,0否") |
|||
private Integer isHaveUnemploy; |
|||
@ApiModelProperty(value = "社保参保地") |
|||
private String insuredPlace; |
|||
@ApiModelProperty(value = "纸质档案保管地") |
|||
private String paperPlace; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
@ApiModelProperty(value = "合同起止日期") |
|||
private Date contractStartDate; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
@ApiModelProperty(value = "合同结束日期") |
|||
private Date contractEndDate; |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
@ApiModelProperty(value = "离职日期") |
|||
private Date quitDate; |
|||
@ApiModelProperty(value = "离职原因") |
|||
private String quitReason; |
|||
private String accountType;//账号类型 1单位管理员,2操作员,0是平台管理员 3非登录账户
|
|||
private String userType;//用户类型:1员工、2客户、3供应商
|
|||
private String orgSid; |
|||
|
|||
} |
@ -0,0 +1,127 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import com.yxt.wms.biz.func.sysorganization.AppContactSysOrganizationVo; |
|||
import com.yxt.wms.biz.func.sysstaffinfo.app.AppSysStaffVo; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysStaffinfoMapper.java <br/> |
|||
* Class: com.yxt.anrui.portal.biz.sysstaffinfo.SysStaffinfoMapper <br/> |
|||
* Description: 人员基础信息表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface SysStaffinfoMapper extends BaseMapper<SysStaffinfo> { |
|||
|
|||
//@Update("update sys_staffinfo set name=#{msg} where id=#{id}")
|
|||
//IPage<SysStaffinfoVo> voPage(IPage<SysStaffinfo> page, @Param(Constants.WRAPPER) QueryWrapper<SysStaffinfo> qw);
|
|||
|
|||
List<SysStaffinfoAppContactsVo> selectAppContactsList(); |
|||
|
|||
IPage<SysStaffinfoAppContactsSearchVo> searchAppContactsPageList(IPage<SysStaffinfoQuery> page, @Param("list") List<String> list, |
|||
@Param("chnStr") String chnStr, @Param("mobileStr") String mobileStr); |
|||
|
|||
AppContactsDetailsVo selectAppContactsVO(String staffSid); |
|||
|
|||
List<AppContactSysOrganizationVo> selectContactsByOrgsid(@Param("sid") String sid); |
|||
|
|||
SysStaffinfo selectJobNumber(); |
|||
|
|||
/** |
|||
* 查询员工的手机号是否重复 |
|||
* |
|||
* @param mobile 手机号 |
|||
* @return |
|||
*/ |
|||
SysStaffinfo selectByMobile(String mobile); |
|||
|
|||
/** |
|||
* 查询是否存在该身份证号的员工 |
|||
* |
|||
* @param idNo 身份证号 |
|||
* @return |
|||
*/ |
|||
SysStaffinfo selectByIdNo(String idNo); |
|||
|
|||
/** |
|||
* 员工管理分页列表 |
|||
* |
|||
* @param page 分页 |
|||
* @param qw 查询条件 |
|||
* @return |
|||
*/ |
|||
IPage<SysStaffinfoVo> pagerList(IPage<SysStaffinfoQuery> page, @Param(Constants.WRAPPER) Wrapper<SysStaffinfoVo> qw); |
|||
|
|||
/** |
|||
* 根据员工sid和员工手机号码查询员工信息是否已存在 |
|||
* |
|||
* @param mobile 手机号 |
|||
* @param sid 员工sid |
|||
* @return |
|||
*/ |
|||
SysStaffinfo selectByMobileAndSid(@Param("mobile") String mobile, @Param("sid") String sid); |
|||
|
|||
/** |
|||
* 根据员工sid和身份证号查询员工信息是否已存在 |
|||
* |
|||
* @param idNo 身份证号 |
|||
* @param sid 员工sid |
|||
* @return |
|||
*/ |
|||
SysStaffinfo selectByIdNoAndSid(@Param("idNo") String idNo, @Param("sid") String sid); |
|||
|
|||
/** |
|||
* 根据员工sid查询员工信息 |
|||
* |
|||
* @param sid 员工sid |
|||
* @return |
|||
*/ |
|||
SysStaffinfoDetailsVo selectDetailsBySid(@Param("sid") String sid, @Param("path") String path); |
|||
|
|||
/** |
|||
* 根据员工sid更新信息 |
|||
* |
|||
* @param personType 员工类型 |
|||
* @param personTypeKey 员工类型key |
|||
* @param sid 员工sid |
|||
* @return |
|||
*/ |
|||
int updateBySid(@Param("personType") String personType, @Param("personTypeKey") String personTypeKey, |
|||
@Param("sid") String sid, @Param("date") Date date, @Param("reason") String reason); |
|||
|
|||
/** |
|||
* 查询当前分公司下的员工信息 |
|||
* |
|||
* @param orgSid 分公司sid |
|||
* @return |
|||
*/ |
|||
List<PcSysStaffVo> selectStaffList(String orgSid); |
|||
|
|||
List<Map<String, String>> getStaffName(@Param(Constants.WRAPPER) Wrapper<Map<String, Object>> qw); |
|||
|
|||
List<Map<String, String>> getStaffNameByDeptSid(@Param(Constants.WRAPPER) Wrapper<Map<String, Object>> qw); |
|||
|
|||
IPage<AppSysStaffVo> getUserList(IPage<SysStaffinfo> page, @Param(Constants.WRAPPER) QueryWrapper<AppSysStaffVo> qw, @Param("orgSid") String orgSid); |
|||
|
|||
List<AppSysStaffVo> getGressionUserList(@Param("userOrgSid")String userOrgSid); |
|||
|
|||
List<PcSysStaffVo> selectStaffLists(); |
|||
List<PcSysStaffVo> selectStaffListss(); |
|||
} |
@ -0,0 +1,398 @@ |
|||
<?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.yxt.wms.biz.func.sysstaffinfo.SysStaffinfoMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
|
|||
<select id="selectAppContactsList" parameterType="List" |
|||
resultType="com.yxt.wms.biz.func.sysstaffinfo.SysStaffinfoAppContactsVo"> |
|||
SELECT staff.sid, staff.name, staff.mobile, staff.pinYinName, staff.firstPinYinLabel, user.headImage |
|||
FROM sys_staffinfo staff |
|||
LEFT JOIN sys_user user |
|||
ON staff.sid = user.staffSid |
|||
where staff.personTypeKey != '01' |
|||
ORDER BY staff.firstPinYinLabel = '#', staff.firstPinYinLabel ASC, staff.pinYinName |
|||
</select> |
|||
|
|||
<select id="searchAppContactsPageList" |
|||
resultType="com.yxt.wms.biz.func.sysstaffinfo.SysStaffinfoAppContactsSearchVo"> |
|||
SELECT staff.sid, |
|||
staff.name, |
|||
staff.mobile, |
|||
staff.position, |
|||
user.headImage, |
|||
GROUP_CONCAT(org.orgName SEPARATOR '/') orgName |
|||
FROM sys_staffinfo staff |
|||
LEFT JOIN sys_staff_org org ON org.staffSid = staff.sid |
|||
LEFT JOIN sys_user user ON staff.sid = user.staffSid |
|||
WHERE 1 = 1 and staff.personTypeKey != '01' |
|||
<if test="mobileStr != null and mobileStr != ''"> |
|||
AND staff.mobile LIKE concat('%', #{mobileStr}, '%') |
|||
</if> |
|||
<if test="list.size > 0"> |
|||
<foreach collection="list" index="index" item="item" separator=" "> |
|||
AND staff.pinYinName LIKE concat('%', #{item}, '%') |
|||
</foreach> |
|||
</if> |
|||
<if test="chnStr != '' and chnStr != null"> |
|||
OR staff.position LIKE concat('%', #{chnStr,jdbcType=VARCHAR}, '%') |
|||
OR org.orgName LIKE concat('%', #{chnStr,jdbcType=VARCHAR}, '%') |
|||
</if> |
|||
GROUP BY staff.sid |
|||
ORDER BY staff.firstPinYinLabel = '#', staff.firstPinYinLabel ASC, staff.pinYinName |
|||
</select> |
|||
|
|||
<select id="selectAppContactsVO" resultType="com.yxt.wms.biz.func.sysstaffinfo.AppContactsDetailsVo"> |
|||
SELECT staff.name, |
|||
staff.mobile, |
|||
user.headImage, |
|||
staff.position, |
|||
GROUP_CONCAT(org.orgNamePath SEPARATOR '/') orgNamePath |
|||
FROM sys_staffinfo staff |
|||
LEFT JOIN sys_user user |
|||
ON staff.sid = user.staffSid |
|||
LEFT JOIN sys_staff_org org ON staff.sid = org.staffSid |
|||
WHERE staff.sid = #{staffSid} |
|||
GROUP BY staff.sid |
|||
</select> |
|||
|
|||
<select id="selectContactsByOrgsid" |
|||
resultType="com.yxt.wms.biz.func.sysorganization.AppContactSysOrganizationVo"> |
|||
SELECT staff.sid, |
|||
staff.name, |
|||
staff.mobile, |
|||
user.headImage, |
|||
org.orgNamePath, |
|||
staff.position, |
|||
IFNULL(NULL, '3') AS type, |
|||
IFNULL(NULL, 0) AS staffNum |
|||
FROM sys_staff_org org |
|||
INNER JOIN sys_staffinfo staff ON org.staffSid = staff.sid |
|||
LEFT JOIN sys_user user |
|||
ON staff.sid = user.staffSid |
|||
WHERE org.orgSid = #{sid} |
|||
and staff.personTypeKey != '01' |
|||
</select> |
|||
<!--根据员工类型key查询员工工号的最大号--> |
|||
<select id="selectJobNumber" resultType="com.yxt.wms.biz.func.sysstaffinfo.SysStaffinfo"> |
|||
select * |
|||
from sys_staffinfo |
|||
order by jobNumber desc |
|||
limit 1 |
|||
</select> |
|||
<!--根据手机号查询员工是否重复--> |
|||
<select id="selectByMobile" resultType="com.yxt.wms.biz.func.sysstaffinfo.SysStaffinfo"> |
|||
select * |
|||
from sys_staffinfo |
|||
where mobile = #{mobile} |
|||
</select> |
|||
<!--查询是否存在该身份证号的员工--> |
|||
<select id="selectByIdNo" resultType="com.yxt.wms.biz.func.sysstaffinfo.SysStaffinfo"> |
|||
select * |
|||
from sys_staffinfo |
|||
where idNo = #{idNo} |
|||
</select> |
|||
<!--员工管理分页列表--> |
|||
<select id="pagerList" resultType="com.yxt.wms.biz.func.sysstaffinfo.SysStaffinfoVo"> |
|||
select DISTINCT si.sid, |
|||
<!--员工编号--> |
|||
si.jobNumber, |
|||
<!--员工姓名--> |
|||
si.name, |
|||
<!--员工类型--> |
|||
si.personType, |
|||
<!--手机号--> |
|||
si.mobile, |
|||
<!--入职日期--> |
|||
DATE_FORMAT(si.joinCompnyDate, '%Y-%m-%d') AS joinCompnyDate, |
|||
<!--所在部门--> |
|||
(select GROUP_CONCAT(orgName SEPARATOR ',') orgName from sys_staff_org so where so.staffSid = si.sid) as |
|||
orgName, |
|||
<!--所在部门sid--> |
|||
(select GROUP_CONCAT(orgSid SEPARATOR ',') orgSid from sys_staff_org so where so.staffSid = si.sid) as |
|||
orgSid, |
|||
<!--岗位--> |
|||
(select GROUP_CONCAT(sp.name SEPARATOR ',') postName |
|||
from sys_staff_post ssp |
|||
left join sys_post sp on |
|||
sp.sid = |
|||
ssp.postSid |
|||
where ssp.staffSid = si.sid |
|||
group by ssp.id) as postName |
|||
from sys_staffinfo si |
|||
LEFT JOIN sys_staff_org so |
|||
ON so.staffSid = si.sid |
|||
LEFT JOIN sys_staff_post ssp |
|||
ON ssp.staffSid = si.sid |
|||
${ew.customSqlSegment} |
|||
</select> |
|||
<!--根据员工手机号和sid查询员工信息是否已存在--> |
|||
<select id="selectByMobileAndSid" resultType="com.yxt.wms.biz.func.sysstaffinfo.SysStaffinfo"> |
|||
select * |
|||
from sys_staffinfo |
|||
where mobile = #{mobile} |
|||
and sid <> #{sid} |
|||
</select> |
|||
<!--根据员工sid和身份证号查询员工信息是否已存在--> |
|||
<select id="selectByIdNoAndSid" resultType="com.yxt.wms.biz.func.sysstaffinfo.SysStaffinfo"> |
|||
select * |
|||
from sys_staffinfo |
|||
where idNo = #{idNo} |
|||
and sid <> #{sid} |
|||
</select> |
|||
<!--根据员工sid查询员工信息--> |
|||
<select id="selectDetailsBySid" resultType="com.yxt.wms.biz.func.sysstaffinfo.SysStaffinfoDetailsVo"> |
|||
select |
|||
<!--工号--> |
|||
jobNumber, |
|||
<!--姓名--> |
|||
name, |
|||
<!--性别key--> |
|||
genderKey, |
|||
<!--性别--> |
|||
gender, |
|||
<!--身份证号--> |
|||
idNo, |
|||
<!--证件有效期--> |
|||
idTerm, |
|||
<!--生日--> |
|||
DATE_FORMAT(birthday, '%Y-%m-%d') as birthday, |
|||
<!--民族--> |
|||
national, |
|||
<!--民族key--> |
|||
nationalKey, |
|||
<!--籍贯--> |
|||
nativePlace, |
|||
<!--省--> |
|||
province, |
|||
<!--市--> |
|||
city, |
|||
<!--县区--> |
|||
county, |
|||
<!--省code--> |
|||
provinceCode, |
|||
<!--市code--> |
|||
cityCode, |
|||
<!--县区code--> |
|||
countyCode, |
|||
<!--住址--> |
|||
address, |
|||
<!--手机号--> |
|||
mobile, |
|||
<!--邮箱--> |
|||
email, |
|||
<!--紧急联系人--> |
|||
emergencyContact, |
|||
<!--紧急联系电话--> |
|||
emergencyMobile, |
|||
<!--政治面貌--> |
|||
poliCode, |
|||
<!--政治面貌key--> |
|||
poliCodeKey, |
|||
<!--婚姻状况--> |
|||
maritalStatus, |
|||
<!--婚姻状况key--> |
|||
maritalStatusKey, |
|||
<!--员工类型--> |
|||
personType, |
|||
<!--员工类型key--> |
|||
personTypeKey, |
|||
<!--入职时间--> |
|||
DATE_FORMAT(joinCompnyDate, '%Y-%m-%d') as joinCompnyDate, |
|||
<!--试用期--> |
|||
probPeriod, |
|||
<!--试用期key--> |
|||
probPeriodKey, |
|||
<!--计划转正日期--> |
|||
DATE_FORMAT(plannedConfirmDate, '%Y-%m-%d') as plannedConfirmDate, |
|||
<!--实际转正日期--> |
|||
DATE_FORMAT(confirmationDate, '%Y-%m-%d') as confirmationDate, |
|||
<!--银行卡号--> |
|||
bankCardNo, |
|||
<!--开户行--> |
|||
openBank, |
|||
<!--身份证(人像面)--> |
|||
IF(idCardA = "", idCardA, CONCAT(#{path}, idCardA)) AS idCardA, |
|||
<!--NULLIF(idCardA,CONCAT(#{path}, idCardA) as idCardA),--> |
|||
<!--when idCardA is null then idCardA else concat(#{path}, idCardA) as idCardA end,--> |
|||
<!--身份证(国徽面)--> |
|||
IF(idCardB = "", idCardB, CONCAT(#{path}, idCardB)) AS idCardB, |
|||
<!--NULLIF(idCardB,concat(#{path}, idCardB) as idCardB),--> |
|||
<!--when idCardB is null then idCardB else concat(#{path}, idCardB) as idCardB end,--> |
|||
<!--学历证书--> |
|||
IF(diploma = "", diploma, CONCAT(#{path}, diploma)) AS diploma, |
|||
<!--NULLIF(CONCAT(#{path}, diploma) as diploma,diploma),--> |
|||
<!--when diploma is null then diploma else concat(#{path}, diploma) as diploma end,--> |
|||
<!--学位证书--> |
|||
IF(degreeCertificate = "", degreeCertificate, CONCAT(#{path}, degreeCertificate)) AS degreeCertificate, |
|||
<!--NULLIF(CONCAT(#{path}, degreeCertificate) as degreeCertificate,degreeCertificate),--> |
|||
<!--when degreeCertificate is null then degreeCertificate else concat(#{path}, degreeCertificate) as degreeCertificate end,--> |
|||
<!--前公司离职证明--> |
|||
IF(leaveCertificate = "", leaveCertificate, CONCAT(#{path}, leaveCertificate)) AS leaveCertificate, |
|||
<!--NULLIF(CONCAT(#{path}, leaveCertificate) as leaveCertificate,leaveCertificate),--> |
|||
<!--when leaveCertificate is null then leaveCertificate else concat(#{path}, leaveCertificate) as leaveCertificate end,--> |
|||
<!--员工照片--> |
|||
IF(photo = "", photo, CONCAT(#{path}, photo)) AS photo, |
|||
<!--NULLIF(CONCAT(#{path}, photo) as photo,photo),--> |
|||
<!--when photo is null then photo else concat(#{path}, photo) as photo end,--> |
|||
<!--毕业院校--> |
|||
graduate, |
|||
<!--学历/专业--> |
|||
education, |
|||
educationKey, |
|||
<!--职称--> |
|||
title, |
|||
<!--资格认证--> |
|||
qualification, |
|||
<!--驾照类型--> |
|||
licenseType, |
|||
<!--驾照类型key--> |
|||
licenseTypeKey, |
|||
<!--意外险参保:1是,0否--> |
|||
isHaveInsurance, |
|||
<!--意外险参保:1是,0否--> |
|||
case isHaveInsurance |
|||
when 1 then '是' |
|||
when 0 then '否' end as isHaveInsuranceValue, |
|||
<!--意外险参保时间--> |
|||
DATE_FORMAT(insuranceStartDate, '%Y-%m-%d') as insuranceStartDate, |
|||
<!--意外险参保终止日期--> |
|||
DATE_FORMAT(insuranceEndDate, '%Y-%m-%d') as insuranceEndDate, |
|||
<!--意外险参保地--> |
|||
insuranceAddr, |
|||
<!--养老:1是,0否--> |
|||
isHaveAged, |
|||
<!--养老:1是,0否--> |
|||
case isHaveAged |
|||
when 1 then '是' |
|||
when 0 then '否' end as isHaveAgedValue, |
|||
<!--医疗:1是,0否--> |
|||
isHaveMedical, |
|||
<!--医疗:1是,0否--> |
|||
case isHaveMedical |
|||
when 1 then '是' |
|||
when 0 then '否' end as isHaveMedicalValue, |
|||
<!--工伤:1是,0否--> |
|||
isHaveInjury, |
|||
<!--工伤:1是,0否--> |
|||
case isHaveInjury |
|||
when 1 then '是' |
|||
when 0 then '否' end as isHaveInjuryValue, |
|||
<!--失业:1是,0否--> |
|||
isHaveUnemploy, |
|||
<!--失业:1是,0否--> |
|||
case isHaveUnemploy |
|||
when 1 then '是' |
|||
when 0 then '否' end as isHaveUnemployValue, |
|||
<!--社保参保地--> |
|||
insuredPlace, |
|||
<!--纸质档案保管地--> |
|||
paperPlace, |
|||
<!--合同起止日期--> |
|||
DATE_FORMAT(contractStartDate, '%Y-%m-%d') as contractStartDate, |
|||
<!--合同结束日期--> |
|||
DATE_FORMAT(contractEndDate, '%Y-%m-%d') as contractEndDate, |
|||
<!--离职日期--> |
|||
DATE_FORMAT(quitDate, '%Y-%m-%d') as quitDate, |
|||
<!--离职原因--> |
|||
quitReason |
|||
from sys_staffinfo |
|||
where sid = #{sid} |
|||
</select> |
|||
|
|||
<update id="updateBySid"> |
|||
update sys_staffinfo |
|||
set personType = #{personType}, |
|||
personTypeKey = #{personTypeKey}, |
|||
quitDate = #{date}, |
|||
quitReason = #{reason} |
|||
where sid = #{sid} |
|||
</update> |
|||
<!--查询当前分公司下的员工信息--> |
|||
<select id="selectStaffList" resultType="com.yxt.wms.biz.func.sysstaffinfo.PcSysStaffVo"> |
|||
select su.sid userSid, si.name staffName |
|||
from sys_staff_org sso |
|||
left join sys_staffinfo si on sso.staffSid = si.sid |
|||
left join sys_user su on su.staffSid = si.sid |
|||
where find_in_set(#{orgSid}, replace(sso.orgSidPath, '/', ',')) |
|||
</select> |
|||
|
|||
<select id="getStaffName" resultType="java.util.Map"> |
|||
SELECT DISTINCT ss.sid, ss.name |
|||
FROM sys_staffinfo ss |
|||
LEFT JOIN sys_staff_org sso |
|||
ON ss.`sid` = sso.`staffSid` |
|||
${ew.customSqlSegment} |
|||
</select> |
|||
|
|||
<select id="getStaffNameByDeptSid" resultType="java.util.Map"> |
|||
SELECT DISTINCT ss.sid, |
|||
ss.name |
|||
FROM sys_staffinfo ss |
|||
LEFT JOIN sys_staff_org sso |
|||
ON ss.`sid` = sso.`staffSid` |
|||
${ew.customSqlSegment} |
|||
</select> |
|||
|
|||
<select id="getUserList" resultType="com.yxt.wms.biz.func.sysstaffinfo.app.AppSysStaffVo"> |
|||
select su.sid userSid, |
|||
si.name userName, |
|||
su.headImage, |
|||
si.mobile userMobile, |
|||
sso.orgName as department, |
|||
sp.name |
|||
from sys_staff_org sso |
|||
left join sys_staffinfo si on sso.staffSid = si.sid |
|||
left join sys_user su on si.sid = su.staffSid |
|||
left join sys_staff_post ssp on si.sid = ssp.staffSid |
|||
left join sys_post sp on sp.sid = ssp.postSid |
|||
<where> |
|||
${ew.sqlSegment} |
|||
and su.isAdmin is NULL |
|||
<if test="orgSid != null and orgSid != ''"> |
|||
and find_in_set(#{orgSid} |
|||
, replace (sso.orgSidPath |
|||
, '/' |
|||
, ',')) |
|||
</if> |
|||
</where> |
|||
group by su.sid |
|||
</select> |
|||
|
|||
<select id="getGressionUserList" resultType="com.yxt.wms.biz.func.sysstaffinfo.app.AppSysStaffVo"> |
|||
select su.sid as userSid, |
|||
si.name as userName, |
|||
su.headImage, |
|||
si.mobile as userMobile, |
|||
sso.orgName as department, |
|||
sp.name |
|||
from sys_staff_org sso |
|||
left join sys_staffinfo si on sso.staffSid = si.sid |
|||
left join sys_user su on si.sid = su.staffSid |
|||
left join sys_staff_post ssp on si.sid = ssp.staffSid |
|||
left join sys_post sp on sp.sid = ssp.postSid |
|||
<where> |
|||
1=1 |
|||
<if test="userOrgSid != null and userOrgSid != ''"> |
|||
and find_in_set(#{userOrgSid} |
|||
, replace(sso.orgSidPath |
|||
, '/' |
|||
, ',')) |
|||
</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectStaffLists" resultType="com.yxt.wms.biz.func.sysstaffinfo.PcSysStaffVo"> |
|||
select su.sid userSid, |
|||
si.name staffName |
|||
from sys_user su |
|||
left join sys_staffinfo si on su.staffSid = si.sid where su.isAdmin is NULL |
|||
</select> |
|||
|
|||
<select id="selectStaffListss" resultType="com.yxt.wms.biz.func.sysstaffinfo.PcSysStaffVo"> |
|||
select su.sid userSid, |
|||
si.name staffName |
|||
from sys_user su |
|||
left join sys_staffinfo si on su.staffSid = si.sid where su.isAdmin is NULL and si.personTypeKey != '01' |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,42 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysStaffinfoQuery.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysstaffinfo.SysStaffinfoQuery <br/> |
|||
* Description: 人员基础信息表 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "人员基础信息表 查询条件", description = "人员基础信息表 查询条件") |
|||
@Data |
|||
public class SysStaffinfoQuery implements Query { |
|||
|
|||
|
|||
private static final long serialVersionUID = 7101232842735165406L; |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
@ApiModelProperty("员工类型key") |
|||
private String personTypeKey; |
|||
@ApiModelProperty("手机号") |
|||
private String mobile; |
|||
@ApiModelProperty("入职开始日期") |
|||
private String joinCompnyDateStart; |
|||
@ApiModelProperty("入职结束日期") |
|||
private String joinCompnyDateEnd; |
|||
@ApiModelProperty(value = "所在部门sid") |
|||
private String orgSid; |
|||
@ApiModelProperty(value = "所在岗位sid") |
|||
private String postSid; |
|||
} |
@ -0,0 +1,137 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.func.sysstaffinfo.app.AppSysStaffQuery; |
|||
import com.yxt.wms.biz.func.sysstaffinfo.app.AppSysStaffVo; |
|||
import com.yxt.wms.feign.portal.sysstaffinfo.SysStaffinfoFeign; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.*; |
|||
|
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysStaffinfoService.java <br/> |
|||
* Class: com.yxt.user.biz.sysstaffinfo.SysStaffinfoService <br/> |
|||
* Description: 人员基础信息表 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class SysStaffinfoService extends MybatisBaseService<SysStaffinfoMapper, SysStaffinfo> { |
|||
|
|||
|
|||
@Autowired |
|||
private SysStaffinfoFeign sysStaffinfoFeign; |
|||
|
|||
|
|||
public ResultBean<List<SysStaffinfoAppContactsVo>> selectAppContactsList() { |
|||
return sysStaffinfoFeign.selectAppContactsList(""); |
|||
} |
|||
|
|||
public ResultBean<PagerVo<SysStaffinfoAppContactsSearchVo>> searchAppContactsList(PagerQuery<SysStaffinfoQuery> pagerQuery ) { |
|||
return sysStaffinfoFeign.searchAppContactsList(pagerQuery); |
|||
} |
|||
|
|||
public ResultBean<PagerVo<SysStaffinfoAppContactsSearchVo>> searchAppContactsList2(PagerQuery<SysStaffinfoQuery> pagerQuery) { |
|||
return sysStaffinfoFeign.searchAppContactsList2(pagerQuery); |
|||
} |
|||
|
|||
|
|||
public ResultBean<AppContactsDetailsVo> selectAppContactsVO(String staffSid) { |
|||
return sysStaffinfoFeign.selectAppContactsVO(staffSid); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 员工管理分页列表 |
|||
* |
|||
* @param pagerQuery 查询条件 |
|||
* @return |
|||
*/ |
|||
public ResultBean<PagerVo<SysStaffinfoVo>> pagerList(PagerQuery<SysStaffinfoQuery> pagerQuery) { |
|||
|
|||
return sysStaffinfoFeign.listPage(pagerQuery); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 员工信息的新增保存 |
|||
* |
|||
* @param dto 数据传输对象 |
|||
* @return |
|||
*/ |
|||
public ResultBean saveStaffInfo(SysStaffinfoDto dto) { |
|||
return sysStaffinfoFeign.save(dto); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 员工信息修改保存 |
|||
* |
|||
* @param dto 数据传输对象 |
|||
* @param sid 员工信息sid |
|||
* @return |
|||
*/ |
|||
public ResultBean updateStaffInfo(SysStaffinfoDto dto, String sid) { |
|||
return sysStaffinfoFeign.update(dto,sid); |
|||
} |
|||
|
|||
/** |
|||
* 根据员工sid查询员工信息 |
|||
* |
|||
* @param sid 员工sid |
|||
* @return |
|||
*/ |
|||
public ResultBean<SysStaffinfoDetailsVo> selectDetailsBySid(String sid) { |
|||
return sysStaffinfoFeign.fetchBySid(sid); |
|||
} |
|||
|
|||
/** |
|||
* 员工信息的删除操作,即设置员工类型为离职状态。 |
|||
* |
|||
* @param sysStaffQuery 员工sid |
|||
* @return |
|||
*/ |
|||
public ResultBean del(SysStaffQuery sysStaffQuery) { |
|||
return sysStaffinfoFeign.del(sysStaffQuery); |
|||
} |
|||
|
|||
public ResultBean<List<PcSysStaffVo>> selectStaffList(PcSysStaffQuery pcSysStaffQuery) { |
|||
return sysStaffinfoFeign.selectStaffList(pcSysStaffQuery); |
|||
} |
|||
|
|||
public ResultBean<List<Map<String, String>>> getStaffName(String staffName,String deptSid) { |
|||
return sysStaffinfoFeign.getStaffName(staffName,deptSid); |
|||
} |
|||
|
|||
public ResultBean<List<Map<String, String>>> getStaffNameByDeptSid(String staffName, String deptSid) { |
|||
return sysStaffinfoFeign.getStaffNameByDeptSid(staffName,deptSid); |
|||
} |
|||
|
|||
public ResultBean<PagerVo<AppSysStaffVo>> getUserList(PagerQuery<AppSysStaffQuery> pagerQuery) { |
|||
return sysStaffinfoFeign.getUserList(pagerQuery); |
|||
} |
|||
|
|||
public ResultBean<List<AppSysStaffVo>> getGressionUserList(String userSid, String orgPath) { |
|||
return sysStaffinfoFeign.getGressionUserList(userSid, orgPath); |
|||
} |
|||
|
|||
public ResultBean<List<PcSysStaffVo>> selectStaffLists() { |
|||
return sysStaffinfoFeign.selectStaffLists(); |
|||
} |
|||
|
|||
public ResultBean<List<PcSysStaffVo>> selectStaffListss() { |
|||
return sysStaffinfoFeign.selectStaffListss(); |
|||
} |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysStaffinfoVo.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysstaffinfo.SysStaffinfoVo <br/> |
|||
* Description: 人员基础信息表 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "人员基础信息表 视图数据对象", description = "人员基础信息表 视图数据对象") |
|||
@Data |
|||
public class SysStaffinfoVo implements Vo { |
|||
|
|||
private static final long serialVersionUID = -1250862291306247261L; |
|||
@ApiModelProperty(value = "员工sid") |
|||
private String sid; |
|||
@ApiModelProperty(value = "员工编号") |
|||
private String jobNumber; |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
@ApiModelProperty("员工类型") |
|||
private String personType; |
|||
@ApiModelProperty("手机号") |
|||
private String mobile; |
|||
@ApiModelProperty(value = "入职日期") |
|||
private String joinCompnyDate; |
|||
@ApiModelProperty(value = "部门") |
|||
private String orgName; |
|||
@ApiModelProperty(value = "岗位") |
|||
private String postName; |
|||
@ApiModelProperty(value = "部门sid") |
|||
private String orgSid; |
|||
|
|||
|
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author dimengzhe |
|||
* @date 2021/10/6 16:58 |
|||
* @description |
|||
*/ |
|||
@Data |
|||
public class WxBase64Query implements Query { |
|||
private static final long serialVersionUID = 4307651151043379231L; |
|||
// @ApiModelProperty(value = "base64")
|
|||
// private String base64File;
|
|||
|
|||
@ApiModelProperty(value = "图片全路径") |
|||
private String imageUrl; |
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @author dimengzhe |
|||
* @date 2021/10/6 12:08 |
|||
* @description 客户端上传身份证 |
|||
*/ |
|||
@Data |
|||
public class WxSysInfoQuery implements Query { |
|||
private static final long serialVersionUID = 7273642052588903116L; |
|||
@ApiModelProperty(value = "用户sid", required = true) |
|||
@NotBlank(message = "用户sid不能为空") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "身份证(人像面)", required = true) |
|||
@NotBlank(message = "身份证(人像面)不能为空") |
|||
private String idCardA; |
|||
@ApiModelProperty(value = "身份证(国徽面)", required = true) |
|||
@NotBlank(message = "身份证(国徽面)不能为空") |
|||
private String idCardB; |
|||
|
|||
@ApiModelProperty(value = "身份证地址", required = true) |
|||
@NotBlank(message = "身份证地址不能为空") |
|||
private String idAddrs; |
|||
@ApiModelProperty(value = "证件有效期", required = true) |
|||
@NotBlank(message = "证件有效期不能为空") |
|||
private String idTerm; |
|||
@ApiModelProperty(value = "生日") |
|||
private String birth; |
|||
@ApiModelProperty(value = "民族") |
|||
private String national; |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo.app; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/6/11 9:44 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class AppSysStaffQuery implements Query { |
|||
private static final long serialVersionUID = 4724669786231817593L; |
|||
@ApiModelProperty(value = "用户名称") |
|||
private String name; |
|||
@ApiModelProperty(value = "用户sid") |
|||
private String userSid; |
|||
|
|||
@ApiModelProperty("组织机构sid") |
|||
private String orgPath; |
|||
|
|||
@ApiModelProperty("已选人员sid") |
|||
private List<String> selectSid; |
|||
|
|||
@ApiModelProperty("state:1是所有,0是本分公司") |
|||
private int state; |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.yxt.wms.biz.func.sysstaffinfo.app; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/6/11 9:29 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class AppSysStaffVo implements Vo { |
|||
private static final long serialVersionUID = -4051562700421770402L; |
|||
@ApiModelProperty(value = "用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "用户名称") |
|||
private String userName; |
|||
@ApiModelProperty(value = "头像") |
|||
private String userImage; |
|||
@ApiModelProperty(value = "电话") |
|||
private String userMobile; |
|||
@ApiModelProperty(value = "部门") |
|||
private String department; |
|||
@ApiModelProperty(value = "岗位") |
|||
private String position; |
|||
|
|||
@ApiModelProperty(value = "头像:后端内部使用") |
|||
private String headImage; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.yxt.wms.biz.func.sysstafforg; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/2/11 16:15 |
|||
* @Description 员工部门详情信息 |
|||
*/ |
|||
@Data |
|||
public class SysStaffOrgDetailsVo implements Vo { |
|||
private static final long serialVersionUID = 5354841525724609428L; |
|||
|
|||
@ApiModelProperty("部门sid") |
|||
private String orgSid; |
|||
@ApiModelProperty("部门名称") |
|||
private String orgName; |
|||
@ApiModelProperty("部门路径") |
|||
private String orgSidPath; |
|||
@ApiModelProperty("部门名称路径") |
|||
private String orgNamePath; |
|||
@ApiModelProperty(value = "部门编码") |
|||
private String orgCode; |
|||
@ApiModelProperty("管理类型:1、主管。2、分管。3、员工") |
|||
private String manageType; |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.yxt.wms.biz.func.sysstafforg; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysStaffOrgDto.java <br/> |
|||
* Class: com.yxt.anrui.portal.api.sysstafforg.SysStaffOrgDto <br/> |
|||
* Description: 员工部门关联表 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:29 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@ApiModel(value = "员工部门关联表 数据传输对象", description = "员工部门关联表 数据传输对象") |
|||
@Data |
|||
public class SysStaffOrgDto implements Dto { |
|||
|
|||
private static final long serialVersionUID = 1403491378761015027L; |
|||
@ApiModelProperty("部门sid") |
|||
private String orgSid; |
|||
@ApiModelProperty("部门名称") |
|||
@NotBlank(message = "部门名称不能为空") |
|||
private String orgName; |
|||
// @ApiModelProperty("部门路径")
|
|||
// private String orgSidPath;
|
|||
// @ApiModelProperty("部门名称路径")
|
|||
// private String orgNamePath;
|
|||
@ApiModelProperty(value = "部门编码") |
|||
private String orgCode; |
|||
@ApiModelProperty(value = "管理类型:1、主管。2、分管。3、员工", example = "3") |
|||
private String manageType; |
|||
} |
@ -0,0 +1,165 @@ |
|||
package com.yxt.wms.feign.portal.sysstaffinfo; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.wms.biz.func.sysstaffinfo.*; |
|||
import com.yxt.wms.biz.func.sysstaffinfo.app.AppSysStaffQuery; |
|||
import com.yxt.wms.biz.func.sysstaffinfo.app.AppSysStaffVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.cloud.openfeign.SpringQueryMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.text.SimpleDateFormat; |
|||
import java.util.Collections; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* Project: anrui_portal(门户建设) <br/> |
|||
* File: SysStaffinfoFeignFallback.java <br/> |
|||
* Class: com.yxt.user.biz.sysstaffinfo.SysStaffinfoRest <br/> |
|||
* Description: 人员基础信息表. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2021-08-03 00:24:30 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@FeignClient( |
|||
contextId = "ss-common-portal-sysstaffinfo", |
|||
name = "ss-common-portal", |
|||
path = "/apiadmin/sysstaffinfo") |
|||
public interface SysStaffinfoFeign { |
|||
|
|||
|
|||
/** |
|||
* 员工管理分页列表 |
|||
* |
|||
* @param pq 查询条件 |
|||
* @return |
|||
*/ |
|||
@ApiOperation("员工管理分页列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<SysStaffinfoVo>> listPage(@RequestBody PagerQuery<SysStaffinfoQuery> pq); |
|||
|
|||
/** |
|||
* 员工信息新增保存 |
|||
* |
|||
* @param dto 数据传输对象 |
|||
* @return |
|||
*/ |
|||
@ApiOperation("新增保存") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@Valid @RequestBody SysStaffinfoDto dto); |
|||
|
|||
/** |
|||
* 员工信息修改保存 |
|||
* |
|||
* @param dto 数据传输对象 |
|||
* @param sid 员工信息sid |
|||
* @return |
|||
*/ |
|||
@ApiOperation("修改保存") |
|||
@PostMapping("/update/{sid}") |
|||
public ResultBean update(@Valid @RequestBody SysStaffinfoDto dto, @PathVariable("sid") String sid); |
|||
|
|||
/** |
|||
* 员工信息删除操作,即离职 |
|||
* |
|||
* @param sysStaffQuery 数据传输对象 |
|||
* @return |
|||
*/ |
|||
@ApiOperation("设置离职") |
|||
@PostMapping("/del") |
|||
public ResultBean del(@RequestBody SysStaffQuery sysStaffQuery); |
|||
|
|||
/** |
|||
* 员工信息编辑初始化及详情 |
|||
* |
|||
* @param sid 员工sid |
|||
* @return |
|||
*/ |
|||
@ApiOperation("员工信息编辑初始化及详情") |
|||
@GetMapping("/fetchBySid/{sid}") |
|||
public ResultBean<SysStaffinfoDetailsVo> fetchBySid(@PathVariable("sid") String sid); |
|||
|
|||
/** |
|||
* 获取集团内全部员工姓名 |
|||
* |
|||
* @param staffName 员工姓名 |
|||
* @return |
|||
*/ |
|||
@ApiOperation("获取集团内全部员工姓名") |
|||
@GetMapping("/getStaffName") |
|||
public ResultBean<List<Map<String, String>>> getStaffName(@RequestParam(value = "staffName", required = false) String staffName, @RequestParam(value = "deptSid") String deptSid); |
|||
|
|||
/** |
|||
* 获取部门内全部员工姓名 |
|||
* |
|||
* @param staffName 员工姓名 |
|||
* @return |
|||
*/ |
|||
@ApiOperation("获取部门内全部员工姓名") |
|||
@GetMapping("/getStaffNameByDeptSid") |
|||
public ResultBean<List<Map<String, String>>> getStaffNameByDeptSid(@RequestParam(value = "staffName", required = false) String staffName, @RequestParam(value = "deptSid") String deptSid); |
|||
|
|||
|
|||
@ApiOperation("获取App通讯录") |
|||
@ResponseBody |
|||
@GetMapping("/selectAppContactsList") |
|||
public ResultBean<List<SysStaffinfoAppContactsVo>> selectAppContactsList(@RequestParam(value = "names", required = false) String names); |
|||
|
|||
@ApiOperation("app查看通讯录详情") |
|||
@ResponseBody |
|||
@GetMapping("/selectAppContactsVO/{staffSid}") |
|||
public ResultBean<AppContactsDetailsVo> selectAppContactsVO(@PathVariable("staffSid") String staffSid); |
|||
|
|||
@ApiOperation("App通讯录搜索") |
|||
@ResponseBody |
|||
@PostMapping("/searchAppContactsList") |
|||
public ResultBean<PagerVo<SysStaffinfoAppContactsSearchVo>> searchAppContactsList(@RequestBody PagerQuery<SysStaffinfoQuery> pq); |
|||
|
|||
@ApiOperation("App通讯录搜索2") |
|||
@ResponseBody |
|||
@PostMapping("/searchAppContactsList2") |
|||
public ResultBean<PagerVo<SysStaffinfoAppContactsSearchVo>> searchAppContactsList2(@RequestBody PagerQuery<SysStaffinfoQuery> pq); |
|||
|
|||
@ApiOperation("销售订单-内部推荐人下拉框") |
|||
@ResponseBody |
|||
@GetMapping("/selectStaffList") |
|||
ResultBean<List<PcSysStaffVo>> selectStaffList(@SpringQueryMap PcSysStaffQuery pcSysStaffQuery); |
|||
|
|||
@ApiOperation("移动端-销售订单-内部推荐人下拉框") |
|||
@ResponseBody |
|||
@PostMapping("/getUserList") |
|||
ResultBean<PagerVo<AppSysStaffVo>> getUserList(@RequestBody PagerQuery<AppSysStaffQuery> pagerQuery); |
|||
|
|||
@ApiOperation("存放地点变更-获取人员列表") |
|||
@ResponseBody |
|||
@GetMapping("/getGressionUserList/{userSid}") |
|||
ResultBean<List<AppSysStaffVo>> getGressionUserList(@PathVariable("userSid") String userSid); |
|||
|
|||
@ApiOperation("切换机构:存放地点变更-获取人员列表") |
|||
@ResponseBody |
|||
@GetMapping("/getGressionUserList") |
|||
ResultBean<List<AppSysStaffVo>> getGressionUserList(@RequestParam("userSid") String userSid, @RequestParam("orgPath") String orgPath); |
|||
|
|||
|
|||
@ApiOperation("获取集团所有人员") |
|||
@ResponseBody |
|||
@GetMapping("/selectStaffLists") |
|||
ResultBean<List<PcSysStaffVo>> selectStaffLists(); |
|||
|
|||
@ApiOperation("获取集团所有在职人员") |
|||
@ResponseBody |
|||
@GetMapping("/selectStaffListss") |
|||
ResultBean<List<PcSysStaffVo>> selectStaffListss(); |
|||
|
|||
|
|||
} |
Loading…
Reference in new issue