diff --git a/src/main/java/com/budwk/app/zhgh/staffbenefit/psychology/controller/PsychologyIndexController.java b/src/main/java/com/budwk/app/zhgh/staffbenefit/psychology/controller/PsychologyIndexController.java new file mode 100644 index 00000000..80ee507d --- /dev/null +++ b/src/main/java/com/budwk/app/zhgh/staffbenefit/psychology/controller/PsychologyIndexController.java @@ -0,0 +1,67 @@ +package com.budwk.app.zhgh.staffbenefit.psychology.controller; + +import cn.dev33.satoken.annotation.SaCheckPermission; +import com.budwk.app.base.page.Pagination; +import com.budwk.app.base.result.Result; +import com.budwk.app.zhgh.staffbenefit.psychology.model.PsychologyDoctor; +import com.budwk.app.zhgh.staffbenefit.psychology.service.PsychologyDoctorService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.nutz.dao.Cnd; +import org.nutz.ioc.loader.annotation.Inject; +import org.nutz.ioc.loader.annotation.IocBean; +import org.nutz.lang.Lang; +import org.nutz.mvc.annotation.At; +import org.nutz.mvc.annotation.Ok; + +import java.util.ArrayList; +import java.util.List; + +/** + * @Author zzr + * @name:PsychologyIndexController + * @Date 2025/9/12 10:54 + * @version 1.0 + * @注释 + */ +@Slf4j +@IocBean +@Ok("json:full") +@Api(tags = "心理咨询") +@At("/platform/psychology/index") +public class PsychologyIndexController { + + @Inject + private PsychologyDoctorService psychologyDoctorService; + + @At("") +// @SaCheckPermission("psychology.index") + @Ok("beetl:/platform/zhgh/staffbenefit/psychology/index/index.html") + public void index() { + } + + @At +// @SaCheckPermission("psychology.index") + @Ok("beetl:/platform/zhghh5/staffbenefit/psychology/index/index.html") + public void h5() { + } + + + @At + @ApiOperation("手机端咨询师列表展示") +// @SaCheckPermission("psychology.index") + public Result listConsultantByH5(){ + Pagination pagination = psychologyDoctorService.listPage(1, 4, Cnd.NEW()); + List list = pagination.getList(); + // 判断有没有咨询师,并且咨询师数量小于4的话,要顺序填充到4个,便于前端展示 + if (Lang.isNotEmpty(list) && list.size() < 4) { + List filledList = new ArrayList<>(4); + for (int i = 0; i < 4; i++) { + filledList.add(list.get(i % list.size())); + } + pagination.setList(filledList); + } + return Result.success(pagination.getList()); + } +} diff --git a/src/main/resources/views/platform/zhgh/staffbenefit/difficulthelp/mine/index.html b/src/main/resources/views/platform/zhgh/staffbenefit/difficulthelp/mine/index.html index 547df2a4..dc14a568 100644 --- a/src/main/resources/views/platform/zhgh/staffbenefit/difficulthelp/mine/index.html +++ b/src/main/resources/views/platform/zhgh/staffbenefit/difficulthelp/mine/index.html @@ -105,7 +105,7 @@ layout("/layouts/platform.html"){ { prop: "unitName", label: "所属单位", sortable: true }, { prop: "subsidyStandards", label: "困难类型", sortable: true }, { prop: "applyTime", label: "申请时间", sortable: true }, - { prop: "taskName", label: "当前节点" }, + { prop: "curTaskName", label: "当前节点" }, { prop: "instanceState", label: "流程状态" } ], unions: [], diff --git a/src/main/resources/views/platform/zhgh/staffbenefit/difficulthelp/reading/index.html b/src/main/resources/views/platform/zhgh/staffbenefit/difficulthelp/reading/index.html index ec88e51f..7030337a 100644 --- a/src/main/resources/views/platform/zhgh/staffbenefit/difficulthelp/reading/index.html +++ b/src/main/resources/views/platform/zhgh/staffbenefit/difficulthelp/reading/index.html @@ -99,7 +99,7 @@ layout("/layouts/platform.html"){ { prop: "unitName", label: "所属单位", sortable: true }, { prop: "subsidyStandards", label: "困难类型", sortable: true }, { prop: "applyTime", label: "申请时间", sortable: true }, - { prop: "taskName", label: "当前节点" }, + { prop: "curTaskName", label: "当前节点" }, { prop: "instanceState", label: "流程状态" } ], unions: [], diff --git a/src/main/resources/views/platform/zhgh/staffmanage/member/apply/schoolunionapproval/index.html b/src/main/resources/views/platform/zhgh/staffmanage/member/apply/schoolunionapproval/index.html index 81ebc696..62d644ab 100644 --- a/src/main/resources/views/platform/zhgh/staffmanage/member/apply/schoolunionapproval/index.html +++ b/src/main/resources/views/platform/zhgh/staffmanage/member/apply/schoolunionapproval/index.html @@ -125,7 +125,7 @@ layout("/layouts/platform.html"){ { prop: "unionName", label: "所属工会", sortable: true }, { prop: "unitName", label: "所属单位", sortable: true }, { prop: "sign", label: "签字" }, - { prop: "taskName", label: "当前节点" }, + { prop: "curTaskName", label: "当前节点" }, { prop: "instanceState", label: "流程状态" } ], diff --git a/src/main/resources/views/platform/zhgh/staffmanage/member/change/submit/index.html b/src/main/resources/views/platform/zhgh/staffmanage/member/change/submit/index.html index 6e702be3..8e3051be 100644 --- a/src/main/resources/views/platform/zhgh/staffmanage/member/change/submit/index.html +++ b/src/main/resources/views/platform/zhgh/staffmanage/member/change/submit/index.html @@ -239,7 +239,7 @@ layout("/layouts/platform.html"){ --> -