Commit f462ea47 authored by huyuchen's avatar huyuchen

huych-合同自动化代码提交

parent 742b9cc4
......@@ -17,4 +17,5 @@ public class EmployeeInfoMsgVo implements Serializable {
private String card;
private String phone;
private String message;
private String detailId;
}
......@@ -8,7 +8,6 @@ import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
......@@ -33,9 +32,8 @@ public class TEmployeeContractPreVo extends RowIndex implements Serializable {
/**
* 项目编码
*/
@NotBlank(message = "项目编码 不能为空")
@Length(max = 30, message = "项目编码 不能超过30 个字符")
@ExcelAttribute(name = "项目编码", isNotEmpty = true, errorInfo = "项目编码 不能为空", maxLength = 30)
@ExcelAttribute(name = "项目编码", maxLength = 30)
@Schema(description = "项目编码")
@ExcelProperty("项目编码")
private String deptNo;
......@@ -58,9 +56,8 @@ public class TEmployeeContractPreVo extends RowIndex implements Serializable {
/**
* 身份证号
*/
@NotBlank(message = "身份证号 不能为空")
@Length(max = 18, message = "身份证号 不能超过18 个字符")
@ExcelAttribute(name = "身份证号", isNotEmpty = true, errorInfo = "身份证号 不能为空", maxLength = 18)
@ExcelAttribute(name = "身份证号", maxLength = 18)
@Schema(description = "身份证号")
@ExcelProperty("身份证号")
private String empIdcard;
......@@ -231,8 +228,7 @@ public class TEmployeeContractPreVo extends RowIndex implements Serializable {
/**
* 合同年限
*/
@NotBlank(message = "合同年限不能为空")
@ExcelAttribute(name = "合同年限", errorInfo = "合同年限不能为空")
@ExcelAttribute(name = "合同年限")
@Schema(description = "合同年限")
private String contractTerm;
......
......@@ -198,4 +198,17 @@ public class EmployeeRegistrationPreController {
public R<EmployeeInfoMsgVo> getEmployeeInfo(@RequestParam String id) {
return employeeRegistrationPreService.getEmployeeInfo(id);
}
/**
* 查询身份信息
*
* @author huych
* @date 2025-03-13 16:55:32
**/
@Operation(summary = "查询瓜子身份信息")
@SysLog("查询身份信息")
@GetMapping("/getGzEmployeeInfo")
public R<EmployeeInfoMsgVo> getGzEmployeeInfo(@RequestParam String id) {
return employeeRegistrationPreService.getGzEmployeeInfo(id);
}
}
......@@ -93,7 +93,7 @@ public interface EmployeeRegistrationPreService extends IService<EmployeeRegistr
R<EmployeeInfoMsgVo> getEmployeeInfo(String cardOrId);
R<EmployeeInfoMsgVo> getGzEmployeeInfo(String cardOrId);
/**
* @param empIdCard 身份证
......
......@@ -101,6 +101,8 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi
private final TEmployeeContractPreMapper contractPreMapper;
private final TGzOfferInfoMapper gzOfferInfoMapper;
@Autowired
@Lazy
private ScheduleService scheduleService;
......@@ -1185,6 +1187,27 @@ public class EmployeeRegistrationPreServiceImpl extends ServiceImpl<EmployeeRegi
return R.failed(CommonConstants.NO_DATA_TO_HANDLE);
}
@Override
public R<EmployeeInfoMsgVo> getGzEmployeeInfo(String id) {
//获取人员档案id
EmployeeInfoMsgVo msgInfoVo = baseMapper.getEmployeeArchivesInfo(id);
if (Common.isEmpty(msgInfoVo)) {
return R.failed(CommonConstants.PARAM_IS_NOT_ERROR);
}
//获取预入职信息,如果有的话提示
if (Common.isNotNull(msgInfoVo) && Common.isNotNull(msgInfoVo.getDetailId())) {
TGzOfferInfo empMain = gzOfferInfoMapper.selectOne(Wrappers.<TGzOfferInfo>query().lambda()
.eq(TGzOfferInfo::getId, Integer.valueOf(msgInfoVo.getDetailId()))
.ne(TGzOfferInfo::getOfferStatus, CommonConstants.NINE_STRING)
.last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(empMain)) {
msgInfoVo.setMessage("当前Offer不符合档案采集状态,禁止操作");
}
return R.ok(msgInfoVo);
}
return R.failed(CommonConstants.NO_DATA_TO_HANDLE);
}
/**
* @Description: 获取前端客服的所有项目权限
* @Author: huych
......
......@@ -80,6 +80,7 @@
<result property="name" column="name"/>
<result property="card" column="card"/>
<result property="phone" column="phone"/>
<result property="detailId" column="detailId"/>
</resultMap>
<sql id="Base_Column_List">
......@@ -315,7 +316,8 @@
a.emp_idcard as card,
a.emp_phone as phone,
a.dept_id as deptId,
a.emp_name as name
a.emp_name as name,
a.warning_id as detailId
from t_registe_warning_employee a
where a.id = #{id}
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment