commit
This commit is contained in:
+10
-3
@@ -69,7 +69,7 @@ public class TheRapyRecuperationUserQueryController {
|
|||||||
@ViReturn
|
@ViReturn
|
||||||
@RequiresAuthentication
|
@RequiresAuthentication
|
||||||
public Object pageData(String regionalNature, Integer state, PageForm pageForm,
|
public Object pageData(String regionalNature, Integer state, PageForm pageForm,
|
||||||
Integer startYear, Integer endYear, String unionId,
|
Integer startYear, Integer endYear, String unionId,Integer isTakePartIn,
|
||||||
String unitId, String takePartInLineId, String agencyId, String lotId,
|
String unitId, String takePartInLineId, String agencyId, String lotId,
|
||||||
String takePartInBaseManagementId,String signUpMode) {
|
String takePartInBaseManagementId,String signUpMode) {
|
||||||
Cnd cnd = Cnd.NEW();
|
Cnd cnd = Cnd.NEW();
|
||||||
@@ -94,6 +94,7 @@ public class TheRapyRecuperationUserQueryController {
|
|||||||
cnd.andEX("lxs.`year`", ">=", startYear);
|
cnd.andEX("lxs.`year`", ">=", startYear);
|
||||||
cnd.andEX("lxs.`year`", "<=", endYear);
|
cnd.andEX("lxs.`year`", "<=", endYear);
|
||||||
cnd.andEX("enroll.takePartInTravelAgencyId", "=", agencyId);
|
cnd.andEX("enroll.takePartInTravelAgencyId", "=", agencyId);
|
||||||
|
cnd.andEX("enroll.isTakePartIn", "=", isTakePartIn);
|
||||||
} else {
|
} else {
|
||||||
sql = Sqls.create("""
|
sql = Sqls.create("""
|
||||||
SELECT
|
SELECT
|
||||||
@@ -122,6 +123,7 @@ public class TheRapyRecuperationUserQueryController {
|
|||||||
cnd.andEX("line.id", "=", takePartInLineId);
|
cnd.andEX("line.id", "=", takePartInLineId);
|
||||||
cnd.andEX("line.regionalNature", "=", regionalNature);
|
cnd.andEX("line.regionalNature", "=", regionalNature);
|
||||||
cnd.andEX("lineu.signUpMode","=",signUpMode);
|
cnd.andEX("lineu.signUpMode","=",signUpMode);
|
||||||
|
cnd.andEX("enroll.isTakePartIn", "=", isTakePartIn);
|
||||||
if (state == 3) {
|
if (state == 3) {
|
||||||
sql.setVar("lotSql", "(select lotName from the_rapy_recuperation_lot where id = ma.lotId) as lotName");
|
sql.setVar("lotSql", "(select lotName from the_rapy_recuperation_lot where id = ma.lotId) as lotName");
|
||||||
cnd.and("enroll.takePartInBaseManagementId", "is not", null);
|
cnd.and("enroll.takePartInBaseManagementId", "is not", null);
|
||||||
@@ -150,7 +152,7 @@ public class TheRapyRecuperationUserQueryController {
|
|||||||
|
|
||||||
@At
|
@At
|
||||||
@ViReturn
|
@ViReturn
|
||||||
public Object getXlLxsUserCount(String unionId, Integer startYear, Integer endYear, Integer signUpMode) {
|
public Object getXlLxsUserCount(Integer isTakePartIn, String unionId, Integer startYear, Integer endYear, Integer signUpMode) {
|
||||||
Cnd cnd = Cnd.NEW();
|
Cnd cnd = Cnd.NEW();
|
||||||
cnd.andEX("YEAR(signingUptime)", ">=", startYear);
|
cnd.andEX("YEAR(signingUptime)", ">=", startYear);
|
||||||
cnd.andEX("YEAR(signingUptime)", "<=", endYear);
|
cnd.andEX("YEAR(signingUptime)", "<=", endYear);
|
||||||
@@ -160,6 +162,7 @@ public class TheRapyRecuperationUserQueryController {
|
|||||||
cnd.and("isNormal", "=", true);
|
cnd.and("isNormal", "=", true);
|
||||||
cnd.and("takePartInLineId", "is not", null);
|
cnd.and("takePartInLineId", "is not", null);
|
||||||
cnd.and("stateId", "=", TheRapyRecuperationState.PASS);
|
cnd.and("stateId", "=", TheRapyRecuperationState.PASS);
|
||||||
|
cnd.andEX("isTakePartIn", "=", isTakePartIn);
|
||||||
cnd.andEX("(select signUpMode from the_rapy_recuperation_line_union_select where id = takePartInLineId)", "=", signUpMode);
|
cnd.andEX("(select signUpMode from the_rapy_recuperation_line_union_select where id = takePartInLineId)", "=", signUpMode);
|
||||||
int count = baseService.dao().count(TheRapyRecuperationEnroll.class, cnd);
|
int count = baseService.dao().count(TheRapyRecuperationEnroll.class, cnd);
|
||||||
int count1 = baseService.dao().count(TheRapyRecuperationEnroll.class, Cnd.where("takePartInTravelAgencyId", "is not", null)
|
int count1 = baseService.dao().count(TheRapyRecuperationEnroll.class, Cnd.where("takePartInTravelAgencyId", "is not", null)
|
||||||
@@ -167,12 +170,14 @@ public class TheRapyRecuperationUserQueryController {
|
|||||||
.andEX("YEAR(signingUptime)", ">=", startYear)
|
.andEX("YEAR(signingUptime)", ">=", startYear)
|
||||||
.andEX("YEAR(signingUptime)", "<=", endYear)
|
.andEX("YEAR(signingUptime)", "<=", endYear)
|
||||||
.andEX("isNormal", "=", true)
|
.andEX("isNormal", "=", true)
|
||||||
|
.andEX("isTakePartIn", "=", isTakePartIn)
|
||||||
.andEX("(select signUpMode from the_rapy_recuperation_line_union_select where id = takePartInLineId)", "=", signUpMode));
|
.andEX("(select signUpMode from the_rapy_recuperation_line_union_select where id = takePartInLineId)", "=", signUpMode));
|
||||||
int count2 = baseService.dao().count(TheRapyRecuperationEnroll.class, Cnd.where("takePartInBaseManagementId", "is not", null)
|
int count2 = baseService.dao().count(TheRapyRecuperationEnroll.class, Cnd.where("takePartInBaseManagementId", "is not", null)
|
||||||
.andEX("selfUnionId", "=", unionId)
|
.andEX("selfUnionId", "=", unionId)
|
||||||
.andEX("YEAR(signingUptime)", ">=", startYear)
|
.andEX("YEAR(signingUptime)", ">=", startYear)
|
||||||
.andEX("YEAR(signingUptime)", "<=", endYear)
|
.andEX("YEAR(signingUptime)", "<=", endYear)
|
||||||
.andEX("isNormal", "=", true)
|
.andEX("isNormal", "=", true)
|
||||||
|
.andEX("isTakePartIn", "=", isTakePartIn)
|
||||||
.andEX("(select signUpMode from the_rapy_recuperation_line_union_select where id = takePartInLineId)", "=", signUpMode));
|
.andEX("(select signUpMode from the_rapy_recuperation_line_union_select where id = takePartInLineId)", "=", signUpMode));
|
||||||
return Map.of("xlCount", count, "lxsCount", count1, "jdCount", count2);
|
return Map.of("xlCount", count, "lxsCount", count1, "jdCount", count2);
|
||||||
}
|
}
|
||||||
@@ -311,7 +316,7 @@ public class TheRapyRecuperationUserQueryController {
|
|||||||
public void doExport(String regionalNature, Integer state,String searchName,String searchKeyword,
|
public void doExport(String regionalNature, Integer state,String searchName,String searchKeyword,
|
||||||
Integer startYear, Integer endYear, String unionId,
|
Integer startYear, Integer endYear, String unionId,
|
||||||
String unitId, String takePartInLineId, String agencyId, String lotId,
|
String unitId, String takePartInLineId, String agencyId, String lotId,
|
||||||
String takePartInBaseManagementId,String signUpMode,
|
String takePartInBaseManagementId,String signUpMode,Integer isTakePartIn,
|
||||||
HttpServletResponse response) throws IOException {
|
HttpServletResponse response) throws IOException {
|
||||||
|
|
||||||
Cnd cnd = Cnd.NEW();
|
Cnd cnd = Cnd.NEW();
|
||||||
@@ -336,6 +341,7 @@ public class TheRapyRecuperationUserQueryController {
|
|||||||
cnd.andEX("lxs.`year`", ">=", startYear);
|
cnd.andEX("lxs.`year`", ">=", startYear);
|
||||||
cnd.andEX("lxs.`year`", "<=", endYear);
|
cnd.andEX("lxs.`year`", "<=", endYear);
|
||||||
cnd.andEX("enroll.takePartInTravelAgencyId", "=", agencyId);
|
cnd.andEX("enroll.takePartInTravelAgencyId", "=", agencyId);
|
||||||
|
cnd.andEX("enroll.isTakePartIn", "=", isTakePartIn);
|
||||||
} else {
|
} else {
|
||||||
sql = Sqls.create("""
|
sql = Sqls.create("""
|
||||||
SELECT
|
SELECT
|
||||||
@@ -365,6 +371,7 @@ public class TheRapyRecuperationUserQueryController {
|
|||||||
cnd.andEX("line.id", "=", takePartInLineId);
|
cnd.andEX("line.id", "=", takePartInLineId);
|
||||||
cnd.andEX("line.regionalNature", "=", regionalNature);
|
cnd.andEX("line.regionalNature", "=", regionalNature);
|
||||||
cnd.andEX("lineu.signUpMode","=",signUpMode);
|
cnd.andEX("lineu.signUpMode","=",signUpMode);
|
||||||
|
cnd.andEX("enroll.isTakePartIn","=",isTakePartIn);
|
||||||
if (state == 3) {
|
if (state == 3) {
|
||||||
sql.setVar("lotSql", "(select lotName from the_rapy_recuperation_lot where id = ma.lotId) as lotName");
|
sql.setVar("lotSql", "(select lotName from the_rapy_recuperation_lot where id = ma.lotId) as lotName");
|
||||||
cnd.and("enroll.takePartInBaseManagementId", "is not", null);
|
cnd.and("enroll.takePartInBaseManagementId", "is not", null);
|
||||||
|
|||||||
+5
-4
@@ -718,13 +718,14 @@ layout("/layouts/platform.html"){
|
|||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
success: (data) => {
|
success: (data) => {
|
||||||
requestLaterMsgFun(this, data, async () => {
|
if (data.code === 0){
|
||||||
|
this.$message.success(data.msg)
|
||||||
this.pageData();
|
this.pageData();
|
||||||
this.importVisible = false
|
this.importVisible = false
|
||||||
}, () => {
|
|
||||||
}, () => {
|
|
||||||
this.importLoading = false
|
this.importLoading = false
|
||||||
})
|
}else {
|
||||||
|
this.importVisible = false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
error: (data) => {
|
error: (data) => {
|
||||||
this.notifyWarning("导入失败")
|
this.notifyWarning("导入失败")
|
||||||
|
|||||||
@@ -865,11 +865,19 @@ layout("/layouts/platform.html"){
|
|||||||
data.append("file", val.raw, val.raw.name);
|
data.append("file", val.raw, val.raw.name);
|
||||||
});
|
});
|
||||||
this.importLoading = true
|
this.importLoading = true
|
||||||
const resp = await $.post(loc() + "/travelLineImport", data)
|
const resp = await $.ajax({
|
||||||
if (resp.code === 0) {
|
url: loc() + '/travelLineImport',
|
||||||
|
type: 'POST',
|
||||||
|
data: data,
|
||||||
|
processData: false,
|
||||||
|
contentType: false
|
||||||
|
})
|
||||||
|
if (resp.code === 0){
|
||||||
|
this.$message.success(resp.msg)
|
||||||
this.pageData();
|
this.pageData();
|
||||||
this.importVisible = false
|
this.importVisible = false
|
||||||
} else {
|
this.importLoading = false
|
||||||
|
}else {
|
||||||
this.notifyWarning("导入失败")
|
this.notifyWarning("导入失败")
|
||||||
this.importLoading = false
|
this.importLoading = false
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-3
@@ -439,12 +439,19 @@ layout("/layouts/platform.html"){
|
|||||||
});
|
});
|
||||||
this.importLoading = true
|
this.importLoading = true
|
||||||
|
|
||||||
const resp = await $.post(loc() + '/travelAgencyImport', data)
|
const resp = await $.ajax({
|
||||||
if (resp.code === 0) {
|
url: loc() + '/travelAgencyImport',
|
||||||
|
type: 'POST',
|
||||||
|
data: data,
|
||||||
|
processData: false,
|
||||||
|
contentType: false
|
||||||
|
})
|
||||||
|
if (resp.code===0){
|
||||||
|
this.$message.success(resp.msg)
|
||||||
this.pageData();
|
this.pageData();
|
||||||
this.importVisible = false
|
this.importVisible = false
|
||||||
this.importLoading = false
|
this.importLoading = false
|
||||||
} else {
|
}else {
|
||||||
this.notifyWarning("导入失败")
|
this.notifyWarning("导入失败")
|
||||||
this.importLoading = false
|
this.importLoading = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,6 +95,15 @@ layout("/layouts/platform.html"){
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<span>是否参加:</span>
|
||||||
|
<el-radio-group @change="doSearch();getXlLxsUserCount()" size="medium"
|
||||||
|
v-model="pageForm.isTakePartIn">
|
||||||
|
<el-radio-button label="">全部</el-radio-button>
|
||||||
|
<el-radio-button label="1">已参加</el-radio-button>
|
||||||
|
<el-radio-button label="0">未参加</el-radio-button>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-col>
|
||||||
<!-- <el-col :span="12">
|
<!-- <el-col :span="12">
|
||||||
<span>所属单位:</span>
|
<span>所属单位:</span>
|
||||||
<el-select v-model="pageForm.unitId" placeholder="请选择所属单位" @change="doSearch"
|
<el-select v-model="pageForm.unitId" placeholder="请选择所属单位" @change="doSearch"
|
||||||
@@ -610,6 +619,7 @@ layout("/layouts/platform.html"){
|
|||||||
regionalNature: '',
|
regionalNature: '',
|
||||||
signUpMode: '',
|
signUpMode: '',
|
||||||
lotId:'',
|
lotId:'',
|
||||||
|
isTakePartIn:'',
|
||||||
takePartInLineId:'',
|
takePartInLineId:'',
|
||||||
},
|
},
|
||||||
multipleSelection: [],
|
multipleSelection: [],
|
||||||
@@ -662,6 +672,7 @@ layout("/layouts/platform.html"){
|
|||||||
state,
|
state,
|
||||||
lotId,
|
lotId,
|
||||||
linePlayTime,
|
linePlayTime,
|
||||||
|
isTakePartIn,
|
||||||
} = this.pageForm
|
} = this.pageForm
|
||||||
window.open(loc() + "/doExport?takePartInBaseManagementId=" + takePartInBaseManagementId +
|
window.open(loc() + "/doExport?takePartInBaseManagementId=" + takePartInBaseManagementId +
|
||||||
"&searchName=" + searchName +
|
"&searchName=" + searchName +
|
||||||
@@ -675,6 +686,7 @@ layout("/layouts/platform.html"){
|
|||||||
"&takePartInLineId=" + takePartInLineId +
|
"&takePartInLineId=" + takePartInLineId +
|
||||||
"&state=" + state +
|
"&state=" + state +
|
||||||
"&lotId=" + lotId +
|
"&lotId=" + lotId +
|
||||||
|
"&isTakePartIn=" + isTakePartIn +
|
||||||
"&linePlayTime=" + linePlayTime)
|
"&linePlayTime=" + linePlayTime)
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -922,6 +934,7 @@ layout("/layouts/platform.html"){
|
|||||||
unionId: this.pageForm.unionId,
|
unionId: this.pageForm.unionId,
|
||||||
startYear: this.pageForm.startYear,
|
startYear: this.pageForm.startYear,
|
||||||
endYear: this.pageForm.endYear,
|
endYear: this.pageForm.endYear,
|
||||||
|
isTakePartIn: this.pageForm.isTakePartIn,
|
||||||
signUpMode: this.pageForm.signUpMode
|
signUpMode: this.pageForm.signUpMode
|
||||||
})
|
})
|
||||||
this.options.forEach((v, index) => {
|
this.options.forEach((v, index) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user