parent
e667acb2cb
commit
0a306f0e57
|
|
@ -0,0 +1,83 @@
|
|||
package com.zcloud.basic.info.web;
|
||||
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.Response;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.jjb.saas.framework.auth.model.SSOUser;
|
||||
import com.jjb.saas.framework.auth.utils.AuthContext;
|
||||
import com.zcloud.basic.info.api.UserEmploymentLogServiceI;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogAddCmd;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogPageQry;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogQryCmd;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.UserEmploymentLogCO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* web-adapter
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Api(tags = "用户资质信息")
|
||||
@RequestMapping("/${application.gateway}/userEmploymentLog")
|
||||
@RestController
|
||||
@AllArgsConstructor
|
||||
public class UserEmploymentLogController {
|
||||
private final UserEmploymentLogServiceI userEmploymentLogService;
|
||||
|
||||
@ApiOperation("新增")
|
||||
@PostMapping("/save")
|
||||
public SingleResponse<UserEmploymentLogCO> add(@Validated @RequestBody UserEmploymentLogAddCmd cmd) {
|
||||
SSOUser ssoUser = AuthContext.getCurrentUser();
|
||||
return userEmploymentLogService.add(cmd);
|
||||
}
|
||||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
public PageResponse<UserEmploymentLogCO> page(@RequestBody UserEmploymentLogPageQry qry) {
|
||||
return userEmploymentLogService.listPage(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("所有数据")
|
||||
@GetMapping("/listAll")
|
||||
public MultiResponse<UserEmploymentLogCO> listAll(UserEmploymentLogQryCmd qry) {
|
||||
return userEmploymentLogService.listAll(qry);
|
||||
}
|
||||
|
||||
@ApiOperation("详情")
|
||||
@GetMapping("/{id}")
|
||||
public SingleResponse<UserEmploymentLogCO> getInfoById(@PathVariable("id") Long id) {
|
||||
return SingleResponse.of(new UserEmploymentLogCO());
|
||||
}
|
||||
|
||||
@ApiOperation("删除")
|
||||
@DeleteMapping("/{id}")
|
||||
public Response remove(@PathVariable("id") Long id) {
|
||||
userEmploymentLogService.remove(id);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("删除多个")
|
||||
@DeleteMapping("/ids")
|
||||
public Response removeBatch(@RequestParam Long[] ids) {
|
||||
userEmploymentLogService.removeBatch(ids);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@ApiOperation("修改")
|
||||
@PutMapping("/edit")
|
||||
public SingleResponse edit(@Validated @RequestBody UserEmploymentLogUpdateCmd userEmploymentLogUpdateCmd) {
|
||||
userEmploymentLogService.edit(userEmploymentLogUpdateCmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -7,10 +7,13 @@ import com.jjb.saas.system.client.role.facade.RoleFacade;
|
|||
import com.jjb.saas.system.client.user.facade.UserFacade;
|
||||
import com.jjb.saas.system.client.user.request.FacadeUserAddCmd;
|
||||
import com.zcloud.basic.info.command.convertor.UserCoConvertor;
|
||||
import com.zcloud.basic.info.domain.gateway.UserEmploymentLogGateway;
|
||||
import com.zcloud.basic.info.domain.gateway.UserGateway;
|
||||
import com.zcloud.basic.info.domain.model.UserE;
|
||||
import com.zcloud.basic.info.domain.model.UserEmploymentLogE;
|
||||
import com.zcloud.basic.info.dto.UserAddCmd;
|
||||
import com.zcloud.basic.info.dto.UserXgfAddCmd;
|
||||
import com.zcloud.basic.info.persistence.dataobject.UserEmploymentLogDO;
|
||||
import com.zcloud.gbscommon.utils.Tools;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.apache.dubbo.config.annotation.DubboReference;
|
||||
|
|
@ -33,6 +36,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
public class UserAddExe {
|
||||
private final UserGateway userGateway;
|
||||
private UserCoConvertor userCoConvertor;
|
||||
private final UserEmploymentLogGateway userEmploymentLogGateway;
|
||||
// @Autowired
|
||||
// private RedisTemplate<String, Object> redisTemplate;
|
||||
@DubboReference(check = false)
|
||||
|
|
@ -47,9 +51,13 @@ public class UserAddExe {
|
|||
UserE userE = new UserE();
|
||||
BeanUtils.copyProperties(cmd, userE);
|
||||
userE.initAdd(tenantId, userE);
|
||||
UserEmploymentLogE userEmploymentLogE = new UserEmploymentLogE();
|
||||
BeanUtils.copyProperties(userE, userEmploymentLogE);
|
||||
userEmploymentLogE.initAdd(userEmploymentLogE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = userGateway.add(userE);
|
||||
userEmploymentLogGateway.add(userEmploymentLogE);
|
||||
// FacadeUserAddCmd facadeUserAddCmd = new FacadeUserAddCmd();
|
||||
// facadeUserAddCmd.setAccount(userE.getUsername());
|
||||
// FacadeUserAddCmd facadeUserAddCmd = userCoConvertor.converEToFacadeUserAddCmd(userE);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,40 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.UserEmploymentLogGateway;
|
||||
import com.zcloud.basic.info.domain.model.UserEmploymentLogE;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogAddCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:36
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class UserEmploymentLogAddExe {
|
||||
private final UserEmploymentLogGateway userEmploymentLogGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(UserEmploymentLogAddCmd cmd) {
|
||||
UserEmploymentLogE userEmploymentLogE = new UserEmploymentLogE();
|
||||
BeanUtils.copyProperties(cmd, userEmploymentLogE);
|
||||
boolean res = false;
|
||||
try {
|
||||
res = userEmploymentLogGateway.add(userEmploymentLogE);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (!res) {
|
||||
throw new BizException("保存失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.UserEmploymentLogGateway;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class UserEmploymentLogRemoveExe {
|
||||
private final UserEmploymentLogGateway userEmploymentLogGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long id) {
|
||||
boolean res = userEmploymentLogGateway.deletedUserEmploymentLogById(id);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean execute(Long[] ids) {
|
||||
boolean res = userEmploymentLogGateway.deletedUserEmploymentLogByIds(ids);
|
||||
if (!res) {
|
||||
throw new BizException("删除失败");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package com.zcloud.basic.info.command;
|
||||
|
||||
import com.alibaba.cola.exception.BizException;
|
||||
import com.zcloud.basic.info.domain.gateway.UserEmploymentLogGateway;
|
||||
import com.zcloud.basic.info.domain.model.UserEmploymentLogE;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogUpdateCmd;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:38
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class UserEmploymentLogUpdateExe {
|
||||
private final UserEmploymentLogGateway userEmploymentLogGateway;
|
||||
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void execute(UserEmploymentLogUpdateCmd userEmploymentLogUpdateCmd) {
|
||||
UserEmploymentLogE userEmploymentLogE = new UserEmploymentLogE();
|
||||
BeanUtils.copyProperties(userEmploymentLogUpdateCmd, userEmploymentLogE);
|
||||
boolean res = userEmploymentLogGateway.update(userEmploymentLogE);
|
||||
if (!res) {
|
||||
throw new BizException("修改失败");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
package com.zcloud.basic.info.command.convertor;
|
||||
|
||||
import com.zcloud.basic.info.dto.clientobject.UserEmploymentLogCO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.UserEmploymentLogDO;
|
||||
import org.mapstruct.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface UserEmploymentLogCoConvertor {
|
||||
/**
|
||||
* @param userEmploymentLogDOs
|
||||
* @return
|
||||
*/
|
||||
List<UserEmploymentLogCO> converDOsToCOs(List<UserEmploymentLogDO> userEmploymentLogDOs);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
package com.zcloud.basic.info.command.query;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.zcloud.basic.info.command.convertor.UserEmploymentLogCoConvertor;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogPageQry;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogQryCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.UserEmploymentLogCO;
|
||||
import com.zcloud.basic.info.persistence.dataobject.UserEmploymentLogDO;
|
||||
import com.zcloud.basic.info.persistence.repository.UserEmploymentLogRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Component
|
||||
@AllArgsConstructor
|
||||
public class UserEmploymentLogQueryExe {
|
||||
private final UserEmploymentLogRepository userEmploymentLogRepository;
|
||||
private final UserEmploymentLogCoConvertor userEmploymentLogCoConvertor;
|
||||
|
||||
/**
|
||||
* 分页
|
||||
*
|
||||
* @param userEmploymentLogPageQry
|
||||
* @return
|
||||
*/
|
||||
public PageResponse<UserEmploymentLogCO> execute(UserEmploymentLogPageQry userEmploymentLogPageQry) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(userEmploymentLogPageQry);
|
||||
PageResponse<UserEmploymentLogDO> pageResponse = userEmploymentLogRepository.listPage(params);
|
||||
List<UserEmploymentLogCO> examCenterCOS = userEmploymentLogCoConvertor.converDOsToCOs(pageResponse.getData());
|
||||
return PageResponse.of(examCenterCOS, pageResponse.getTotalCount(), pageResponse.getPageSize(), pageResponse.getPageIndex());
|
||||
}
|
||||
/**
|
||||
* 列表
|
||||
*
|
||||
* @param userEmploymentLogQryCmd
|
||||
* @return
|
||||
*/
|
||||
public MultiResponse<UserEmploymentLogCO> executeListAll(UserEmploymentLogQryCmd userEmploymentLogQryCmd) {
|
||||
Map<String, Object> params = PageQueryHelper.toHashMap(userEmploymentLogQryCmd);
|
||||
List<UserEmploymentLogDO> userEmploymentLogDOList = userEmploymentLogRepository.listAll(params);
|
||||
List<UserEmploymentLogCO> userEmploymentLogCOList = userEmploymentLogCoConvertor.converDOsToCOs(userEmploymentLogDOList);
|
||||
return MultiResponse.of(userEmploymentLogCOList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,66 @@
|
|||
package com.zcloud.basic.info.service;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.basic.info.api.UserEmploymentLogServiceI;
|
||||
import com.zcloud.basic.info.command.UserEmploymentLogAddExe;
|
||||
import com.zcloud.basic.info.command.UserEmploymentLogRemoveExe;
|
||||
import com.zcloud.basic.info.command.UserEmploymentLogUpdateExe;
|
||||
import com.zcloud.basic.info.command.query.UserEmploymentLogQueryExe;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogAddCmd;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogPageQry;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogQryCmd;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.UserEmploymentLogCO;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* web-app
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class UserEmploymentLogServiceImpl implements UserEmploymentLogServiceI {
|
||||
private final UserEmploymentLogAddExe userEmploymentLogAddExe;
|
||||
private final UserEmploymentLogUpdateExe userEmploymentLogUpdateExe;
|
||||
private final UserEmploymentLogRemoveExe userEmploymentLogRemoveExe;
|
||||
private final UserEmploymentLogQueryExe userEmploymentLogQueryExe;
|
||||
|
||||
@Override
|
||||
public PageResponse<UserEmploymentLogCO> listPage(UserEmploymentLogPageQry qry) {
|
||||
|
||||
return userEmploymentLogQueryExe.execute(qry);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SingleResponse add(UserEmploymentLogAddCmd cmd) {
|
||||
|
||||
userEmploymentLogAddExe.execute(cmd);
|
||||
return SingleResponse.buildSuccess();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void edit(UserEmploymentLogUpdateCmd userEmploymentLogUpdateCmd) {
|
||||
userEmploymentLogUpdateExe.execute(userEmploymentLogUpdateCmd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(Long id) {
|
||||
userEmploymentLogRemoveExe.execute(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeBatch(Long[] ids) {
|
||||
userEmploymentLogRemoveExe.execute(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MultiResponse<UserEmploymentLogCO> listAll(UserEmploymentLogQryCmd qry) {
|
||||
return userEmploymentLogQueryExe.executeListAll(qry);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.zcloud.basic.info.api;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.alibaba.cola.dto.SingleResponse;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogAddCmd;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogPageQry;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogQryCmd;
|
||||
import com.zcloud.basic.info.dto.UserEmploymentLogUpdateCmd;
|
||||
import com.zcloud.basic.info.dto.clientobject.UserEmploymentLogCO;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
public interface UserEmploymentLogServiceI {
|
||||
PageResponse<UserEmploymentLogCO> listPage(UserEmploymentLogPageQry qry);
|
||||
|
||||
SingleResponse<UserEmploymentLogCO> add(UserEmploymentLogAddCmd cmd);
|
||||
|
||||
void edit(UserEmploymentLogUpdateCmd cmd);
|
||||
|
||||
void remove(Long id);
|
||||
|
||||
void removeBatch(Long[] ids);
|
||||
|
||||
MultiResponse<UserEmploymentLogCO> listAll(UserEmploymentLogQryCmd qry);
|
||||
}
|
||||
|
||||
|
|
@ -85,10 +85,10 @@ public class UserAddCmd extends Command {
|
|||
|
||||
@ApiModelProperty(value = "户口所在地", name = "locationAddress")
|
||||
private String locationAddress;
|
||||
@ApiModelProperty(value = "职级", name = "rank")
|
||||
private String rank;
|
||||
@ApiModelProperty(value = "职级名称", name = "rank_name")
|
||||
private String rank_name;
|
||||
@ApiModelProperty(value = "职级", name = "rank_level")
|
||||
private String rank_level;
|
||||
@ApiModelProperty(value = "职级名称", name = "rank_level_name")
|
||||
private String rank_level_name;
|
||||
|
||||
// TODO 待确认企业端和监管端是否必填
|
||||
@ApiModelProperty(value = "人员在部门中的排序", name = "sort")
|
||||
|
|
|
|||
|
|
@ -0,0 +1,57 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:36
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class UserEmploymentLogAddCmd extends Command {
|
||||
@ApiModelProperty(value = "用户id", name = "userId", required = true)
|
||||
@NotNull(message = "用户id不能为空")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业id不能为空")
|
||||
private Long corpinfoId;
|
||||
|
||||
@ApiModelProperty(value = "企业名称", name = "corpinfoName", required = true)
|
||||
@NotEmpty(message = "企业名称不能为空")
|
||||
private String corpinfoName;
|
||||
|
||||
@ApiModelProperty(value = "部门id", name = "departmentId", required = true)
|
||||
@NotNull(message = "部门id不能为空")
|
||||
private Long departmentId;
|
||||
|
||||
@ApiModelProperty(value = "部门名称", name = "departmentName", required = true)
|
||||
@NotEmpty(message = "部门名称不能为空")
|
||||
private String departmentName;
|
||||
|
||||
@ApiModelProperty(value = "岗位id", name = "postId", required = true)
|
||||
@NotNull(message = "岗位id不能为空")
|
||||
private Long postId;
|
||||
|
||||
@ApiModelProperty(value = "岗位名称", name = "postName", required = true)
|
||||
@NotEmpty(message = "岗位名称不能为空")
|
||||
private String postName;
|
||||
|
||||
@ApiModelProperty(value = "入职状态,1-入职 0-离职", name = "employmentFlag", required = true)
|
||||
@NotNull(message = "入职状态,1-入职 0-离职不能为空")
|
||||
private Integer employmentFlag;
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Data
|
||||
public class UserEmploymentLogPageQry extends PageQuery {
|
||||
|
||||
/**
|
||||
* 查询条件操作前缀,支持以下几种数据库查询操作:
|
||||
* - `like`: 模糊匹配查询,对应SQL的LIKE操作符
|
||||
* - `eq`: 等值查询,对应SQL的=操作符
|
||||
* - `gt`: 大于比较查询
|
||||
* - `lt`: 小于比较查询
|
||||
* - `ge`: 大于等于比较查询
|
||||
* - `le`: 小于等于比较查询
|
||||
* - `ne`: 不等比较查询,对应SQL的!=操作符
|
||||
*/
|
||||
private String likeUserEmploymentLogId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.PageQuery;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Data
|
||||
public class UserEmploymentLogQryCmd{
|
||||
|
||||
private String likeUserEmploymentLogId;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
package com.zcloud.basic.info.dto;
|
||||
|
||||
import com.alibaba.cola.dto.Command;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class UserEmploymentLogUpdateCmd extends Command {
|
||||
@ApiModelProperty(value = "主键", name = "id", required = true)
|
||||
@NotNull(message = "主键不能为空")
|
||||
private Long id;
|
||||
@ApiModelProperty(value = "业务主键id", name = "userEmploymentLogId", required = true)
|
||||
@NotEmpty(message = "业务主键id不能为空")
|
||||
private String userEmploymentLogId;
|
||||
@ApiModelProperty(value = "用户id", name = "userId", required = true)
|
||||
@NotNull(message = "用户id不能为空")
|
||||
private Long userId;
|
||||
@ApiModelProperty(value = "企业id", name = "corpinfoId", required = true)
|
||||
@NotNull(message = "企业id不能为空")
|
||||
private Long corpinfoId;
|
||||
@ApiModelProperty(value = "企业名称", name = "corpinfoName", required = true)
|
||||
@NotEmpty(message = "企业名称不能为空")
|
||||
private String corpinfoName;
|
||||
@ApiModelProperty(value = "部门id", name = "departmentId", required = true)
|
||||
@NotNull(message = "部门id不能为空")
|
||||
private Long departmentId;
|
||||
@ApiModelProperty(value = "部门名称", name = "departmentName", required = true)
|
||||
@NotEmpty(message = "部门名称不能为空")
|
||||
private String departmentName;
|
||||
@ApiModelProperty(value = "岗位id", name = "postId", required = true)
|
||||
@NotNull(message = "岗位id不能为空")
|
||||
private Long postId;
|
||||
@ApiModelProperty(value = "岗位名称", name = "postName", required = true)
|
||||
@NotEmpty(message = "岗位名称不能为空")
|
||||
private String postName;
|
||||
@ApiModelProperty(value = "入职状态,1-入职 0-离职", name = "employmentFlag", required = true)
|
||||
@NotNull(message = "入职状态,1-入职 0-离职不能为空")
|
||||
private Integer employmentFlag;
|
||||
}
|
||||
|
||||
|
|
@ -63,10 +63,10 @@ public class UserUpdateCmd extends Command {
|
|||
private String locationAddress;
|
||||
@ApiModelProperty(value = "手机号", name = "phone")
|
||||
private String phone;
|
||||
@ApiModelProperty(value = "职级", name = "rank")
|
||||
private String rank;
|
||||
@ApiModelProperty(value = "职级名称", name = "rank_name")
|
||||
private String rank_name;
|
||||
@ApiModelProperty(value = "职级", name = "rank_level")
|
||||
private String rank_level;
|
||||
@ApiModelProperty(value = "职级名称", name = "rank_level_name")
|
||||
private String rank_level_name;
|
||||
@ApiModelProperty(value = "人员在部门中的排序", name = "sort")
|
||||
private Integer sort;
|
||||
@ApiModelProperty(value = "描述", name = "remarks")
|
||||
|
|
|
|||
|
|
@ -88,10 +88,10 @@ public class UserXgfAddCmd extends Command {
|
|||
@ApiModelProperty(value = "户口所在地", name = "locationAddress", required = true)
|
||||
@NotEmpty(message = "户口所在地不能为空")
|
||||
private String locationAddress;
|
||||
@ApiModelProperty(value = "职级", name = "rank")
|
||||
private String rank;
|
||||
@ApiModelProperty(value = "职级名称", name = "rank_name")
|
||||
private String rank_name;
|
||||
@ApiModelProperty(value = "职级", name = "rank_level")
|
||||
private String rank_level;
|
||||
@ApiModelProperty(value = "职级名称", name = "rank_level_name")
|
||||
private String rank_level_name;
|
||||
|
||||
@ApiModelProperty(value = "人员在部门中的排序", name = "sort")
|
||||
private Integer sort;
|
||||
|
|
|
|||
|
|
@ -94,9 +94,9 @@ public class UserCO extends ClientObject {
|
|||
private String locationAddress;
|
||||
|
||||
@ApiModelProperty(value = "职级")
|
||||
private String rank;
|
||||
private String rank_level;
|
||||
@ApiModelProperty(value = "职级名称")
|
||||
private String rank_name;
|
||||
private String rank_level_name;
|
||||
@ApiModelProperty(value = "手机号")
|
||||
private String phone;
|
||||
//人员在部门中的排序
|
||||
|
|
|
|||
|
|
@ -0,0 +1,83 @@
|
|||
package com.zcloud.basic.info.dto.clientobject;
|
||||
|
||||
import com.alibaba.cola.dto.ClientObject;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
/**
|
||||
* web-client
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Data
|
||||
public class UserEmploymentLogCO extends ClientObject {
|
||||
//主键
|
||||
@ApiModelProperty(value = "主键")
|
||||
private Long id;
|
||||
//业务主键id
|
||||
@ApiModelProperty(value = "业务主键id")
|
||||
private String userEmploymentLogId;
|
||||
//用户id
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
//企业id
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private Long corpinfoId;
|
||||
//企业名称
|
||||
@ApiModelProperty(value = "企业名称")
|
||||
private String corpinfoName;
|
||||
//部门id
|
||||
@ApiModelProperty(value = "部门id")
|
||||
private Long departmentId;
|
||||
//部门名称
|
||||
@ApiModelProperty(value = "部门名称")
|
||||
private String departmentName;
|
||||
//岗位id
|
||||
@ApiModelProperty(value = "岗位id")
|
||||
private Long postId;
|
||||
//岗位名称
|
||||
@ApiModelProperty(value = "岗位名称")
|
||||
private String postName;
|
||||
//入职状态,1-入职 0-离职
|
||||
@ApiModelProperty(value = "入职状态,1-入职 0-离职")
|
||||
private Integer employmentFlag;
|
||||
//是否删除
|
||||
@ApiModelProperty(value = "是否删除")
|
||||
private String deleteEnum;
|
||||
//租户id
|
||||
@ApiModelProperty(value = "租户id")
|
||||
private Long tenantId;
|
||||
//组织id
|
||||
@ApiModelProperty(value = "组织id")
|
||||
private Long orgId;
|
||||
//版本号
|
||||
@ApiModelProperty(value = "版本号")
|
||||
private Integer version;
|
||||
//创建时间
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private String createTime;
|
||||
//修改时间
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private String updateTime;
|
||||
//创建人id
|
||||
@ApiModelProperty(value = "创建人id")
|
||||
private Long createId;
|
||||
//修改人id
|
||||
@ApiModelProperty(value = "修改人id")
|
||||
private Long updateId;
|
||||
//创建人
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createName;
|
||||
//修改人
|
||||
@ApiModelProperty(value = "修改人")
|
||||
private String updateName;
|
||||
//备注
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remarks;
|
||||
//环境
|
||||
@ApiModelProperty(value = "环境")
|
||||
private String env;
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
package com.zcloud.basic.info.domain.gateway;
|
||||
|
||||
|
||||
import com.zcloud.basic.info.domain.model.UserEmploymentLogE;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
public interface UserEmploymentLogGateway {
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
Boolean add(UserEmploymentLogE userEmploymentLogE);
|
||||
|
||||
/**
|
||||
* 修改
|
||||
*/
|
||||
Boolean update(UserEmploymentLogE userEmploymentLogE);
|
||||
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
Boolean deletedUserEmploymentLogById(Long id);
|
||||
|
||||
Boolean deletedUserEmploymentLogByIds(Long[] id);
|
||||
}
|
||||
|
||||
|
|
@ -59,10 +59,10 @@ public class UserE extends BaseE {
|
|||
//户口所在地
|
||||
private String locationAddress;
|
||||
|
||||
private String rank;
|
||||
private String rank_level;
|
||||
private String phone;
|
||||
|
||||
private String rank_name;
|
||||
private String rank_level_name;
|
||||
//人员在部门中的排序
|
||||
private Integer sort;
|
||||
//乐观锁
|
||||
|
|
@ -115,6 +115,7 @@ public class UserE extends BaseE {
|
|||
userE.setUserId(Tools.get32UUID());
|
||||
userE.setTenantId(!ObjectUtils.isEmpty(userE.getTenantId())? userE.getTenantId() : tenantId);
|
||||
userE.setCorpinfoId(!ObjectUtils.isEmpty(userE.getCorpinfoId())? userE.getCorpinfoId() : tenantId);
|
||||
userE.setEmploymentFlag(1);
|
||||
}
|
||||
public Response verifyUser(Long userCount) {
|
||||
if (userCount > 0) {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,66 @@
|
|||
package com.zcloud.basic.info.domain.model;
|
||||
|
||||
import com.jjb.saas.framework.domain.model.BaseE;
|
||||
import com.zcloud.gbscommon.utils.Tools;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* web-domain
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Data
|
||||
public class UserEmploymentLogE extends BaseE {
|
||||
//主键
|
||||
private Long id;
|
||||
//业务主键id
|
||||
private String userEmploymentLogId;
|
||||
//用户id
|
||||
private Long userId;
|
||||
//企业id
|
||||
private Long corpinfoId;
|
||||
//企业名称
|
||||
private String corpinfoName;
|
||||
//部门id
|
||||
private Long departmentId;
|
||||
//部门名称
|
||||
private String departmentName;
|
||||
//岗位id
|
||||
private Long postId;
|
||||
//岗位名称
|
||||
private String postName;
|
||||
//入职状态,1-入职 0-离职
|
||||
private Integer employmentFlag;
|
||||
//是否删除
|
||||
private String deleteEnum;
|
||||
//租户id
|
||||
private Long tenantId;
|
||||
//组织id
|
||||
private Long orgId;
|
||||
//版本号
|
||||
private Integer version;
|
||||
//创建时间
|
||||
private LocalDateTime createTime;
|
||||
//修改时间
|
||||
private LocalDateTime updateTime;
|
||||
//创建人id
|
||||
private Long createId;
|
||||
//修改人id
|
||||
private Long updateId;
|
||||
//创建人
|
||||
private String createName;
|
||||
//修改人
|
||||
private String updateName;
|
||||
//备注
|
||||
private String remarks;
|
||||
//环境
|
||||
private String env;
|
||||
|
||||
public void initAdd(UserEmploymentLogE userEmploymentLogE) {
|
||||
userEmploymentLogE.setUserEmploymentLogId(Tools.get32UUID());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
package com.zcloud.basic.info.gatewayimpl;
|
||||
|
||||
import com.zcloud.basic.info.domain.gateway.UserEmploymentLogGateway;
|
||||
import com.zcloud.basic.info.domain.model.UserEmploymentLogE;
|
||||
import com.zcloud.basic.info.persistence.dataobject.UserEmploymentLogDO;
|
||||
import com.zcloud.basic.info.persistence.repository.UserEmploymentLogRepository;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Service
|
||||
@AllArgsConstructor
|
||||
public class UserEmploymentLogGatewayImpl implements UserEmploymentLogGateway {
|
||||
private final UserEmploymentLogRepository userEmploymentLogRepository;
|
||||
|
||||
@Override
|
||||
public Boolean add(UserEmploymentLogE userEmploymentLogE) {
|
||||
UserEmploymentLogDO d = new UserEmploymentLogDO();
|
||||
BeanUtils.copyProperties(userEmploymentLogE, d);
|
||||
userEmploymentLogRepository.save(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean update(UserEmploymentLogE userEmploymentLogE) {
|
||||
UserEmploymentLogDO d = new UserEmploymentLogDO();
|
||||
BeanUtils.copyProperties(userEmploymentLogE, d);
|
||||
userEmploymentLogRepository.updateById(d);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedUserEmploymentLogById(Long id) {
|
||||
return userEmploymentLogRepository.removeById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean deletedUserEmploymentLogByIds(Long[] ids) {
|
||||
return userEmploymentLogRepository.removeByIds(Collections.singletonList(ids));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -89,9 +89,9 @@ public class UserDO extends BaseDO {
|
|||
@ApiModelProperty(value = "户口所在地")
|
||||
private String locationAddress;
|
||||
@ApiModelProperty(value = "职级")
|
||||
private String rank;
|
||||
private String rank_level;
|
||||
@ApiModelProperty(value = "职级名称")
|
||||
private String rank_name;
|
||||
private String rank_level_name;
|
||||
@ApiModelProperty(value = "手机号")
|
||||
private String phone;
|
||||
//人员在部门中的排序
|
||||
|
|
|
|||
|
|
@ -0,0 +1,54 @@
|
|||
package com.zcloud.basic.info.persistence.dataobject;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.jjb.saas.framework.repository.basedo.BaseDO;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Data
|
||||
@TableName("user_employment_log")
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class UserEmploymentLogDO extends BaseDO {
|
||||
//业务主键id
|
||||
@ApiModelProperty(value = "业务主键id")
|
||||
private String userEmploymentLogId;
|
||||
//用户id
|
||||
@ApiModelProperty(value = "用户id")
|
||||
private Long userId;
|
||||
//企业id
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private Long corpinfoId;
|
||||
//企业名称
|
||||
@ApiModelProperty(value = "企业名称")
|
||||
private String corpinfoName;
|
||||
//部门id
|
||||
@ApiModelProperty(value = "部门id")
|
||||
private Long departmentId;
|
||||
//部门名称
|
||||
@ApiModelProperty(value = "部门名称")
|
||||
private String departmentName;
|
||||
//岗位id
|
||||
@ApiModelProperty(value = "岗位id")
|
||||
private Long postId;
|
||||
//岗位名称
|
||||
@ApiModelProperty(value = "岗位名称")
|
||||
private String postName;
|
||||
//入职状态,1-入职 0-离职
|
||||
@ApiModelProperty(value = "入职状态,1-入职 0-离职")
|
||||
private Integer employmentFlag;
|
||||
|
||||
public UserEmploymentLogDO(String userEmploymentLogId) {
|
||||
this.userEmploymentLogId = userEmploymentLogId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
package com.zcloud.basic.info.persistence.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.zcloud.basic.info.persistence.dataobject.UserEmploymentLogDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Mapper
|
||||
public interface UserEmploymentLogMapper extends BaseMapper<UserEmploymentLogDO> {
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
package com.zcloud.basic.info.persistence.repository;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.jjb.saas.framework.repository.repo.BaseRepository;
|
||||
import com.zcloud.basic.info.persistence.dataobject.UserEmploymentLogDO;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
public interface UserEmploymentLogRepository extends BaseRepository<UserEmploymentLogDO> {
|
||||
PageResponse<UserEmploymentLogDO> listPage(Map<String, Object> params);
|
||||
List<UserEmploymentLogDO> listAll(Map<String, Object> params);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
package com.zcloud.basic.info.persistence.repository.impl;
|
||||
|
||||
import com.alibaba.cola.dto.MultiResponse;
|
||||
import com.alibaba.cola.dto.PageResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jjb.saas.framework.repository.common.PageHelper;
|
||||
import com.jjb.saas.framework.repository.repo.impl.BaseRepositoryImpl;
|
||||
import com.zcloud.basic.info.persistence.dataobject.UserEmploymentLogDO;
|
||||
import com.zcloud.basic.info.persistence.mapper.UserEmploymentLogMapper;
|
||||
import com.zcloud.basic.info.persistence.repository.UserEmploymentLogRepository;
|
||||
import com.zcloud.gbscommon.utils.PageQueryHelper;
|
||||
import com.zcloud.gbscommon.utils.Query;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* web-infrastructure
|
||||
*
|
||||
* @Author zhangyue
|
||||
* @Date 2025-11-06 19:15:37
|
||||
*/
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class UserEmploymentLogRepositoryImpl extends BaseRepositoryImpl<UserEmploymentLogMapper, UserEmploymentLogDO> implements UserEmploymentLogRepository {
|
||||
private final UserEmploymentLogMapper userEmploymentLogMapper;
|
||||
|
||||
@Override
|
||||
public PageResponse<UserEmploymentLogDO> listPage(Map<String, Object> params) {
|
||||
IPage<UserEmploymentLogDO> iPage = new Query<UserEmploymentLogDO>().getPage(params);
|
||||
QueryWrapper<UserEmploymentLogDO> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, params);
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
IPage<UserEmploymentLogDO> result = userEmploymentLogMapper.selectPage(iPage, queryWrapper);
|
||||
return PageHelper.pageToResponse(result, result.getRecords());
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UserEmploymentLogDO> listAll(Map<String, Object> params) {
|
||||
QueryWrapper<UserEmploymentLogDO> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, params);
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
queryWrapper.eq("delete_enum","FALSE");
|
||||
return userEmploymentLogMapper.selectList(queryWrapper);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -77,6 +77,8 @@ public class UserRepositoryImpl extends BaseRepositoryImpl<UserMapper, UserDO> i
|
|||
|
||||
@Override
|
||||
public UserDO getInfoById(Long id) {
|
||||
UserDO d = userMapper.getInfoById(id);
|
||||
System.out.println("getInfoById");
|
||||
return userMapper.getInfoById(id);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,17 +5,17 @@
|
|||
<mapper namespace="com.zcloud.basic.info.persistence.mapper.UserMapper">
|
||||
<select id="selectListAll" resultType="com.zcloud.basic.info.persistence.dataobject.UserDO">
|
||||
select
|
||||
d.name as department_name,
|
||||
p.post_name,
|
||||
u.id,
|
||||
u.user_id,
|
||||
u.username,
|
||||
u.name,
|
||||
u.corpinfo_id,
|
||||
c.corp_name,
|
||||
u.main_corp_flag,
|
||||
u.user_type,
|
||||
u.department_id,
|
||||
d.name as department_name,
|
||||
u.post_id,
|
||||
p.post_name,
|
||||
u.role_id,
|
||||
u.email,
|
||||
u.phone,
|
||||
|
|
@ -24,11 +24,33 @@
|
|||
u.nation,
|
||||
u.nation_name,
|
||||
u.user_id_card,
|
||||
u.user_avatar_url,
|
||||
u.current_address,
|
||||
u.location_address,
|
||||
u.rank_level,
|
||||
u.rank_level_name,
|
||||
u.sort,
|
||||
u.version,
|
||||
u.create_id,
|
||||
u.create_name,
|
||||
u.create_time,
|
||||
u.update_id,
|
||||
u.update_name,
|
||||
u.update_time,
|
||||
u.remarks,
|
||||
u.delete_enum,
|
||||
u.tenant_id,
|
||||
u.org_id,
|
||||
u.env,
|
||||
u.department_leader_flag,
|
||||
u.deputy_leader_flag,
|
||||
u.cultural_level,
|
||||
u.cultural_level_name,
|
||||
u.marital_status,
|
||||
u.marital_status_name,
|
||||
u.political_affiliation,
|
||||
u.political_affiliation_name,
|
||||
u.employment_flag,
|
||||
CASE
|
||||
WHEN MOD(SUBSTRING( u.user_id_card, 17, 1), 2) = 1 THEN '男'
|
||||
ELSE '女'
|
||||
|
|
@ -55,30 +77,52 @@
|
|||
|
||||
<select id="selectUserPage" resultType="com.zcloud.basic.info.persistence.dataobject.UserDO">
|
||||
select
|
||||
u.id,
|
||||
u.user_id,
|
||||
u.username,
|
||||
u.name,
|
||||
u.corpinfo_id,
|
||||
c.corp_name,
|
||||
u.user_type,
|
||||
u.department_id,
|
||||
d.name as department_name,
|
||||
u.post_id,
|
||||
p.post_name,
|
||||
u.role_id,
|
||||
u.email,
|
||||
u.phone,
|
||||
u.personnel_type,
|
||||
u.personnel_type_name,
|
||||
u.nation,
|
||||
u.nation_name,
|
||||
u.user_id_card,
|
||||
u.create_id,
|
||||
u.create_name,
|
||||
u.create_time,
|
||||
u.tenant_id,
|
||||
u.org_id,
|
||||
d.name as department_name,
|
||||
p.post_name,
|
||||
u.id,
|
||||
u.user_id,
|
||||
u.username,
|
||||
u.name,
|
||||
u.corpinfo_id,
|
||||
u.main_corp_flag,
|
||||
u.user_type,
|
||||
u.department_id,
|
||||
u.post_id,
|
||||
u.role_id,
|
||||
u.email,
|
||||
u.phone,
|
||||
u.personnel_type,
|
||||
u.personnel_type_name,
|
||||
u.nation,
|
||||
u.nation_name,
|
||||
u.user_id_card,
|
||||
u.user_avatar_url,
|
||||
u.current_address,
|
||||
u.location_address,
|
||||
u.rank_level,
|
||||
u.rank_level_name,
|
||||
u.sort,
|
||||
u.version,
|
||||
u.create_id,
|
||||
u.create_name,
|
||||
u.create_time,
|
||||
u.update_id,
|
||||
u.update_name,
|
||||
u.update_time,
|
||||
u.remarks,
|
||||
u.delete_enum,
|
||||
u.tenant_id,
|
||||
u.org_id,
|
||||
u.env,
|
||||
u.department_leader_flag,
|
||||
u.deputy_leader_flag,
|
||||
u.cultural_level,
|
||||
u.cultural_level_name,
|
||||
u.marital_status,
|
||||
u.marital_status_name,
|
||||
u.political_affiliation,
|
||||
u.political_affiliation_name,
|
||||
u.employment_flag,
|
||||
CASE
|
||||
WHEN MOD(SUBSTRING( u.user_id_card, 17, 1), 2) = 1 THEN '男'
|
||||
ELSE '女'
|
||||
|
|
@ -114,6 +158,8 @@
|
|||
u.user_avatar_url,
|
||||
u.current_address,
|
||||
u.location_address,
|
||||
u.rank_level,
|
||||
u.rank_level_name,
|
||||
u.sort,
|
||||
u.version,
|
||||
u.create_id,
|
||||
|
|
@ -135,6 +181,7 @@
|
|||
u.marital_status_name,
|
||||
u.political_affiliation,
|
||||
u.political_affiliation_name,
|
||||
u.employment_flag,
|
||||
CASE
|
||||
WHEN MOD(SUBSTRING( u.user_id_card, 17, 1), 2) = 1 THEN '男'
|
||||
ELSE '女'
|
||||
|
|
|
|||
Loading…
Reference in New Issue