人员入场导入导出修改

暂退返产修改
This commit is contained in:
方亮 2026-02-13 12:30:41 +08:00
parent e209b430db
commit 02fc76cedf
7 changed files with 24 additions and 102 deletions

View File

@ -51,7 +51,7 @@ public class SuspendPersonServiceImpl implements SuspendPersonService{
bean.setOperate(1); bean.setOperate(1);
List<String> attendanceMachineArr = basePersonDao. List<String> attendanceMachineArr = basePersonDao.
selectAttendanceMachineArr(c.getProId()); selectAttendanceMachineArr(c.getProId());
if(attendanceMachineArr.size() != 0) { if(!attendanceMachineArr.isEmpty()) {
attendanceMachineArr.forEach(v -> { attendanceMachineArr.forEach(v -> {
bean.setAttendanceMachineId(v); bean.setAttendanceMachineId(v);
bean.setFacePhoto(facePhoto); bean.setFacePhoto(facePhoto);

View File

@ -1206,69 +1206,15 @@
</select> </select>
<select id="getBasePersonLists" resultType="com.bonus.bmw.person.entity.PersonComprehensiveBean"> <select id="getBasePersonLists" resultType="com.bonus.bmw.person.entity.PersonComprehensiveBean">
/*select
bw.name as name,bw.id_number as idNumber,bw.phone as phone,
td.value as postName,bp.name as proName,bw.is_furlough_person as isFurloughPerson,
CASE
bw.employment_type
WHEN '0' THEN
'固定用工'
WHEN '1' THEN
'临时用工'
WHEN '2' THEN
'分包管理人员'
END employmentType,
CASE
bw.light_status
WHEN '0' THEN
'红灯'
WHEN '1' THEN
'黄灯'
WHEN '2' THEN
'绿灯'
END lightStatus,
CASE
WHEN bweh.exit_status = '-1' AND bw.is_furlough_person = '0' THEN
'未出场'
WHEN bweh.exit_status = '-1' AND bw.is_furlough_person = '1' THEN
'临时离场'
WHEN bweh.exit_status = '1' THEN
'出场审核通过'
WHEN bweh.exit_status = '0' THEN
'出场未审核'
WHEN bweh.exit_status = '2' THEN
'出场审核不通过'
ELSE
'未入场'
END AS exitStatus,
bw.checkup_date as checkupDate,
checkup.PHOTO_PATH as checkupFilePath,
CASE
WHEN STR_TO_DATE(bw.checkup_date, '%Y-%m-%d') &lt; DATE_SUB(CURDATE(), INTERVAL 1 YEAR) THEN '过期'
ELSE '有效'
END AS checkupState
from bm_worker bw
LEFT JOIN t_dict td ON td.id = bw.post_id
AND td.is_active = '1'
LEFT JOIN bm_worker_ein_history bweh ON bweh.id_number = bw.id_number
and bweh.is_active = '1'
LEFT JOIN bm_project bp ON bp.id = bweh.project_id
AND bp.is_active = '1'
LEFT JOIN bm_worker_checkup checkup ON checkup.ID_NUMBER = bw.id_number
AND checkup.IS_ACTIVE = '1'
where bw.is_active='1'*/
SELECT SELECT
bw.name as name,bw.id_number as idNumber,bw.phone as phone, bw.name as name,bw.id_number as idNumber,bw.phone as phone,
td.value as postName,bp.name as proName,bw.is_furlough_person as isFurloughPerson, td.value as postName,bp.name as proName,bw.is_furlough_person as isFurloughPerson,
CASE CASE
bw.employment_type bw.employment_type
WHEN '0' THEN WHEN '0' THEN
'固定用工' '本地务工'
WHEN '1' THEN WHEN '1' THEN
'临时用工' '外地务工'
WHEN '2' THEN
'分包管理人员'
END employmentType, END employmentType,
CASE CASE
bw.light_status bw.light_status
@ -1330,7 +1276,10 @@
LEFT JOIN sys_role sr ON sr.id = sru.roleId LEFT JOIN sys_role sr ON sr.id = sru.roleId
AND sr.is_active = '1' AND sr.is_active = '1'
WHERE WHERE
bw.IS_ACTIVE = 1 and bw.worker_type != 0 bw.IS_ACTIVE = 1
<if test="params.workerType != null and params.workerType != ''">
and bw.worker_type = #{params.workerType}
</if>
<if test="params.name != null and params.name != ''"> <if test="params.name != null and params.name != ''">
and locate (#{params.name},bw.name) and locate (#{params.name},bw.name)
</if> </if>

View File

@ -52,15 +52,6 @@
</select> </select>
</div> </div>
</div> </div>
<div class="layui-input-inline">
<select id="employmentType" name="employmentType" class="form-control input-sm" lay-search="">
<option value="">人员类型</option>
<option value="0">临时用工</option>
<option value="1">固定用工</option>
<option value="2">分包管理人员</option>
</select>
</div>
<div class="layui-input-inline"> <div class="layui-input-inline">
<select id="lightStatus" name="lightStatus" class="form-control input-sm" lay-search=""> <select id="lightStatus" name="lightStatus" class="form-control input-sm" lay-search="">
<option value="">红绿灯状态</option> <option value="">红绿灯状态</option>

View File

@ -130,11 +130,9 @@ function init(){
var employmentType = row['employmentType']; var employmentType = row['employmentType'];
var html = ''; var html = '';
if (employmentType === "0") { if (employmentType === "0") {
html = "临时用工"; html = "本地务工";
}else if (employmentType === "1"){ }else if (employmentType === "1"){
html = "固定用工"; html = "外地务工";
}else if (employmentType === "2"){
html = "分包管理人员";
} }
return html; return html;
} }
@ -535,10 +533,9 @@ function exportPersonnelOnSite() {
+ "&name=" + name + "&name=" + name
+ "&proId=" + proId + "&proId=" + proId
+ "&idNumber=" + idNumber + "&idNumber=" + idNumber
+ "&employmentType=" + employmentType + "&workerType=1"
+ "&einStatus=" + einStatus + "&einStatus=" + einStatus
+ "&lightStatus=" + lightStatus + "&lightStatus=" + lightStatus;
//+ "&keyWord=" + keyWord;
} }
// 全局定义 onSaveSuccess 函数 // 全局定义 onSaveSuccess 函数

View File

@ -52,14 +52,6 @@
</select> </select>
</div> </div>
</div> </div>
<div class="layui-input-inline">
<select id="employmentType" name="employmentType" class="form-control input-sm" lay-search="">
<option value="">人员类型</option>
<option value="0">临时用工</option>
<option value="1">固定用工</option>
<option value="2">分包管理人员</option>
</select>
</div> </div>
<div class="layui-input-inline"> <div class="layui-input-inline">
<select id="lightStatus" name="lightStatus" class="form-control input-sm" lay-search=""> <select id="lightStatus" name="lightStatus" class="form-control input-sm" lay-search="">

View File

@ -51,7 +51,6 @@ function init(){
d.name = $("#name").val(); d.name = $("#name").val();
d.proName = $("#proName").val(); d.proName = $("#proName").val();
d.idNumber = $("#idNumber").val(); d.idNumber = $("#idNumber").val();
d.employmentType = $("#employmentType").val();
d.einStatus = $("#einStatus").val(); d.einStatus = $("#einStatus").val();
d.lightStatus = $("#lightStatus").val(); d.lightStatus = $("#lightStatus").val();
d.keyWord = $("#keyWord").val(); d.keyWord = $("#keyWord").val();
@ -130,11 +129,9 @@ function init(){
var employmentType = row['employmentType']; var employmentType = row['employmentType'];
var html = ''; var html = '';
if (employmentType === "0") { if (employmentType === "0") {
html = "临时用工"; html = "本地务工";
}else if (employmentType === "1"){ }else if (employmentType === "1"){
html = "固定用工"; html = "外地务工";
}else if (employmentType === "2"){
html = "分包管理人员";
} }
return html; return html;
} }
@ -521,23 +518,16 @@ function checkViewEn(idNumber) {
//导出excel表格 //导出excel表格
function exportPersonnelOnSite() { function exportPersonnelOnSite() {
var name = $("#name").val(); var name = $("#name").val();
var proName = $("#proName").val();
var idNumber = $("#idNumber").val(); var idNumber = $("#idNumber").val();
var employmentType = $("#employmentType").val();
var einStatus = $("#einStatus").val(); var einStatus = $("#einStatus").val();
var lightStatus = $("#lightStatus").val(); var lightStatus = $("#lightStatus").val();
var keyWord = $("#keyWord").val();
window.location.href = ctxPath + "/personComprehensive/exportBtnOut?token=" + token window.location.href = ctxPath + "/personComprehensive/exportBtnOut?token=" + token
+ "&name=" + name + "&name=" + name
+ "&proName=" + proName
+ "&idNumber=" + idNumber + "&idNumber=" + idNumber
+ "&employmentType=" + employmentType + "&workerType=0"
+ "&einStatus=" + einStatus + "&einStatus=" + einStatus
+ "&lightStatus=" + lightStatus + "&lightStatus=" + lightStatus;
+ "&keyWord=" + keyWord;
} }
// 全局定义 onSaveSuccess 函数 // 全局定义 onSaveSuccess 函数

View File

@ -117,15 +117,18 @@ function init(){
"data": "", "data": "",
"render": function (data, type, full) { "render": function (data, type, full) {
var node = ''; var node = '';
node = '<input id="unchecked" class="checkall" name="checked" onclick="showCheck(this)" value=\"' + full.name + "," + full.idNumber + "," + full.postName + "," + full.proName + "," + full.subName + "," + full.teamName + "," + full.exitVideoPath + "," + full.exitSignPath +'\" type="checkbox"/>'; // node = '<input id="unchecked" class="checkall" name="checked" onclick="showCheck(this)" value=\"' + full.name + "," + full.idNumber + "," + full.postName + "," + full.proName + "," + full.subName + "," + full.teamName + "," + full.exitVideoPath + "," + full.exitSignPath +'\" type="checkbox"/>';
node = '<input id="unchecked" class="checkall" name="checked" onclick="showCheck(this)" value=\"' + full.idNumber + "," + full.proId +'\" type="checkbox"/>';
if (checkList.length > 0) {//循环记忆数据 if (checkList.length > 0) {//循环记忆数据
for (let i = 0; i < checkList.length; i++) { for (let i = 0; i < checkList.length; i++) {
if (full.idNumber == checkList[i].id.split(',')[0]) { if (full.idNumber == checkList[i].id.split(',')[0]) {
if (checkList[i].type == '1') {//如果是1 则选中 if (checkList[i].type == '1') {//如果是1 则选中
pageCheckNum++; pageCheckNum++;
node = '<input class="checkall" onclick="showCheck(this)" id="checked" name="checked" checked="true" value=\"' + full.name + "," + full.idNumber + "," + full.postName + "," + full.proName + "," + full.subName + "," + full.teamName + "," + full.exitVideoPath + "," + full.exitSignPath + '\" type="checkbox"/>'; // node = '<input class="checkall" onclick="showCheck(this)" id="checked" name="checked" checked="true" value=\"' + full.name + "," + full.idNumber + "," + full.postName + "," + full.proName + "," + full.subName + "," + full.teamName + "," + full.exitVideoPath + "," + full.exitSignPath + '\" type="checkbox"/>';
node = '<input class="checkall" onclick="showCheck(this)" id="checked" name="checked" checked="true" value=\"' + full.idNumber + "," + full.proId + '\" type="checkbox"/>';
} else {//为2 不选中 } else {//为2 不选中
node = '<input class="checkall" onclick="showCheck(this)" name="checked" id="unchecked" value=\"' + full.name + "," + full.idNumber + "," + full.postName + "," + full.proName + "," + full.subName + "," + full.teamName + "," + full.exitVideoPath + "," + full.exitSignPath + '\" type="checkbox"/>'; // node = '<input class="checkall" onclick="showCheck(this)" name="checked" id="unchecked" value=\"' + full.name + "," + full.idNumber + "," + full.postName + "," + full.proName + "," + full.subName + "," + full.teamName + "," + full.exitVideoPath + "," + full.exitSignPath + '\" type="checkbox"/>';
node = '<input class="checkall" onclick="showCheck(this)" name="checked" id="unchecked" value=\"' + "," + full.idNumber + "," + full.proId + '\" type="checkbox"/>';
} }
} }
} }