Compare commits

...

2 Commits

Author SHA1 Message Date
lSun bfc15a29d6 人员入场 2025-06-12 15:33:49 +08:00
lSun 387333e9ca 人员入场 2025-06-11 15:11:14 +08:00
5 changed files with 15 additions and 6 deletions

View File

@ -417,6 +417,7 @@
bw.checkup_date as checkupDate,
checkup.PHOTO_PATH as checkupFilePath,
CASE
WHEN IFNULL(bw.checkup_date, '') = '' THEN '未体检'
WHEN STR_TO_DATE(bw.checkup_date, '%Y-%m-%d') < DATE_SUB(CURDATE(), INTERVAL 1 YEAR) THEN '过期'
ELSE '有效'
END AS checkupState

View File

@ -506,7 +506,7 @@ function completeClick(){
//上传合同
contractId,
uploadContractSwitch: uploadContractSwitch, //上传合同 是否填写
contractCode: contractRef, //上传合同 合同编号
contractCode: '0001-zdsc', //上传合同 合同编号
laborContractType: contractTermType, //上传合同 合同期限类型
contractValidDate: contractStartTime, //上传合同 合同签订日期
contractInvalidDate: contractEndTime, //上传合同 合同终止日期

View File

@ -167,12 +167,17 @@ function init(){
"defaultContent": "",
"orderable": false,
"render": function (data, type, row) {
var checkupFilePath = row['checkupFilePath'];
var checkupState = row['checkupState'];
var html = '';
if (checkupState === "有效") {
html = "<span style='color: green'>有效</span>";
if(checkupFilePath == null || checkupFilePath == "" || checkupFilePath == "null"){
html = "<span style='color: red'>未上传</span>";
}else{
html = "<span style='color: red'>过期</span>";
if(checkupState === "有效"){
html = "<span style='color: green'>已上传</span>";
}else if(checkupState === "过期"){
html = "<span style='color: #F8B664'>已过期</span>";
}
}
return html;
}

View File

@ -2003,6 +2003,9 @@ function nextClick(e) {
contractRef != null
) {
contractTf = uploadContractRequired();
}else{
layer.alert("合同编号为空,请在合同管理先上传合同", { icon: 0 });
return false;
}
if (contractTf) {
completeClick();

View File

@ -2,7 +2,7 @@ package com.bonus.lineProtector;
import com.bonus.common.security.annotation.EnableCustomConfig;
import com.bonus.common.security.annotation.EnableRyFeignClients;
import com.bonus.common.swagger.annotation.EnableCustomSwagger2;
//import com.bonus.common.swagger.annotation.EnableCustomSwagger2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@ -16,7 +16,7 @@ import org.springframework.core.env.Environment;
@EnableCustomConfig
@EnableRyFeignClients
@SpringBootApplication
@EnableCustomSwagger2
//@EnableCustomSwagger2
@MapperScan({"com.bonus.lineProtector.*.dao"})
@ServletComponentScan
public class LineProtectorApplication {