修改问题

This commit is contained in:
yangjun 2024-11-06 15:11:27 +08:00
parent 2a8d14525e
commit 29c6862f8b
8 changed files with 63 additions and 35 deletions

View File

@ -41,16 +41,16 @@ public class SyncZyCcjg extends BaseSync {
* @param param
*/
public void run(Map<String, Object> 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();

View File

@ -48,9 +48,9 @@
and a.rwbh = #{param.rwbh}
and a.xqxn = #{param.xqxn}
and a.atype = #{param.atype}
<if test="param.teano != null and param.teano != ''">
and a.create_by = #{param.teano}
</if>
<!-- <if test="param.teano != null and param.teano != ''">-->
<!-- and a.create_by = #{param.teano}-->
<!-- </if>-->
<if test="param.title != null and param.title != ''">
and a.title like CONCAT('%', #{param.title}, '%')
</if>

View File

@ -460,29 +460,29 @@ public class WjxWjxxServiceImpl extends ServiceImpl<WjxWjxxMapper, WjxWjxx> impl
queryWrapper.eq("qpublish","0");
List<WjxWjxx> list = baseMapper.selectList(queryWrapper);
for(WjxWjxx wjxWjxx : list){
fbwj(wjxWjxx.getId(),wjxWjxx.getAtype());
QueryWrapper<Xxhbbks> queryWrapper2 = new QueryWrapper<>();
queryWrapper2.apply("a.xh = b.xh");
queryWrapper2.eq("b.KCAPZBBH",wjxWjxx.getRwbh());
List<Xxhbbks> 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<Xxhbbks> queryWrapper2 = new QueryWrapper<>();
// queryWrapper2.apply("a.xh = b.xh");
// queryWrapper2.eq("b.KCAPZBBH",wjxWjxx.getRwbh());
// List<Xxhbbks> 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();
// }
// }
}

View File

@ -1077,4 +1077,16 @@ public class ZyInfoStudentController extends JeecgController<ZyInfoStudent, IZyI
}
@ApiOperation(value="重新提交作业查重信息", notes="重新提交作业查重信息")
@GetMapping(value = "/cxccByZyId")
public Result<IPage<ZyInfoStudent>> cxccByZyId(ZyInfoStudent zyInfoStudent2, HttpServletRequest req, HttpServletResponse response) {
zyInfoStudent2.setMainId("1834795983056072705");
List<ZyInfoStudent> list =zyInfoStudentService.cxccByZyId(zyInfoStudent2);
for(ZyInfoStudent zyInfoStudent:list){
zyInfoStudentService.stuWpKsjc(zyInfoStudent, response);
}
return null;
}
}

View File

@ -46,4 +46,6 @@ public interface ZyInfoStudentMapper extends BaseMapper<ZyInfoStudent> {
IPage<ZyInfoStudent> getList2(Page<ZyInfoStudent> page,@Param(Constants.WRAPPER) QueryWrapper<ZyInfoStudent> queryWrapper);
List<ZyInfoStudent> getDocNoPdfList();
List<ZyInfoStudent> cxccByZyId(@Param("zyInfoStudent") ZyInfoStudent zyInfoStudent2);
}

View File

@ -167,4 +167,11 @@
select * from zy_info_student where file_path like '%.doc%' and pdf_path is null
</select>
<select id="cxccByZyId" resultType="org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudent">
select a.*,a.id as stuId from zy_info_student a
left join zy_ccjg b on a.id = b.zy_stu_id
where a.main_id = #{zyInfoStudent.mainId} and a.file_path is not null and b.id is null
</select>
</mapper>

View File

@ -48,4 +48,6 @@ public interface IZyInfoStudentService extends IService<ZyInfoStudent> {
List<ZyInfoStudent> getDocNoPdfList();
List<ZyInfoStudent> xnccBatchWeipu(ZyInfoStudent zyInfoStudent, HttpServletResponse response);
List<ZyInfoStudent> cxccByZyId(ZyInfoStudent zyInfoStudent2);
}

View File

@ -253,6 +253,11 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl<ZyInfoStudentMapper, Z
return new ArrayList<>();
}
@Override
public List<ZyInfoStudent> cxccByZyId(ZyInfoStudent zyInfoStudent2) {
return baseMapper.cxccByZyId(zyInfoStudent2);
}
private void delweipulunwen(ZyInfoStudent zyInfoStudent, HttpServletResponse response) {
zyInfoStudent.setQueryType("0");//外网查重数据
String paperids = baseMapper.getWpFile(zyInfoStudent);