From 29c6862f8b3f3fb874a3a6f88ae4f24d62d8177f Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Wed, 6 Nov 2024 15:11:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SynchronizationService/SyncZyCcjg.java | 20 ++++----- .../kc/wjxWjxx/mapper/xml/WjxWjxxMapper.xml | 6 +-- .../service/impl/WjxWjxxServiceImpl.java | 44 +++++++++---------- .../controller/ZyInfoStudentController.java | 12 +++++ .../mapper/ZyInfoStudentMapper.java | 2 + .../mapper/xml/ZyInfoStudentMapper.xml | 7 +++ .../service/IZyInfoStudentService.java | 2 + .../impl/ZyInfoStudentServiceImpl.java | 5 +++ 8 files changed, 63 insertions(+), 35 deletions(-) diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncZyCcjg.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncZyCcjg.java index c4642219..72852b3c 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncZyCcjg.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/grab/SynchronizationService/SyncZyCcjg.java @@ -41,16 +41,16 @@ public class SyncZyCcjg extends BaseSync { * @param param */ public void run(Map param){ - try { - zyCcjgService.getCcjg(); - } catch (Exception e) { - e.printStackTrace(); - } - try { - zyInfoService.updateInfoZyStatus(); - } catch (Exception e) { - e.printStackTrace(); - } +// try { +// zyCcjgService.getCcjg(); +// } catch (Exception e) { +// e.printStackTrace(); +// } +// try { +// zyInfoService.updateInfoZyStatus(); +// } catch (Exception e) { +// e.printStackTrace(); +// } try { wjxWjxxService.updateCeyanStatus(); diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/wjxWjxx/mapper/xml/WjxWjxxMapper.xml b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/wjxWjxx/mapper/xml/WjxWjxxMapper.xml index d6338b7c..c2418df8 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/wjxWjxx/mapper/xml/WjxWjxxMapper.xml +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/wjxWjxx/mapper/xml/WjxWjxxMapper.xml @@ -48,9 +48,9 @@ and a.rwbh = #{param.rwbh} and a.xqxn = #{param.xqxn} and a.atype = #{param.atype} - - and a.create_by = #{param.teano} - + + + and a.title like CONCAT('%', #{param.title}, '%') diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/wjxWjxx/service/impl/WjxWjxxServiceImpl.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/wjxWjxx/service/impl/WjxWjxxServiceImpl.java index 8c39414d..969211f8 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/wjxWjxx/service/impl/WjxWjxxServiceImpl.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/wjxWjxx/service/impl/WjxWjxxServiceImpl.java @@ -460,29 +460,29 @@ public class WjxWjxxServiceImpl extends ServiceImpl impl queryWrapper.eq("qpublish","0"); List list = baseMapper.selectList(queryWrapper); for(WjxWjxx wjxWjxx : list){ + fbwj(wjxWjxx.getId(),wjxWjxx.getAtype()); - - QueryWrapper queryWrapper2 = new QueryWrapper<>(); - queryWrapper2.apply("a.xh = b.xh"); - queryWrapper2.eq("b.KCAPZBBH",wjxWjxx.getRwbh()); - List list2 = xxhbbksService.getXsxkbAllList(queryWrapper2); - String type = ""; - String content = ""; - -// LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); - content = "教师发起了["+wjxWjxx.getKcmc()+"]课程“"+wjxWjxx.getTitle()+"”测验,该测验完成时间: "+DateUtils.formatDate(wjxWjxx.getStartTime(),"yyyy-MM-dd")+" ~ "+DateUtils.formatDate(wjxWjxx.getEndTime(),"yyyy-MM-dd")+",请及时完成"; - for(Xxhbbks xxhbbks:list2){ - - try { - KcWechatSendLog kcWechatSendLog = new KcWechatSendLog(); - kcWechatSendLog.setOpenid(xxhbbks.getXh()); - // kcWechatSendLog.setOpenid("2016900057");//指定曹老师账号 - kcWechatSendLog.setYtkcs(content); - sendWxmessage(kcWechatSendLog); - }catch (Exception e){ - e.printStackTrace(); - } - } +// QueryWrapper queryWrapper2 = new QueryWrapper<>(); +// queryWrapper2.apply("a.xh = b.xh"); +// queryWrapper2.eq("b.KCAPZBBH",wjxWjxx.getRwbh()); +// List list2 = xxhbbksService.getXsxkbAllList(queryWrapper2); +// String type = ""; +// String content = ""; +// +//// LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); +// content = "教师发起了["+wjxWjxx.getKcmc()+"]课程“"+wjxWjxx.getTitle()+"”测验,该测验完成时间: "+DateUtils.formatDate(wjxWjxx.getStartTime(),"yyyy-MM-dd")+" ~ "+DateUtils.formatDate(wjxWjxx.getEndTime(),"yyyy-MM-dd")+",请及时完成"; +// for(Xxhbbks xxhbbks:list2){ +// +// try { +// KcWechatSendLog kcWechatSendLog = new KcWechatSendLog(); +// kcWechatSendLog.setOpenid(xxhbbks.getXh()); +// // kcWechatSendLog.setOpenid("2016900057");//指定曹老师账号 +// kcWechatSendLog.setYtkcs(content); +//// sendWxmessage(kcWechatSendLog); +// }catch (Exception e){ +// e.printStackTrace(); +// } +// } } diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/controller/ZyInfoStudentController.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/controller/ZyInfoStudentController.java index ecd72987..b928eab5 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/controller/ZyInfoStudentController.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/controller/ZyInfoStudentController.java @@ -1077,4 +1077,16 @@ public class ZyInfoStudentController extends JeecgController> cxccByZyId(ZyInfoStudent zyInfoStudent2, HttpServletRequest req, HttpServletResponse response) { + zyInfoStudent2.setMainId("1834795983056072705"); + List list =zyInfoStudentService.cxccByZyId(zyInfoStudent2); + for(ZyInfoStudent zyInfoStudent:list){ + zyInfoStudentService.stuWpKsjc(zyInfoStudent, response); + } + return null; + } + + } diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/mapper/ZyInfoStudentMapper.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/mapper/ZyInfoStudentMapper.java index 8665b9c9..53ecf2fc 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/mapper/ZyInfoStudentMapper.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/mapper/ZyInfoStudentMapper.java @@ -46,4 +46,6 @@ public interface ZyInfoStudentMapper extends BaseMapper { IPage getList2(Page page,@Param(Constants.WRAPPER) QueryWrapper queryWrapper); List getDocNoPdfList(); + + List cxccByZyId(@Param("zyInfoStudent") ZyInfoStudent zyInfoStudent2); } diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/mapper/xml/ZyInfoStudentMapper.xml b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/mapper/xml/ZyInfoStudentMapper.xml index 5829f39b..fc99bc3a 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/mapper/xml/ZyInfoStudentMapper.xml +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/mapper/xml/ZyInfoStudentMapper.xml @@ -167,4 +167,11 @@ select * from zy_info_student where file_path like '%.doc%' and pdf_path is null + + + \ No newline at end of file diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/IZyInfoStudentService.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/IZyInfoStudentService.java index 22fa1b03..16c3369e 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/IZyInfoStudentService.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/IZyInfoStudentService.java @@ -48,4 +48,6 @@ public interface IZyInfoStudentService extends IService { List getDocNoPdfList(); List xnccBatchWeipu(ZyInfoStudent zyInfoStudent, HttpServletResponse response); + + List cxccByZyId(ZyInfoStudent zyInfoStudent2); } diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java index 1ab9f70a..3a4235e2 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java @@ -253,6 +253,11 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl(); } + @Override + public List cxccByZyId(ZyInfoStudent zyInfoStudent2) { + return baseMapper.cxccByZyId(zyInfoStudent2); + } + private void delweipulunwen(ZyInfoStudent zyInfoStudent, HttpServletResponse response) { zyInfoStudent.setQueryType("0");//外网查重数据 String paperids = baseMapper.getWpFile(zyInfoStudent);