From edc8ae7c0ab7976eb8c74a96f257de5843f2cb9c Mon Sep 17 00:00:00 2001 From: "@jyuhsin" <729757837@qq.com> Date: Sat, 29 Nov 2025 17:14:00 +0800 Subject: [PATCH] commit --- .../ghkh/controller/GhKhZpController.java | 13 +- .../ghkh/controller/GhkhGhzbController.java | 2 +- .../ghkh/controller/GhkhXghshController.java | 11 +- .../ghkh/controller/GhkhXjkhzbController.java | 5 +- .../zhgh/dayofficework/ghkh/model/Kh_bz.java | 2 +- .../dayofficework/ghkh/model/Kh_record.java | 2 + .../static/components/module/kh/KhZb.vue | 4 +- .../components/module/kh/UploadMaterials.vue | 29 ++-- .../zhgh/dayofficework/ghkh/config/index.html | 4 +- .../zhgh/dayofficework/ghkh/khzb.html | 64 +++++++-- .../zhgh/dayofficework/ghkh/xghsh.html | 9 +- .../zhgh/dayofficework/ghkh/xjkhzb.html | 61 ++++----- .../platform/zhgh/dayofficework/ghkh/zp.html | 125 +++++++++++------- 13 files changed, 195 insertions(+), 136 deletions(-) diff --git a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhKhZpController.java b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhKhZpController.java index e489ac9..7122370 100644 --- a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhKhZpController.java +++ b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhKhZpController.java @@ -17,7 +17,9 @@ import org.nutz.dao.Sqls; import org.nutz.dao.sql.Sql; import org.nutz.ioc.loader.annotation.Inject; import org.nutz.ioc.loader.annotation.IocBean; +import org.nutz.lang.Lang; import org.nutz.lang.Strings; +import org.nutz.lang.util.NutMap; import org.nutz.mvc.annotation.At; import org.nutz.mvc.annotation.Ok; import org.nutz.mvc.annotation.POST; @@ -72,7 +74,7 @@ public class GhKhZpController { } cnd.groupBy("zb.id"); sql.setCondition(cnd); - return Result.success(khzpService.listPage(pageNumber, pageSize, sql)); + return Result.success(khzpService.listPageMap(pageNumber, pageSize, sql)); } @At @@ -107,6 +109,8 @@ public class GhKhZpController { } } baseService.dao().insertOrUpdate(record); + + return Result.success(); } @@ -122,7 +126,12 @@ public class GhKhZpController { } }); }); - return Result.success(khzb); + NutMap nutMap = Lang.obj2nutmap(khzb); + Kh_record record = khZbService.dao().fetch(Kh_record.class, Cnd.where("zb_id", "=", id).and("union_id", "=", SecurityUtil.getUnionId())); + if(record != null) { + nutMap.put("fillTime", record.getFillTime()); + } + return Result.success(nutMap); } @At diff --git a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhGhzbController.java b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhGhzbController.java index c8fe4ad..da5a666 100644 --- a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhGhzbController.java +++ b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhGhzbController.java @@ -100,7 +100,7 @@ public class GhkhGhzbController { @POST @SaCheckPermission("ghkh.khzb") @Aop(TransAop.READ_COMMITTED) - public Result doEdit(@Param(value = "kh_zb") Kh_zb kh_zb) { + public Result doEdit(@Param(value = "kh_zb") Kh_zb kh_zb, @Param(value = "type") String type) { khZbService.updateIgnoreNull(kh_zb); List query = khNrService.query(Cnd.where("zb_id", "=", kh_zb.getId())); diff --git a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhXghshController.java b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhXghshController.java index 0574309..6730299 100644 --- a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhXghshController.java +++ b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhXghshController.java @@ -35,17 +35,13 @@ import java.util.List; @IocBean public class GhkhXghshController { - @Inject private KhXghshService khXghshService; - @At("") @Ok("beetl:/platform/zhgh/dayofficework/ghkh/xghsh.html") @SaCheckPermission("ghkh.xghsh") - public void index() { - - } + public void index() {} @At @SaCheckPermission("ghkh.xghsh") @@ -162,6 +158,11 @@ public class GhkhXghshController { baseService.dao().update(record); } + List list = khZbService.dao().query(Kh_record.class, Cnd.where("zb_id", "=", pf[0].getZb_id()).desc("totalScore")); + for (int i = 0; i < list.size(); i++) { + list.get(i).setSort(i + 1); + } + khZbService.dao().update(list); return Result.success(); } diff --git a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhXjkhzbController.java b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhXjkhzbController.java index eba626e..8b56059 100644 --- a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhXjkhzbController.java +++ b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/controller/GhkhXjkhzbController.java @@ -52,14 +52,13 @@ public class GhkhXjkhzbController { public Result doAdd(@Param(value = "kh_zb") Kh_zb kh_zb) { kh_zb.setCreateUserId(SecurityUtil.getUserId()); kh_zb.setCreateUserName(SecurityUtil.getUserUsername()); - kh_zb.setCreateTime(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); Kh_zb zb = khZbService.insert(kh_zb); + kh_zb.setCreateTime(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))); + Kh_zb zb = khZbService.insert(kh_zb); for (kh_nr nr : kh_zb.getNrs()) { nr.setZb_id(zb.getId()); khNrService.insertWith(nr, "bzs"); } - return Result.success(); - } @At diff --git a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_bz.java b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_bz.java index 130f443..485d1c5 100644 --- a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_bz.java +++ b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_bz.java @@ -60,7 +60,7 @@ public class Kh_bz extends BaseModel { @Column @Comment("备注") - @ColDefine(type = ColType.VARCHAR, width = 32) + @ColDefine(type = ColType.VARCHAR, width = 200) private String remark; @Column diff --git a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_record.java b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_record.java index 538caa5..7f8e707 100644 --- a/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_record.java +++ b/src/main/java/com/budwk/app/zhgh/dayofficework/ghkh/model/Kh_record.java @@ -44,11 +44,13 @@ public class Kh_record { @Column @Comment("校工会评分") @ColDefine(type = ColType.INT, width = 4) + @Default(value = "0") private Integer xgh_score; @Column @Comment("线上最终得分") @ColDefine(type = ColType.INT, width = 4) + @Default(value = "0") private Double onLineFinalScore; @Column diff --git a/src/main/resources/static/components/module/kh/KhZb.vue b/src/main/resources/static/components/module/kh/KhZb.vue index af5cd33..64043cb 100644 --- a/src/main/resources/static/components/module/kh/KhZb.vue +++ b/src/main/resources/static/components/module/kh/KhZb.vue @@ -122,9 +122,9 @@ - + diff --git a/src/main/resources/static/components/module/kh/UploadMaterials.vue b/src/main/resources/static/components/module/kh/UploadMaterials.vue index 0aa6362..0dd4546 100644 --- a/src/main/resources/static/components/module/kh/UploadMaterials.vue +++ b/src/main/resources/static/components/module/kh/UploadMaterials.vue @@ -1,42 +1,45 @@ + - -