diff --git a/src/main/java/io/v/nutz/zhgh/healthCheckup/service/impl/HealthCheckupSingleServiceImpl.java b/src/main/java/io/v/nutz/zhgh/healthCheckup/service/impl/HealthCheckupSingleServiceImpl.java index 8403372..2d8cece 100644 --- a/src/main/java/io/v/nutz/zhgh/healthCheckup/service/impl/HealthCheckupSingleServiceImpl.java +++ b/src/main/java/io/v/nutz/zhgh/healthCheckup/service/impl/HealthCheckupSingleServiceImpl.java @@ -234,21 +234,21 @@ public class HealthCheckupSingleServiceImpl extends ViServiceImpl", 0); } @@ -230,12 +231,27 @@ public class LxyGhbmController { } @At - @ViReturn + @Aop(TransAop.READ_COMMITTED) @RequiresPermissions("zgfw.lxy.ghbm") public Object bm(@Param("::data") List bmMapList, @Param("flag") boolean flag) { - - Trans.exec(() -> { + try { List bmList = Lang.collection2list(bmMapList, Lxy_bm.class); + + if (Lang.isEmpty(bmList)){ + return Result.error("未获取到报名数据,请选择人员报名"); + } + + + String unionId = Vi.getUnionId(); + Lxy_mefp meNum = dao.fetch(Lxy_mefp.class, Cnd.where("hdid", "=", bmList.get(0).getHdid()).and("ghid", "=", unionId)); + + int size = bmList.size(); + + if (size > meNum.getNumber()) { + return Result.error("报名人数已满"); + } + + if (Lang.isNotEmpty(bmList)) { lxyBmService.clear(Cnd .NEW().and(Cnd.exps("bmzt", "is", null).or("bmzt", "=", 4)) @@ -285,9 +301,14 @@ public class LxyGhbmController { } lxyBmService.insert(bmList); lxyGrxxService.insert(grxxList); + return Result.success(); + } else { + return Result.error(); } - }); - return null; + }catch (Exception e){ + e.printStackTrace(); + return Result.error(); + } } @@ -365,17 +386,19 @@ public class LxyGhbmController { String unionId = Vi.getUnionId(); // 已经报名的,排除审核未通过 int count = dao.count(Lxy_bm.class, Cnd.where("hdid", "=", projectId).and("ghid", "=", unionId) - .and("bmzt", "in", List.of("1", "2", "3", "4", "5", "6"))); + .and(Cnd.exps("bmzt", "in", List.of("1", "3", "5", "6")).or("bmzt", "is", null))); Lxy_mefp fetch = dao.fetch(Lxy_mefp.class, Cnd.where("hdid", "=", projectId).and("ghid", "=", unionId)); - if (count >= fetch.getNumber()) { + if (count > fetch.getNumber()) { return Result.error("报名人数已满"); } List tempList = ExcelImportUtil.importExcel(file.getFile(), LxyImportTemp.class, new ImportParams()); - if ((tempList.size() + count) >= fetch.getNumber()) { + int size = tempList.size(); + + if ((size + count) > fetch.getNumber()) { return Result.error("文件数据超过名额限制,请检查是否存在已报名人员"); } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 551a601..ef21768 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,5 +1,5 @@ nutz.application.name=zhgh_hrbnu -server.port=80 +server.port=8080 server.host=0.0.0.0 jetty.contextPath=/ jetty.threadpool.idleTimeout=60000 @@ -8,17 +8,17 @@ jetty.threadpool.maxThreads=500 jetty.page.403=/error/403.html jetty.page.404=/error/404.html jetty.page.500=/error/500.html -#结合ftp使用,或用nginx代理ftp路径 +#结合ftp使用,或用nginx代理ftp路径 jetty.staticPath=D://files -#开发模式静态资源 -jetty.staticPathLocal=G:/zhgh/zhgh_hrbnu/src/main/resources/static +#开发模式静态资源 +jetty.staticPathLocal=D:/work/project/zhgh_hrbnu/src/main/resources/static nutz.mvc.ignore=^(.+[.])(jsp|png|gif|jpg|js|css|jspx|jpeg|html|mp3|mp4|ico|svg)$ nutz.mvc.exclusions=/favicon/*,/assets/*,/druid/*,/upload/* -ftp.enabled=false -ftp.host=192.168.21.203 -ftp.port=9090 -ftp.username=ftpuser -ftp.password=123456 +ftp.enabled=true +ftp.host=10.10.10.16 +ftp.port=21 +ftp.username=ftp_user +ftp.password=HRBNU_DD3s@#2024 ftp.timeout=100 redis.host=127.0.0.1 redis.port=6379 @@ -30,26 +30,23 @@ redis.pool.maxTotal=150 redis.pool.maxIdle=50 redis.pool.minIdle=10 #redis.password=123456 -#redis集群模式设置 +#redis集群模式设置 #redis.mode=cluster redis.mode=normal #redis.nodes=192.168.6.31:6377,192.168.6.31:6378,192.168.6.28:6377,192.168.6.28:6378,192.168.6.34:6377,192.168.6.34:6378 -jdbc.url=jdbc:mysql://127.0.0.1:3306/zhgh_hrbnu?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true +jdbc.url=jdbc:mysql://10.10.10.16:3306/zhgh_hrbnu?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true #jdbc.driver=dm.jdbc.driver.DmDriver #jdbc.url=jdbc:dm://127.0.0.1:5236?databaseProductName=dm mysql&compatibleMode=mysql jdbc.username=root -jdbc.password=123456 +jdbc.password=HRBNU_DD3s@#2024 jdbc.validationQuery=select 1 jdbc.maxActive=500 jdbc.testWhileIdle=true jdbc.connectionProperties=druid.stat.slowSqlMillis=2000 jdbc.defaultAutoCommit=true -xsssql.ignore.urls=/platform/cms/content/article/addDo,/platform/sys/app/conf/addDo,/platform/sys/app/conf/editDo,\ - /platform/member/change/mange/userPageData,/platform/welfare/member/mange/userPageData,/platform/sys/task/cronExp,\ - /platform/sys/task/editDo,/platform/sys/task/addDo,/platform/fellowship/manage/activity/doHandle,/platform/sys/menu/editMenuDo,\ - /platform/trainSingUp/manage/activity/doHandle,/platform/activity/school/info/mange/doAdd,/platform/activity/school/info/mange/doEdit -#环境 dev/prod -v.environment=dev +xsssql.ignore.urls=/platform/cms/content/article/addDo,/platform/sys/app/conf/addDo,/platform/sys/app/conf/editDo,/platform/psychology/notice/doAdd,/platform/psychology/notice/doEdit +#环境 dev/prod +v.environment=prod v.loginUrl=/sso/login v.loginUrlMobile=/mobile/cas/login v.ip=127.0.0.1 @@ -65,42 +62,42 @@ shiro.ini.urls: /signature/**=anon /platform/**=AuthenticationFilter #end -#设置session会话超时时间(单位:毫秒) +#设置session会话超时时间(单位:毫秒) shiro.session.manager.globalSessionTimeout=2000000000 -#设置redis缓存时间(单位:秒)与上面的毫秒数保持一致 +#设置redis缓存时间(单位:秒)与上面的毫秒数保持一致 shiro.session.cache.redis.ttl=2000000 -#缓存名和 RedisConstant.PLATFORM_REDIS_PREFIX 常量保持一致 +#缓存名和 RedisConstant.PLATFORM_REDIS_PREFIX 常量保持一致 shiro.session.dao.activeSessionsCacheName=budwk5mini:shiro:activeSessionCache -#使用redis二级缓存 +#使用redis二级缓存 shiro.session.cache.type=lcache shiro.session.enable=true shiro.url.login=/platform shiro.url.logout_redirect=/platform shiro.url.unauth=/platform -#开发时设置本地路径,便于调试 -beetl.RESOURCE.rootLocal=G:/zhgh/ /src/main/resources/views/ +#开发时设置本地路径,便于调试 +beetl.RESOURCE.rootLocal=D:/work/project/zhgh_hrbnu/src/main/resources/views/ beetl.RESOURCE.root=views/ beetl.DELIMITER_STATEMENT_START= beetl.FT.escape=io.v.nutz.web.commons.ext.beetl.HtmlEscapeFormat -#用法: ${"wizzer",escape} +#用法: ${"wizzer",escape} beetl.FT.filesize=io.v.nutz.web.commons.ext.beetl.FileSizeFormat -#用法: ${10241024,filesize} +#用法: ${10241024,filesize} beetl.FT.html2txt=io.v.nutz.web.commons.ext.beetl.Html2TxtFormat -#用法: ${"",html2txt="100"} 截取100字符 +#用法: ${"",html2txt="100"} 截取100字符 beetl.FT.strlen=io.v.nutz.web.commons.ext.beetl.StrlenFormat -#用法: ${"",strlen="100"} 截取100字符 -#获取系统参数 +#用法: ${"",strlen="100"} 截取100字符 +#获取系统参数 beetl.FN.getSysConfig=io.v.nutz.web.commons.ext.beetl.GetSysConfig #============================================================== #Configure Main Scheduler Properties #============================================================== -#quartz延迟启动秒数 +#quartz延迟启动秒数 quartz.startupDelay=10 quartz.scheduler.instanceName=defaultScheduler quartz.scheduler.instanceId=AUTO #============================================================== -#Configure JobStore isClustered=启用集群模式 +#Configure JobStore isClustered=启用集群模式 #============================================================== quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate @@ -138,20 +135,10 @@ quartz.plugin.shutdownhook.cleanShutdown=true #============================================================================ quartz.dataSource.myDS.connectionProvider.class=io.v.nutz.task.conn.NutConnectionProvider logback.exts.loglevel.cache.prefix=budwk5mini:logback:loglevel: -#动态修改日志等级 +#动态修改日志等级 logback.exts.loglevel.enabled=true -#心跳间隔(单位:秒) +#心跳间隔(单位:秒) logback.exts.loglevel.heartbeat=15 -wxpay.appId=\u5E94\u7528\u7F16\u53F7 -wxpay.keyPath=key.pem -wxpay.certPath=cert.pem -wxpay.certP12Path=cert.p12 -wxpay.platformCertPath=wx_cert.pem -wxpay.mchId=\u5FAE\u4FE1\u5546\u6237\u53F7 -wxpay.apiKey3=Api-v3 \u5BC6\u94A5 -wxpay.apiKey=Api \u5BC6\u94A5 -wxpay.domain=https://ijpay.javen.com - diff --git a/src/main/resources/views/platform/healthCheckup/listMange.html b/src/main/resources/views/platform/healthCheckup/listMange.html index de73036..73ce69d 100644 --- a/src/main/resources/views/platform/healthCheckup/listMange.html +++ b/src/main/resources/views/platform/healthCheckup/listMange.html @@ -121,9 +121,9 @@ layout("/layouts/platform.html"){ 导入名单 导出 - 确认名单 - - 取消确认 + diff --git a/src/main/resources/views/platform/zgfw/lxy/HdGhbm.html b/src/main/resources/views/platform/zgfw/lxy/HdGhbm.html index 35b4b1b..ba376e8 100644 --- a/src/main/resources/views/platform/zgfw/lxy/HdGhbm.html +++ b/src/main/resources/views/platform/zgfw/lxy/HdGhbm.html @@ -120,7 +120,7 @@ layout("/layouts/platform.html"){ 查看报名 - + 导入 报名 @@ -191,7 +191,7 @@ layout("/layouts/platform.html"){ - + @@ -690,6 +690,18 @@ display: -webkit-box; this.$message.warning("请填写手机号!") return } + if (!array[i].zyhj) { + this.$message.warning("请填写疗休养员身份!") + return + } + if (!array[i].talent) { + this.$message.warning("请填写人才类型!") + return + } + if (!array[i].point) { + this.$message.warning("请填写出发乘车地点!") + return + } } const confirm = await this.$confirm("是否提交,提交后表示基层工会审核通过!", "提示", { confirmButtonText: "确定", @@ -710,6 +722,8 @@ display: -webkit-box; this.doSearch() this.$refs.guava.index() this.$message.success("提交成功") + } else { + this.$message.warning(res.msg) } }) } @@ -726,6 +740,8 @@ display: -webkit-box; this.doSearch() this.$refs.guava.index() this.$message.success("提交成功") + } else { + this.$message.warning(res.msg) } }) }