server_commit
This commit is contained in:
+3
-3
@@ -414,8 +414,8 @@ public class ActivityApplyController {
|
|||||||
apply.setActivityUnionName(basicUnion.getUnionname());
|
apply.setActivityUnionName(basicUnion.getUnionname());
|
||||||
apply.setApplyUnitId(basicUnit.getId());
|
apply.setApplyUnitId(basicUnit.getId());
|
||||||
|
|
||||||
// dao.update(Sys_user.class, Chain.make("mobile", apply.getMobile()).add("position", apply.getPosition()),
|
dao.update(Sys_user.class, Chain.make("mobile", apply.getMobile()).add("position", apply.getPosition()),
|
||||||
// Cnd.where("id", "=", apply.getUserId()));
|
Cnd.where("id", "=", apply.getUserId()));
|
||||||
}
|
}
|
||||||
activitySchoolApplyService.doApplies(activityId, basicUnit.getUnionid(), eventId, Arrays.asList(applies));
|
activitySchoolApplyService.doApplies(activityId, basicUnit.getUnionid(), eventId, Arrays.asList(applies));
|
||||||
return null;
|
return null;
|
||||||
@@ -707,7 +707,7 @@ public class ActivityApplyController {
|
|||||||
@Param(value = "LeaderData", required = false) ActivitySchoolApply LeaderData,
|
@Param(value = "LeaderData", required = false) ActivitySchoolApply LeaderData,
|
||||||
@Param(value = "CoachData", required = false) ActivitySchoolApply CoachData,
|
@Param(value = "CoachData", required = false) ActivitySchoolApply CoachData,
|
||||||
@Param(value = "headData", required = false) ActivitySchoolApply headData,
|
@Param(value = "headData", required = false) ActivitySchoolApply headData,
|
||||||
@Param(value = "headData") String activityId) {
|
@Param(value = "activityId") String activityId) {
|
||||||
ActivityBasicUnit thisBasicUnit = activitySchoolService.dao().fetch(ActivityBasicUnit.class, Cnd.where("id", "=",ShiroUtil.getUnitId()));
|
ActivityBasicUnit thisBasicUnit = activitySchoolService.dao().fetch(ActivityBasicUnit.class, Cnd.where("id", "=",ShiroUtil.getUnitId()));
|
||||||
ActivityBasicUnion thisBasicUnion = activitySchoolService.dao().fetch(ActivityBasicUnion.class, Cnd.where("id", "=", thisBasicUnit.getUnionid()));
|
ActivityBasicUnion thisBasicUnion = activitySchoolService.dao().fetch(ActivityBasicUnion.class, Cnd.where("id", "=", thisBasicUnit.getUnionid()));
|
||||||
Cnd cnd = Cnd.NEW();
|
Cnd cnd = Cnd.NEW();
|
||||||
|
|||||||
+8
-3
@@ -5,6 +5,7 @@ import cn.afterturn.easypoi.excel.entity.ExportParams;
|
|||||||
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
|
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
|
||||||
import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity;
|
import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity;
|
||||||
import cn.afterturn.easypoi.excel.export.ExcelExportService;
|
import cn.afterturn.easypoi.excel.export.ExcelExportService;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.deepoove.poi.XWPFTemplate;
|
import com.deepoove.poi.XWPFTemplate;
|
||||||
import com.deepoove.poi.config.Configure;
|
import com.deepoove.poi.config.Configure;
|
||||||
import com.deepoove.poi.policy.HackLoopTableRenderPolicy;
|
import com.deepoove.poi.policy.HackLoopTableRenderPolicy;
|
||||||
@@ -304,7 +305,7 @@ public class ActivityCommonController {
|
|||||||
LEFT JOIN activity_event ev ON ev.id = app.eventId
|
LEFT JOIN activity_event ev ON ev.id = app.eventId
|
||||||
LEFT JOIN activity_school sc ON sc.id=app.activityId
|
LEFT JOIN activity_school sc ON sc.id=app.activityId
|
||||||
WHERE
|
WHERE
|
||||||
activityId = @id and ev.allName is not null
|
activityId = @id
|
||||||
and app.status=2
|
and app.status=2
|
||||||
$cnd
|
$cnd
|
||||||
ORDER BY
|
ORDER BY
|
||||||
@@ -326,6 +327,9 @@ public class ActivityCommonController {
|
|||||||
List<String> identity = Json.fromJsonAsList(String.class, z.getString("identity"));
|
List<String> identity = Json.fromJsonAsList(String.class, z.getString("identity"));
|
||||||
String s = identity.stream().map(personType::getName).collect(Collectors.toList()).toString();
|
String s = identity.stream().map(personType::getName).collect(Collectors.toList()).toString();
|
||||||
z.addv("sf", s.replaceAll("[\\[\\]]", ""));
|
z.addv("sf", s.replaceAll("[\\[\\]]", ""));
|
||||||
|
if (StrUtil.isBlank(z.getString("allName"))) {
|
||||||
|
z.addv("allName", s.replaceAll("[\\[\\]]", ""));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
List<ExcelExportEntity> exportEntities = new ArrayList<>();
|
List<ExcelExportEntity> exportEntities = new ArrayList<>();
|
||||||
// exportEntities.add(new ExcelExportEntity("小队名称", "team", 20));
|
// exportEntities.add(new ExcelExportEntity("小队名称", "team", 20));
|
||||||
@@ -351,7 +355,7 @@ public class ActivityCommonController {
|
|||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ViTool.excelResponse(response, activityName+"报名表.xlsx");
|
ViTool.excelResponse(response, activityName + "报名表.xlsx");
|
||||||
ServletOutputStream outputStream = response.getOutputStream();
|
ServletOutputStream outputStream = response.getOutputStream();
|
||||||
workbook.write(outputStream);
|
workbook.write(outputStream);
|
||||||
outputStream.close();
|
outputStream.close();
|
||||||
@@ -366,7 +370,8 @@ public class ActivityCommonController {
|
|||||||
private static String getName(String v) {
|
private static String getName(String v) {
|
||||||
switch (v) {
|
switch (v) {
|
||||||
case "1":
|
case "1":
|
||||||
return "运动员";
|
// return "运动员";
|
||||||
|
return "";
|
||||||
case "2":
|
case "2":
|
||||||
return "教练";
|
return "教练";
|
||||||
case "3":
|
case "3":
|
||||||
|
|||||||
@@ -165,7 +165,7 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<!--# if(@shiro.hasRole('superadmin') || @shiro.hasRole('A06')){ #-->
|
<!--# if(@shiro.hasRole('superadmin') || @shiro.hasRole('SchoolUnionAdmin')){ #-->
|
||||||
<el-tab-pane v-if="kt.jbxx.state>=40 && showPaneBeforePwJtPs" label="评委立项评审信息" name="4">
|
<el-tab-pane v-if="kt.jbxx.state>=40 && showPaneBeforePwJtPs" label="评委立项评审信息" name="4">
|
||||||
<div>
|
<div>
|
||||||
<el-card shadow="never">
|
<el-card shadow="never">
|
||||||
@@ -571,7 +571,7 @@
|
|||||||
</el-card>
|
</el-card>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
|
|
||||||
<!--# if(@shiro.hasRole('superadmin') || @shiro.hasRole('A06')){ #-->
|
<!--# if(@shiro.hasRole('superadmin') || @shiro.hasRole('SchoolUnionAdmin')){ #-->
|
||||||
<el-tab-pane v-if="kt.jbxx.state>=100 && kt.jbxx.lxresult===1" label="评委结题评审信息"
|
<el-tab-pane v-if="kt.jbxx.state>=100 && kt.jbxx.lxresult===1" label="评委结题评审信息"
|
||||||
name="10">
|
name="10">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ module.exports = {
|
|||||||
async created() {
|
async created() {
|
||||||
this.doSearch()
|
this.doSearch()
|
||||||
this.roleOptions = await getDictOptions("GrassrootsCadres")
|
this.roleOptions = await getDictOptions("GrassrootsCadres")
|
||||||
if (!this.$auth.hasRoleOr("sysadmin,A06,wyh01")) {
|
if (!this.$auth.hasRoleOr("sysadmin,SchoolUnionAdmin,wyh01")) {
|
||||||
this.roleOptions = this.roleOptions.filter((i) => !["gh01", "gh02"].includes(i.code))
|
this.roleOptions = this.roleOptions.filter((i) => !["gh01", "gh02"].includes(i.code))
|
||||||
}
|
}
|
||||||
console.log(this.roleOptions)
|
console.log(this.roleOptions)
|
||||||
|
|||||||
@@ -1214,9 +1214,9 @@ layout("/layouts/platform.html"){
|
|||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:visible.sync="detailsDialogVisible"
|
:visible.sync="detailsDialogVisible"
|
||||||
title="活动通知"
|
title="活动通知"
|
||||||
width="70%"
|
width="60%"
|
||||||
>
|
>
|
||||||
<div v-html="activityData2.eventNotification"></div>
|
<div style="padding: 20px;height: 600px;overflow-y: auto" v-html="activityData2.eventNotification"></div>
|
||||||
<span class="dialog-footer" slot="footer">
|
<span class="dialog-footer" slot="footer">
|
||||||
<el-button @click="detailsDialogVisible = false" type="primary">关 闭</el-button>
|
<el-button @click="detailsDialogVisible = false" type="primary">关 闭</el-button>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user