人员入场
This commit is contained in:
parent
387333e9ca
commit
bfc15a29d6
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue