无信号班组增加排序
This commit is contained in:
parent
7e73af1976
commit
c6b7205b71
|
|
@ -62,11 +62,16 @@ public class SpecialHolidayController {
|
||||||
public R addSpecialHoliday(@RequestBody Holiday bean) {
|
public R addSpecialHoliday(@RequestBody Holiday bean) {
|
||||||
R ar = null;
|
R ar = null;
|
||||||
try{
|
try{
|
||||||
int i = service.addSpecialHoliday(bean);
|
int k = service.getSpecialHolidayByName(bean);
|
||||||
if(i>0){
|
if(k>0){
|
||||||
ar = R.ok();
|
ar = R.fail("重复的名字");
|
||||||
}else{
|
}else{
|
||||||
ar = R.fail(Constants.INSERT_FAIL);
|
int i = service.addSpecialHoliday(bean);
|
||||||
|
if(i>0){
|
||||||
|
ar = R.ok();
|
||||||
|
}else{
|
||||||
|
ar = R.fail(Constants.INSERT_FAIL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
LEFT JOIN ( SELECT id_number, project_id, is_furlough_person FROM bm_worker_ein_history WHERE ( is_furlough_person = '1' OR exit_status != 1 ) AND is_active = '1' limit 1) bweh ON bweh.id_number = t.id_number
|
LEFT JOIN ( SELECT id_number, project_id, is_furlough_person FROM bm_worker_ein_history WHERE ( is_furlough_person = '1' OR exit_status != 1 ) AND is_active = '1' limit 1) bweh ON bweh.id_number = t.id_number
|
||||||
LEFT JOIN bm_project bp2 ON bp2.id = bweh.project_id
|
LEFT JOIN bm_project bp2 ON bp2.id = bweh.project_id
|
||||||
<where>
|
<where>
|
||||||
t.is_active = '1' and t.id != '1' and t.username is not null
|
t.is_active = '1' and t.id != '1' and t.username is not null AND sr.id !='5' and sr.id !='36'
|
||||||
<if test="params.userName != null and params.userName != ''">
|
<if test="params.userName != null and params.userName != ''">
|
||||||
and t.username like concat('%', #{params.userName}, '%')
|
and t.username like concat('%', #{params.userName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -81,7 +81,7 @@
|
||||||
LEFT JOIN ( SELECT id_number, project_id, is_furlough_person FROM bm_worker_ein_history WHERE ( is_furlough_person = '1' OR exit_status != 1 ) AND is_active = '1' limit 1) bweh ON bweh.id_number = t.id_number
|
LEFT JOIN ( SELECT id_number, project_id, is_furlough_person FROM bm_worker_ein_history WHERE ( is_furlough_person = '1' OR exit_status != 1 ) AND is_active = '1' limit 1) bweh ON bweh.id_number = t.id_number
|
||||||
LEFT JOIN bm_project bp2 ON bp2.id = bweh.project_id
|
LEFT JOIN bm_project bp2 ON bp2.id = bweh.project_id
|
||||||
<where>
|
<where>
|
||||||
t.is_active = '1' and t.id != '1' and t.username is not null
|
t.is_active = '1' and t.id != '1' and t.username is not null AND sr.id !='5' and sr.id !='36'
|
||||||
<if test="params.userName != null and params.userName != ''">
|
<if test="params.userName != null and params.userName != ''">
|
||||||
and t.username like concat('%', #{params.userName}, '%')
|
and t.username like concat('%', #{params.userName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -102,6 +102,7 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
ORDER BY sr.id, t.id desc
|
||||||
limit #{offset}, #{limit}
|
limit #{offset}, #{limit}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,9 @@
|
||||||
</select>
|
</select>
|
||||||
<select id="getSpecialHolidayByName" resultType="java.lang.Integer">
|
<select id="getSpecialHolidayByName" resultType="java.lang.Integer">
|
||||||
select count(1) from bm_holidays where holiday_name = #{holidayName} and is_active= '1'
|
select count(1) from bm_holidays where holiday_name = #{holidayName} and is_active= '1'
|
||||||
|
<if test="id != null and id !=''">
|
||||||
|
and id != #{id}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="getHolidayMessageNoticeTask" resultType="com.bonus.bmw.holiday.entity.Holiday">
|
<select id="getHolidayMessageNoticeTask" resultType="com.bonus.bmw.holiday.entity.Holiday">
|
||||||
SELECT
|
SELECT
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
GROUP BY bnst.id
|
GROUP BY bnst.id
|
||||||
|
ORDER BY bnst.start_time desc,bnst.stop_time desc
|
||||||
limit #{offset}, #{limit}
|
limit #{offset}, #{limit}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
@ -154,6 +155,7 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
GROUP BY bw.id_number
|
GROUP BY bw.id_number
|
||||||
|
ORDER BY bnstp.id_number desc
|
||||||
limit #{offset}, #{limit}
|
limit #{offset}, #{limit}
|
||||||
</select>
|
</select>
|
||||||
<select id="getPersonCount" resultType="java.lang.Integer">
|
<select id="getPersonCount" resultType="java.lang.Integer">
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,7 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
GROUP BY bnst.id
|
GROUP BY bnst.id
|
||||||
|
ORDER BY bnst.start_time desc , bnst.stop_time desc
|
||||||
limit #{offset}, #{limit}
|
limit #{offset}, #{limit}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1470,7 +1470,7 @@ function uploadFileProve(number) {
|
||||||
},
|
},
|
||||||
choose: function (obj) {
|
choose: function (obj) {
|
||||||
if(Object.keys(files).length>=number){
|
if(Object.keys(files).length>=number){
|
||||||
layer.msg("最多上传"+number+"张图片",);
|
layer.msg("最多上传"+number+"张",);
|
||||||
return false;
|
return false;
|
||||||
}else{
|
}else{
|
||||||
tk = layer.msg('社保文件上传中...',{ icon:16,shade:0.8,time: 0});
|
tk = layer.msg('社保文件上传中...',{ icon:16,shade:0.8,time: 0});
|
||||||
|
|
@ -1575,7 +1575,7 @@ function uploadFileWageCard(number) {
|
||||||
},
|
},
|
||||||
choose: function (obj) {
|
choose: function (obj) {
|
||||||
if(Object.keys(WageCardFiles).length>=number){
|
if(Object.keys(WageCardFiles).length>=number){
|
||||||
layer.msg("最多上传"+number+"张图片", { time: 2000, icon: 2 });
|
layer.msg("最多上传"+number+"张", { time: 2000, icon: 2 });
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
flag = false;
|
flag = false;
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ let teamExamFiles = {}
|
||||||
let socialSecurityFiles ={}
|
let socialSecurityFiles ={}
|
||||||
|
|
||||||
var deleteContractPath ="", deleteWageCardPath = "";
|
var deleteContractPath ="", deleteWageCardPath = "";
|
||||||
|
var contractNum = 0, wageCardNum = 0;
|
||||||
|
|
||||||
var tk;
|
var tk;
|
||||||
layui.use(['form', 'laydate', 'upload', 'element'], function () {
|
layui.use(['form', 'laydate', 'upload', 'element'], function () {
|
||||||
|
|
@ -1055,6 +1056,7 @@ function uploadFileWageCard(number) {
|
||||||
size: 1024 * 30, //最大文件大小,单位k
|
size: 1024 * 30, //最大文件大小,单位k
|
||||||
bindAction: "#hideUploadWageCard", //绑定的按钮
|
bindAction: "#hideUploadWageCard", //绑定的按钮
|
||||||
field: "file", //传到后台的字段名,默认file
|
field: "file", //传到后台的字段名,默认file
|
||||||
|
timeout: 60000,
|
||||||
text: {
|
text: {
|
||||||
// 自定义提示文本
|
// 自定义提示文本
|
||||||
"data-format-error": "上传失败,请重新上传", // 数据格式错误的提示
|
"data-format-error": "上传失败,请重新上传", // 数据格式错误的提示
|
||||||
|
|
@ -1066,7 +1068,7 @@ function uploadFileWageCard(number) {
|
||||||
"cross-domain": "", // IE 下跨域的提示
|
"cross-domain": "", // IE 下跨域的提示
|
||||||
},
|
},
|
||||||
choose: function (obj) {
|
choose: function (obj) {
|
||||||
if(Object.keys(WageCardFiles).length>=number){
|
if(Object.keys(WageCardFiles).length + wageCardNum >=number){
|
||||||
layer.msg("最多上传"+number+"张图片", { time: 2000, icon: 2 });
|
layer.msg("最多上传"+number+"张图片", { time: 2000, icon: 2 });
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -1116,7 +1118,6 @@ function uploadFileWageCard(number) {
|
||||||
this.data = {
|
this.data = {
|
||||||
fileType: "工资卡文件",
|
fileType: "工资卡文件",
|
||||||
idNumber: $("#idNumber").val(),
|
idNumber: $("#idNumber").val(),
|
||||||
isEdit:1
|
|
||||||
};
|
};
|
||||||
if ($("[name='brand']").val() == "") {
|
if ($("[name='brand']").val() == "") {
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -1491,6 +1492,7 @@ function uploadFileContract(number) {
|
||||||
size: 1024 * 30, //最大文件大小,单位k
|
size: 1024 * 30, //最大文件大小,单位k
|
||||||
bindAction: "#hideUploadContract", //绑定的按钮
|
bindAction: "#hideUploadContract", //绑定的按钮
|
||||||
field: "file", //传到后台的字段名,默认file
|
field: "file", //传到后台的字段名,默认file
|
||||||
|
timeout: 60000,
|
||||||
text: {
|
text: {
|
||||||
// 自定义提示文本
|
// 自定义提示文本
|
||||||
"data-format-error": "上传失败,请重新上传", // 数据格式错误的提示
|
"data-format-error": "上传失败,请重新上传", // 数据格式错误的提示
|
||||||
|
|
@ -1502,6 +1504,11 @@ function uploadFileContract(number) {
|
||||||
"cross-domain": "", // IE 下跨域的提示
|
"cross-domain": "", // IE 下跨域的提示
|
||||||
},
|
},
|
||||||
choose: function (obj) {
|
choose: function (obj) {
|
||||||
|
debugger;
|
||||||
|
if(Object.keys(ContractFiles).length + contractNum >=number){
|
||||||
|
layer.msg("最多上传"+number+"张", { time: 2000, icon: 2 });
|
||||||
|
return false;
|
||||||
|
}
|
||||||
flag = false;
|
flag = false;
|
||||||
var suffixType = ""; //后缀类型
|
var suffixType = ""; //后缀类型
|
||||||
uploadcom.config.elem.next()[0].value = "";
|
uploadcom.config.elem.next()[0].value = "";
|
||||||
|
|
@ -1549,7 +1556,6 @@ function uploadFileContract(number) {
|
||||||
fileType: "合同文件",
|
fileType: "合同文件",
|
||||||
contractId,
|
contractId,
|
||||||
idNumber: $("#idNumber").val(),
|
idNumber: $("#idNumber").val(),
|
||||||
isEdit:1
|
|
||||||
};
|
};
|
||||||
if ($("[name='brand']").val() == "") {
|
if ($("[name='brand']").val() == "") {
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -1857,7 +1863,9 @@ function setData(data) {
|
||||||
fileSrc +
|
fileSrc +
|
||||||
'" alt="" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
'" alt="" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||||
// htmlCardPath += '<div><span>' + (socialSecurityUnit[i].length > 8 ? (socialSecurityUnit[i].substr(0, 8) + "..") : socialSecurityUnit[i]) + '</span></div>'
|
// htmlCardPath += '<div><span>' + (socialSecurityUnit[i].length > 8 ? (socialSecurityUnit[i].substr(0, 8) + "..") : socialSecurityUnit[i]) + '</span></div>'
|
||||||
|
htmlCardPath += "<div><span>已上传的工资卡</span></div>";
|
||||||
htmlCardPath += "</div>";
|
htmlCardPath += "</div>";
|
||||||
|
wageCardNum ++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$("#demoWageCard").append(htmlCardPath);
|
$("#demoWageCard").append(htmlCardPath);
|
||||||
|
|
@ -1900,7 +1908,9 @@ function setData(data) {
|
||||||
'<img src="' +
|
'<img src="' +
|
||||||
path +
|
path +
|
||||||
'" alt="" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
'" alt="" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||||
|
htmlContract += "<div><span>已上传的合同</span></div>";
|
||||||
htmlContract += "</div>";
|
htmlContract += "</div>";
|
||||||
|
contractNum ++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$("#demoContract").append(htmlContract);
|
$("#demoContract").append(htmlContract);
|
||||||
|
|
@ -2040,18 +2050,6 @@ function setData(data) {
|
||||||
img.src = fileUrl + "/" + data.facePhoto;
|
img.src = fileUrl + "/" + data.facePhoto;
|
||||||
$("#facePath").val(data.facePhoto);
|
$("#facePath").val(data.facePhoto);
|
||||||
|
|
||||||
// bindImageDeleteEvent("#previewProve", socialSecurityFiles, () => socialSecurityPath = "");
|
|
||||||
|
|
||||||
// bindImageDeleteEvent("#demoWageCard", WageCardFiles, () => {
|
|
||||||
// // 清除工资卡文件路径
|
|
||||||
// wageCardPath = [];
|
|
||||||
// });
|
|
||||||
|
|
||||||
// bindImageDeleteEvent("#demoContract", ContractFiles, () => {
|
|
||||||
// // 清除合同文件路径
|
|
||||||
// contractPath = [];
|
|
||||||
// });
|
|
||||||
|
|
||||||
|
|
||||||
bindImageDeleteEvent("#checkupProve", CheckupFiles , () => checkupFilePath = "");
|
bindImageDeleteEvent("#checkupProve", CheckupFiles , () => checkupFilePath = "");
|
||||||
bindImageDeleteEvent("#companyExamDemoProve", companyExamFiles, () => companyExamFilePath = "");
|
bindImageDeleteEvent("#companyExamDemoProve", companyExamFiles, () => companyExamFilePath = "");
|
||||||
|
|
@ -2568,10 +2566,12 @@ function uploadSpecial(number) {
|
||||||
function deleteContract(id,path){
|
function deleteContract(id,path){
|
||||||
$('#' + id).remove();
|
$('#' + id).remove();
|
||||||
deleteContractPath += path + ',';
|
deleteContractPath += path + ',';
|
||||||
|
contractNum --
|
||||||
}
|
}
|
||||||
|
|
||||||
//删除合同见证照片
|
//删除合同见证照片
|
||||||
function deleteWageCard(id,path){
|
function deleteWageCard(id,path){
|
||||||
$('#' + id).remove();
|
$('#' + id).remove();
|
||||||
deleteWageCardPath += path + ',';
|
deleteWageCardPath += path + ',';
|
||||||
|
wageCardNum --
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue