Compare commits
2 Commits
e45372c335
...
9929d5ce80
Author | SHA1 | Date |
---|---|---|
|
9929d5ce80 | |
|
48543190cb |
|
@ -12,7 +12,6 @@ import org.jeecg.common.api.vo.Result;
|
|||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.kc.grab.exports.entity.TBks;
|
||||
import org.jeecg.modules.kc.grab.imports.entity.Xxhbbks;
|
||||
import org.jeecg.modules.kc.grab.imports.service.IXxhbbksService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -22,6 +21,7 @@ import org.springframework.web.servlet.ModelAndView;
|
|||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: 同步数据表(bks)
|
||||
|
@ -162,7 +162,6 @@ public class XxhbbksController extends JeecgController<Xxhbbks, IXxhbbksService>
|
|||
}
|
||||
|
||||
|
||||
|
||||
@AutoLog(value = "获取本科生选课人员信息")
|
||||
@ApiOperation(value = "获取本科生选课人员信息", notes = "获取本科生选课人员信息")
|
||||
@GetMapping(value = "/getXsxkbList")
|
||||
|
@ -178,4 +177,15 @@ public class XxhbbksController extends JeecgController<Xxhbbks, IXxhbbksService>
|
|||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取选课人员
|
||||
* @param rwbh 任务编号
|
||||
*
|
||||
* 获取任务编号下的所有选课人员
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/getXKRY")
|
||||
public Result<List<Xxhbbks>> getXKRY(@RequestBody String rwbh) {
|
||||
return Result.OK(xxhbbksService.getXKRY(rwbh));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -23,4 +23,6 @@ public interface XxhbbksMapper extends BaseMapper<Xxhbbks> {
|
|||
IPage<Xxhbbks> getXsxkbList(Page<Xxhbbks> page,@Param(Constants.WRAPPER) QueryWrapper<Xxhbbks> queryWrapper);
|
||||
|
||||
List<Xxhbbks> getXsxkbAllList(@Param(Constants.WRAPPER) QueryWrapper<Xxhbbks> queryWrapper);
|
||||
|
||||
List<Xxhbbks> getXKRY(@Param("rwbh") String rwbh);
|
||||
}
|
||||
|
|
|
@ -18,4 +18,11 @@
|
|||
select a.* from xxhbbks a ,xxhbxsxkb b
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
<select id="getXKRY" resultType="org.jeecg.modules.kc.grab.imports.entity.Xxhbbks">
|
||||
select bks.xh,bks.xm
|
||||
from xxhbxsxkb xkb
|
||||
left join xxhbbks bks on xkb.xh = bks.xh
|
||||
where xkb.KCAPZBBH = #{rwbh}
|
||||
</select>
|
||||
</mapper>
|
|
@ -37,4 +37,6 @@ public interface IXxhbbksService extends IService<Xxhbbks> {
|
|||
IPage<Xxhbbks> getXsxkbList(Page<Xxhbbks> page, QueryWrapper<Xxhbbks> queryWrapper);
|
||||
|
||||
List<Xxhbbks> getXsxkbAllList(QueryWrapper<Xxhbbks> queryWrapper);
|
||||
|
||||
List<Xxhbbks> getXKRY(String rwbh);
|
||||
}
|
||||
|
|
|
@ -52,4 +52,9 @@ public class XxhbbksServiceImpl extends ServiceImpl<XxhbbksMapper, Xxhbbks> impl
|
|||
public List<Xxhbbks> getXsxkbAllList(QueryWrapper<Xxhbbks> queryWrapper) {
|
||||
return baseMapper.getXsxkbAllList(queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Xxhbbks> getXKRY(String rwbh) {
|
||||
return baseMapper.getXKRY(rwbh);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -353,4 +353,9 @@ public class WjxDjxxController extends JeecgController<WjxDjxx, IWjxDjxxService>
|
|||
return Result.OK(res);
|
||||
}
|
||||
|
||||
@PostMapping(value = "/upZbcs")
|
||||
public Result<Integer> upZbcs(@RequestBody WjxDjxx wjxDjxx) {
|
||||
return Result.OK(wjxDjxxService.upZbcs(wjxDjxx));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -130,4 +130,6 @@ public class WjxDjxx {
|
|||
@TableField(exist = false)
|
||||
private String isFinished;
|
||||
|
||||
@ApiModelProperty(value = "作弊次数(单次考试作弊行为发生总次数)")
|
||||
private int zbcs;
|
||||
}
|
||||
|
|
|
@ -72,4 +72,6 @@ public interface WjxDjxxMapper extends BaseMapper<WjxDjxx> {
|
|||
|
||||
|
||||
void updateDjxxTmxxFwqpath(WjxDjxxTmxx wjxDjxxTmxx);
|
||||
|
||||
int upZbcs(@Param("dto") WjxDjxx wjxDjxx);
|
||||
}
|
||||
|
|
|
@ -439,6 +439,12 @@
|
|||
where jid = #{jid}
|
||||
</update>
|
||||
|
||||
<update id="upZbcs">
|
||||
update wjx_djxx
|
||||
set zbcs = (select count(id) from wjx_djxx_fzbtj where type in (1,2,3) and vid = #{dto.vid} and create_by = #{dto.createBy} )
|
||||
where vid = #{dto.vid} and create_by = #{dto.createBy}
|
||||
</update>
|
||||
|
||||
|
||||
<select id="getSfysj" resultType="org.jeecg.modules.kc.wjxDjxx.entity.WjxDjxxTmxx">
|
||||
select * from wjx_djxx_tmxx where vid = #{wjxDjxxTmxx.vid} and jid = #{wjxDjxxTmxx.jid} and wj_index = #{wjxDjxxTmxx.wjIndex} and item_index = #{wjxDjxxTmxx.itemIndex}
|
||||
|
|
|
@ -47,4 +47,6 @@ public interface IWjxDjxxService extends IService<WjxDjxx> {
|
|||
String updateDjjg(WjxDjxx wjxDjxx);
|
||||
|
||||
String getDjjg(WjxDjxx wjxDjxx);
|
||||
|
||||
int upZbcs(WjxDjxx wjxDjxx);
|
||||
}
|
||||
|
|
|
@ -55,6 +55,7 @@ public class WjxDjxxServiceImpl extends ServiceImpl<WjxDjxxMapper, WjxDjxx> impl
|
|||
|
||||
/**
|
||||
* 提交问卷,并查询答卷
|
||||
*
|
||||
* @param list
|
||||
*/
|
||||
public String djtj(List<WjxDjxxTmlbPage> list) {
|
||||
|
@ -284,8 +285,6 @@ public class WjxDjxxServiceImpl extends ServiceImpl<WjxDjxxMapper, WjxDjxx> impl
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
String sfxgdjscore = "0";//是否修改答卷分数
|
||||
if (StringUtils.isNotBlank(jidRes)) {
|
||||
for (WjxDjxxTmlbPage wjxDjxxTmlbPage : list) {
|
||||
|
@ -382,7 +381,6 @@ public class WjxDjxxServiceImpl extends ServiceImpl<WjxDjxxMapper, WjxDjxx> impl
|
|||
zyDbtxService.save(zyDbtx);
|
||||
|
||||
|
||||
|
||||
UpdateWrapper<ZyDbtx> zyDbtxQx = new UpdateWrapper<>();
|
||||
zyDbtxQx.set("flag", "1");
|
||||
zyDbtxQx.eq("main_id", wjxWjxx.getId());
|
||||
|
@ -400,7 +398,6 @@ public class WjxDjxxServiceImpl extends ServiceImpl<WjxDjxxMapper, WjxDjxx> impl
|
|||
}
|
||||
|
||||
|
||||
|
||||
return "提交成功!";
|
||||
}
|
||||
|
||||
|
@ -525,6 +522,7 @@ public class WjxDjxxServiceImpl extends ServiceImpl<WjxDjxxMapper, WjxDjxx> impl
|
|||
|
||||
/**
|
||||
* 秒数转时分秒
|
||||
*
|
||||
* @param seconds
|
||||
* @return
|
||||
*/
|
||||
|
@ -866,7 +864,6 @@ public class WjxDjxxServiceImpl extends ServiceImpl<WjxDjxxMapper, WjxDjxx> impl
|
|||
}
|
||||
|
||||
|
||||
|
||||
return "提交成功!";
|
||||
}
|
||||
|
||||
|
@ -1033,10 +1030,16 @@ public class WjxDjxxServiceImpl extends ServiceImpl<WjxDjxxMapper, WjxDjxx> impl
|
|||
}
|
||||
|
||||
|
||||
|
||||
return "获取成功!";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int upZbcs(WjxDjxx wjxDjxx) {
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
wjxDjxx.setCreateBy(sysUser.getUsername());
|
||||
return baseMapper.upZbcs(wjxDjxx);
|
||||
}
|
||||
|
||||
public void jsscore(String jid) {
|
||||
try {
|
||||
if (StringUtils.equals(jid, "122233965812")) {
|
||||
|
|
|
@ -0,0 +1,165 @@
|
|||
package org.jeecg.modules.kc.wjxDjxxFzbtj.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.modules.kc.wjxDjxxFzbtj.entity.WjxDjxxFzbtj;
|
||||
import org.jeecg.modules.kc.wjxDjxxFzbtj.service.IWjxDjxxFzbtjService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description: wjx_djxx_fzbtj
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-01-07
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags = "wjx_djxx_fzbtj")
|
||||
@RestController
|
||||
@RequestMapping("/wjxDjxxFzbtj/wjxDjxxFzbtj")
|
||||
@Slf4j
|
||||
public class WjxDjxxFzbtjController extends JeecgController<WjxDjxxFzbtj, IWjxDjxxFzbtjService> {
|
||||
@Autowired
|
||||
private IWjxDjxxFzbtjService wjxDjxxFzbtjService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param wjxDjxxFzbtj
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "wjx_djxx_fzbtj-分页列表查询")
|
||||
@ApiOperation(value = "wjx_djxx_fzbtj-分页列表查询", notes = "wjx_djxx_fzbtj-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<WjxDjxxFzbtj>> queryPageList(WjxDjxxFzbtj wjxDjxxFzbtj,
|
||||
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<WjxDjxxFzbtj> queryWrapper = QueryGenerator.initQueryWrapper(wjxDjxxFzbtj, req.getParameterMap());
|
||||
Page<WjxDjxxFzbtj> page = new Page<WjxDjxxFzbtj>(pageNo, pageSize);
|
||||
IPage<WjxDjxxFzbtj> pageList = wjxDjxxFzbtjService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param wjxDjxxFzbtj
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "wjx_djxx_fzbtj-添加")
|
||||
@ApiOperation(value = "wjx_djxx_fzbtj-添加", notes = "wjx_djxx_fzbtj-添加")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<Map<String, Object>> add(@RequestBody WjxDjxxFzbtj wjxDjxxFzbtj) {
|
||||
return Result.OK(wjxDjxxFzbtjService.saveData(wjxDjxxFzbtj));
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param wjxDjxxFzbtj
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "wjx_djxx_fzbtj-编辑")
|
||||
@ApiOperation(value = "wjx_djxx_fzbtj-编辑", notes = "wjx_djxx_fzbtj-编辑")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody WjxDjxxFzbtj wjxDjxxFzbtj) {
|
||||
wjxDjxxFzbtjService.updateById(wjxDjxxFzbtj);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "wjx_djxx_fzbtj-通过id删除")
|
||||
@ApiOperation(value = "wjx_djxx_fzbtj-通过id删除", notes = "wjx_djxx_fzbtj-通过id删除")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name = "id", required = true) String id) {
|
||||
wjxDjxxFzbtjService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "wjx_djxx_fzbtj-批量删除")
|
||||
@ApiOperation(value = "wjx_djxx_fzbtj-批量删除", notes = "wjx_djxx_fzbtj-批量删除")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
|
||||
this.wjxDjxxFzbtjService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "wjx_djxx_fzbtj-通过id查询")
|
||||
@ApiOperation(value = "wjx_djxx_fzbtj-通过id查询", notes = "wjx_djxx_fzbtj-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<WjxDjxxFzbtj> queryById(@RequestParam(name = "id", required = true) String id) {
|
||||
WjxDjxxFzbtj wjxDjxxFzbtj = wjxDjxxFzbtjService.getById(id);
|
||||
if (wjxDjxxFzbtj == null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(wjxDjxxFzbtj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param wjxDjxxFzbtj
|
||||
*/
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, WjxDjxxFzbtj wjxDjxxFzbtj) {
|
||||
return super.exportXls(request, wjxDjxxFzbtj, WjxDjxxFzbtj.class, "wjx_djxx_fzbtj");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, WjxDjxxFzbtj.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取考试剩余时间
|
||||
*
|
||||
* @param redisKey
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/getExamTime")
|
||||
public Result<String> getExamTime(@RequestBody String redisKey) {
|
||||
return Result.OK(wjxDjxxFzbtjService.getExamTime(redisKey));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
package org.jeecg.modules.kc.wjxDjxxFzbtj.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: wjx_djxx_fzbtj
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-01-07
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("wjx_djxx_fzbtj")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value = "wjx_djxx_fzbtj对象", description = "wjx_djxx_fzbtj")
|
||||
public class WjxDjxxFzbtj implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private String id;
|
||||
/**
|
||||
* wjx_djxx表id
|
||||
*/
|
||||
@Excel(name = "wjx_djxx表id", width = 15)
|
||||
@ApiModelProperty(value = "wjx_djxx表id")
|
||||
private String djxxId;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private String createBy;
|
||||
/**
|
||||
* 学生姓名
|
||||
*/
|
||||
@Excel(name = "学生姓名", width = 15)
|
||||
@ApiModelProperty(value = "学生姓名")
|
||||
private String studentName;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "修改时间")
|
||||
private Date updateTime;
|
||||
/**
|
||||
* 问卷编号(提交问卷、查询问卷会用到)
|
||||
*/
|
||||
@Excel(name = "问卷编号(提交问卷、查询问卷会用到)", width = 15)
|
||||
@ApiModelProperty(value = "问卷编号(提交问卷、查询问卷会用到)")
|
||||
private String vid;
|
||||
/**
|
||||
* 答卷编号
|
||||
*/
|
||||
@Excel(name = "答卷编号", width = 15)
|
||||
@ApiModelProperty(value = "答卷编号")
|
||||
private String jid;
|
||||
/**
|
||||
* 作弊类型
|
||||
* 1、退出全屏
|
||||
* 2、切屏
|
||||
* 3、考试超时
|
||||
*/
|
||||
@Excel(name = "作弊类型1、退出全屏2、切屏3、考试超时4、开始答题", width = 15)
|
||||
@ApiModelProperty(value = "作弊类型1、退出全屏2、切屏3、考试超时4、开始答题")
|
||||
private int type;
|
||||
/**
|
||||
* 作弊内容:XX时间,XX操作;
|
||||
*/
|
||||
@Excel(name = "作弊内容:XX时间,XX操作;", width = 15)
|
||||
@ApiModelProperty(value = "作弊内容:XX时间,XX操作;")
|
||||
private String content;
|
||||
|
||||
//作答时限(分钟)
|
||||
@TableField(exist = false)
|
||||
private Integer zdsx;
|
||||
|
||||
//结束时间
|
||||
@TableField(exist = false)
|
||||
private String endTime;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.kc.wjxDjxxFzbtj.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.kc.wjxDjxxFzbtj.entity.WjxDjxxFzbtj;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: wjx_djxx_fzbtj
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-01-07
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface WjxDjxxFzbtjMapper extends BaseMapper<WjxDjxxFzbtj> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.kc.wjxDjxxFzbtj.mapper.WjxDjxxFzbtjMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.kc.wjxDjxxFzbtj.service;
|
||||
|
||||
import org.jeecg.modules.kc.wjxDjxxFzbtj.entity.WjxDjxxFzbtj;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description: wjx_djxx_fzbtj
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-01-07
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IWjxDjxxFzbtjService extends IService<WjxDjxxFzbtj> {
|
||||
Map<String, Object> saveData(WjxDjxxFzbtj wjxDjxxFzbtj);
|
||||
|
||||
String getExamTime(String redisKey);
|
||||
|
||||
}
|
|
@ -0,0 +1,137 @@
|
|||
package org.jeecg.modules.kc.wjxDjxxFzbtj.service.impl;
|
||||
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.jeecg.common.system.vo.LoginUser;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.kc.wjxDjxxFzbtj.entity.WjxDjxxFzbtj;
|
||||
import org.jeecg.modules.kc.wjxDjxxFzbtj.mapper.WjxDjxxFzbtjMapper;
|
||||
import org.jeecg.modules.kc.wjxDjxxFzbtj.service.IWjxDjxxFzbtjService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.redis.core.RedisTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.time.format.DateTimeParseException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* @Description: wjx_djxx_fzbtj
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-01-07
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class WjxDjxxFzbtjServiceImpl extends ServiceImpl<WjxDjxxFzbtjMapper, WjxDjxxFzbtj> implements IWjxDjxxFzbtjService {
|
||||
|
||||
@Autowired
|
||||
public RedisTemplate redisTemplate;
|
||||
|
||||
@Override
|
||||
public Map<String, Object> saveData(WjxDjxxFzbtj wjxDjxxFzbtj) {
|
||||
// 创建返回的Map
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
wjxDjxxFzbtj.setId(IdUtil.simpleUUID());
|
||||
wjxDjxxFzbtj.setStudentName(sysUser.getRealname());
|
||||
|
||||
// 设置内容
|
||||
switch (wjxDjxxFzbtj.getType()) {
|
||||
case 1:
|
||||
wjxDjxxFzbtj.setContent(sysUser.getRealname() + "在" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH:mm:ss")) + "退出全屏;");
|
||||
break;
|
||||
case 2:
|
||||
wjxDjxxFzbtj.setContent(sysUser.getRealname() + "在" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH:mm:ss")) + "切屏;");
|
||||
break;
|
||||
case 3:
|
||||
wjxDjxxFzbtj.setContent(sysUser.getRealname() + "在" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH:mm:ss")) + "提交超时;");
|
||||
break;
|
||||
case 4:
|
||||
if (wjxDjxxFzbtj.getZdsx() != null) {
|
||||
String finishTime = oConvertUtils.getString(redisTemplate.opsForValue().get("ktcy" + ":" + wjxDjxxFzbtj.getVid() + ":" + sysUser.getUsername()));
|
||||
resultMap.put("finishTime", finishTime);//考试结束时间
|
||||
if (StringUtils.isBlank(finishTime)) {
|
||||
//计算考试剩余时间
|
||||
String endTimeStr = wjxDjxxFzbtj.getEndTime();
|
||||
LocalDateTime endTime = LocalDateTime.parse(endTimeStr, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"));
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
Duration duration = Duration.between(now, endTime);
|
||||
finishTime = LocalDateTime.now().plus(Duration.ofMinutes(wjxDjxxFzbtj.getZdsx())).format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
redisTemplate.opsForValue().set(
|
||||
"ktcy" + ":" + wjxDjxxFzbtj.getVid() + ":" + sysUser.getUsername(),
|
||||
finishTime,
|
||||
duration.getSeconds(),
|
||||
TimeUnit.SECONDS);
|
||||
resultMap.put("finishTime", finishTime);//考试结束时间
|
||||
} else {
|
||||
try {
|
||||
// 解析结束时间并检查是否过期
|
||||
LocalDateTime finishDateTime = LocalDateTime.parse(finishTime, DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
boolean isExpired = !finishDateTime.isAfter(now);
|
||||
|
||||
resultMap.put("expired", isExpired);//是否超时
|
||||
|
||||
//未超时返回剩余时间格式化后的字符串
|
||||
if (!isExpired) {
|
||||
Duration duration = Duration.between(now, finishDateTime);
|
||||
|
||||
long hoursLeft = duration.toHours();
|
||||
long minutesLeft = duration.toMinutes() % 60;
|
||||
long secondsLeft = duration.getSeconds() % 60;
|
||||
|
||||
StringBuilder timeLeftBuilder = new StringBuilder();
|
||||
|
||||
if (hoursLeft > 0) {
|
||||
timeLeftBuilder.append(hoursLeft).append("小时");
|
||||
}
|
||||
if (minutesLeft > 0 || hoursLeft == 0) { // 如果没有小时或有分钟,则显示分钟
|
||||
if (timeLeftBuilder.length() > 0) {
|
||||
timeLeftBuilder.append(" ");
|
||||
}
|
||||
timeLeftBuilder.append(minutesLeft).append("分钟");
|
||||
}
|
||||
if (secondsLeft > 0 || (hoursLeft == 0 && minutesLeft == 0)) { // 如果没有小时和分钟或者有秒,则显示秒
|
||||
if (timeLeftBuilder.length() > 0) {
|
||||
timeLeftBuilder.append(" ");
|
||||
}
|
||||
timeLeftBuilder.append(secondsLeft).append("秒");
|
||||
}
|
||||
|
||||
resultMap.put("timeLeft", timeLeftBuilder.toString());
|
||||
}
|
||||
} catch (DateTimeParseException e) {
|
||||
// 如果解析失败,可以在这里处理异常
|
||||
// Map<String, Object> errorResult = new HashMap<>();
|
||||
// errorResult.put("error", "时间格式错误");
|
||||
// return errorResult;
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
wjxDjxxFzbtj.setContent(sysUser.getRealname() + "在" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH:mm:ss")) + "开始作答;");
|
||||
break;
|
||||
default:
|
||||
// 处理其他类型
|
||||
break;
|
||||
}
|
||||
|
||||
baseMapper.insert(wjxDjxxFzbtj);
|
||||
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getExamTime(String redisKey) {
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
String string = oConvertUtils.getString(redisTemplate.opsForValue().get(redisKey + ":" + sysUser.getUsername()));
|
||||
return string;
|
||||
}
|
||||
}
|
|
@ -83,7 +83,6 @@ public class WjxWjxxController extends JeecgController<WjxWjxx, IWjxWjxxService>
|
|||
private IWjxWjxxTmlbService wjxWjxxTmlbService;
|
||||
|
||||
|
||||
|
||||
@Autowired
|
||||
private SysBaseApiImpl sysBaseApi;
|
||||
@Autowired
|
||||
|
@ -95,6 +94,7 @@ public class WjxWjxxController extends JeecgController<WjxWjxx, IWjxWjxxService>
|
|||
private String upLoadPath;
|
||||
@Autowired
|
||||
private IKcKechengbiaoService kcKechengbiaoService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
|
@ -132,6 +132,7 @@ public class WjxWjxxController extends JeecgController<WjxWjxx, IWjxWjxxService>
|
|||
Page<WjxWjxx> pageList = wjxWjxxService.findPage(wjxWjxx, new Page<>(pageNo, pageSize));
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 学生问卷分页列表查询
|
||||
*
|
||||
|
@ -520,7 +521,6 @@ public class WjxWjxxController extends JeecgController<WjxWjxx, IWjxWjxxService>
|
|||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "教学大纲-分页列表查询", notes = "教学大纲-分页列表查询")
|
||||
@GetMapping(value = "/sysList")
|
||||
public Result<IPage<KccyglSys>> sysList(KccyglSys kccyglSys,
|
||||
|
@ -619,8 +619,6 @@ public class WjxWjxxController extends JeecgController<WjxWjxx, IWjxWjxxService>
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value="判断学生是否答过题", notes="判断学生是否答过题")
|
||||
@GetMapping(value = "/querySfdtById")
|
||||
public Result<WjxWjxx> querySfdtById(@RequestParam(name="id",required=true) String id) {
|
||||
|
@ -669,7 +667,6 @@ public class WjxWjxxController extends JeecgController<WjxWjxx, IWjxWjxxService>
|
|||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "问卷信息-微信提醒", notes = "微信提醒")
|
||||
@GetMapping(value = "/sendWxtx")
|
||||
public void sendWxtx(@RequestParam(name = "id", required = true) String id, @RequestParam(name = "wjlx", required = true) String wjlx) {
|
||||
|
|
|
@ -105,6 +105,10 @@ public class WjxWjxx implements Serializable {
|
|||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
|
||||
private Date endTime;
|
||||
@ApiModelProperty(value = "防作弊模式:Y-开启 N-关闭")
|
||||
private String fzbms;
|
||||
@ApiModelProperty(value = "作答时限(答题时间限制)")
|
||||
private Integer zdsx;
|
||||
|
||||
private String sort;//排序
|
||||
private String score;//占比
|
||||
|
@ -158,4 +162,6 @@ public class WjxWjxx implements Serializable {
|
|||
private String yuanTeacherNo;
|
||||
@TableField(exist = false)
|
||||
private String yuanTeacherName;
|
||||
@TableField(exist = false)
|
||||
private String ts;
|
||||
}
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
package org.jeecg.modules.kc.wjxWjxx.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.kc.wjxWjxx.entity.KccyglSys;
|
||||
import org.jeecg.modules.kc.wjxWjxx.entity.WjxWjxx;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: 问卷信息
|
||||
|
|
|
@ -40,6 +40,8 @@
|
|||
a.kcmc,
|
||||
a.start_time,
|
||||
a.end_time,
|
||||
a.fzbms,
|
||||
a.zdsx,
|
||||
ifnull(b.flag,'-1') as flag,
|
||||
b.id as djId
|
||||
from wjx_wjxx a
|
||||
|
|
|
@ -3,13 +3,12 @@ package org.jeecg.modules.kc.wjxWjxx.service;
|
|||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import org.jeecg.modules.kc.wjxWjxx.entity.KccyglSys;
|
||||
import org.jeecg.modules.kc.wjxWjxx.entity.WjxWjxx;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description: 问卷信息
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
package org.jeecg.modules.kc.wjxWjxx.service.impl;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||
import com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.xkcoding.http.HttpUtil;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.jeecg.common.system.vo.LoginUser;
|
||||
|
@ -36,19 +34,15 @@ import org.jeecg.modules.kc.wjxWjxxTmlb.mapper.WjxWjxxTmlbMapper;
|
|||
import org.jeecg.modules.kc.wjxWjxxTmlb.mapper.WjxWjxxTmxxMapper;
|
||||
import org.jeecg.modules.kc.zyDbtx.entity.ZyDbtx;
|
||||
import org.jeecg.modules.kc.zyDbtx.service.IZyDbtxService;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfo;
|
||||
import org.jeecg.modules.kc.zyInfoScjl.entity.ZyInfoScjl;
|
||||
import org.jeecg.modules.kc.zyInfoScjl.service.IZyInfoScjlService;
|
||||
import org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudent;
|
||||
import org.jeecg.modules.tools.dbsdkfzpt.RestTemplateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.http.*;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import java.time.temporal.ChronoUnit;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
|
@ -462,7 +456,6 @@ public class WjxWjxxServiceImpl extends ServiceImpl<WjxWjxxMapper, WjxWjxx> impl
|
|||
List<WjxWjxxTmlb> list = wjxWjxxTmlbMapper.selectList(wjxWjxxTmlbQueryWrapper);
|
||||
|
||||
|
||||
|
||||
for (WjxWjxxTmlb WjxWjxxTmlb : list) {
|
||||
String num = "0";
|
||||
String num2 = "0";
|
||||
|
@ -517,8 +510,6 @@ public class WjxWjxxServiceImpl extends ServiceImpl<WjxWjxxMapper, WjxWjxx> impl
|
|||
List<Xxhbbks> list2 = xxhbbksService.getXsxkbAllList(queryWrapper2);
|
||||
|
||||
|
||||
|
||||
|
||||
QueryWrapper<KcKechengbiao> kcKechengbiaoQueryWrapper = new QueryWrapper<>();
|
||||
kcKechengbiaoQueryWrapper.eq("rwbh", wjxWjxx.getRwbh());
|
||||
kcKechengbiaoQueryWrapper.eq("jgh", wjxWjxx.getCreateBy());
|
||||
|
@ -611,7 +602,6 @@ public class WjxWjxxServiceImpl extends ServiceImpl<WjxWjxxMapper, WjxWjxx> impl
|
|||
System.out.println("=======================================");
|
||||
|
||||
|
||||
|
||||
QueryWrapper<WjxDjxx> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("vid", wjxWjxx.getVid());
|
||||
queryWrapper.eq("sfsckhcl", "0");
|
||||
|
@ -721,7 +711,8 @@ public class WjxWjxxServiceImpl extends ServiceImpl<WjxWjxxMapper, WjxWjxx> impl
|
|||
// password=DesUtil.encrypt(password);
|
||||
String url = prefixUrl + "/oauth/token?grant_type=password&scope=read&username=" + userName + "&password=" + password;
|
||||
|
||||
ResponseEntity<Object> response = restTemplate.exchange(url, HttpMethod.POST, request, Object.class);;
|
||||
ResponseEntity<Object> response = restTemplate.exchange(url, HttpMethod.POST, request, Object.class);
|
||||
;
|
||||
|
||||
LinkedHashMap<String, Object> map = (LinkedHashMap<String, Object>) response.getBody();
|
||||
|
||||
|
|
|
@ -32,7 +32,9 @@ import org.jeecg.modules.kc.zyDbtx.service.IZyDbtxService;
|
|||
import org.jeecg.modules.kc.zyInfo.entity.CyInfoSys;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfo;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyXzInfo;
|
||||
import org.jeecg.modules.kc.zyInfo.pojo.ExportEntity1;
|
||||
import org.jeecg.modules.kc.zyInfo.pojo.XzReq;
|
||||
import org.jeecg.modules.kc.zyInfo.service.IZyInfoService;
|
||||
import org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudent;
|
||||
import org.jeecg.modules.kc.zyInfoStudent.service.IZyInfoStudentService;
|
||||
|
@ -200,8 +202,6 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "引用作业列表", notes = "引用作业列表")
|
||||
@GetMapping(value = "/listOther")
|
||||
public Result<IPage<ZyInfo>> listOther(ZyInfo zyInfo,
|
||||
|
@ -607,7 +607,6 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
|
|||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "教学大纲-分页列表查询", notes = "教学大纲-分页列表查询")
|
||||
@GetMapping(value = "/sysList")
|
||||
public Result<IPage<ZyInfoSys>> sysList(ZyInfoSys zyInfoSys,
|
||||
|
@ -740,7 +739,6 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
|
|||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "作业发布-通过id查询", notes = "作业发布-通过id查询")
|
||||
@GetMapping(value = "/queryZyinfoByStuId")
|
||||
public Result<ZyInfo> queryZyinfoByStuId(@RequestParam(name = "id", required = true) String id) {
|
||||
|
@ -750,7 +748,6 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
|
|||
}
|
||||
|
||||
|
||||
|
||||
@AutoLog(value = "作业发布-添加")
|
||||
@ApiOperation(value = "作业发布-添加", notes = "作业发布-添加")
|
||||
@PostMapping(value = "/batchAdd")
|
||||
|
@ -888,7 +885,6 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
|
|||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
|
@ -951,8 +947,6 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "统计作业测试使用情况", notes = "统计作业测试使用情况")
|
||||
@GetMapping(value = "/sysStaticNo")
|
||||
public Result<Map<String, Object>> sysStaticNo(ZyInfoSys zyInfoSys,
|
||||
|
@ -1207,7 +1201,6 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
|
|||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value = "作业发布-分页列表查询", notes = "作业发布-分页列表查询")
|
||||
@GetMapping(value = "/listKhcl")
|
||||
public Result<IPage<ZyInfo>> listKhcl(ZyInfo zyInfo,
|
||||
|
@ -1227,4 +1220,15 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
|
|||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
@PostMapping(value = "/getxzxx")
|
||||
public Result<List<ZyXzInfo>> getxzxx(@RequestBody ZyInfo zyInfo) {
|
||||
return Result.OK(zyInfoService.getxzxx(zyInfo));
|
||||
}
|
||||
|
||||
@PostMapping(value = "/saveData")
|
||||
public Result<String> saveData(@RequestBody XzReq req) {
|
||||
zyInfoService.saveData(req.getZyinfoId(), req.getRs(), req.getList());
|
||||
return Result.OK("保存成功!");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -120,6 +120,16 @@ public class ZyInfo implements Serializable {
|
|||
@Excel(name = "校内通过率", width = 15)
|
||||
@ApiModelProperty(value = "校内通过率")
|
||||
private java.lang.Double xntgl;
|
||||
|
||||
@ApiModelProperty(value = "是否以小组形式提交作业 Y N")
|
||||
private String xzxstjzy;
|
||||
|
||||
@ApiModelProperty(value = "小组人数")
|
||||
private Integer xzrs;
|
||||
|
||||
@ApiModelProperty(value = "是否配置过小组信息 Y N")
|
||||
private String sfpzgxzxx;
|
||||
|
||||
//作业分值
|
||||
private String score;
|
||||
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
package org.jeecg.modules.kc.zyInfo.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
/**
|
||||
* @Description: zy_xz_info
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-01-13
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@ApiModel(value="zy_xz_info对象", description="zy_xz_info")
|
||||
@Data
|
||||
@TableName("zy_xz_info")
|
||||
public class ZyXzInfo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
List<ZyXzryInfo> students;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private String id;
|
||||
/**zy_info表id*/
|
||||
@Excel(name = "zy_info表id", width = 15)
|
||||
@ApiModelProperty(value = "zy_info表id")
|
||||
private String zyinfoId;
|
||||
/**createBy*/
|
||||
@ApiModelProperty(value = "createBy")
|
||||
private String createBy;
|
||||
/**createTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "createTime")
|
||||
private Date createTime;
|
||||
/**小组名称*/
|
||||
@Excel(name = "小组名称", width = 15)
|
||||
@ApiModelProperty(value = "小组名称")
|
||||
private String xzmc;
|
||||
/**小组排序*/
|
||||
@Excel(name = "小组排序", width = 15)
|
||||
@ApiModelProperty(value = "小组排序")
|
||||
private Integer sort;
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
package org.jeecg.modules.kc.zyInfo.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: zy_xzry_info
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-01-13
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("zy_xzry_info")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="zy_xzry_info对象", description="zy_xzry_info")
|
||||
public class ZyXzryInfo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private String id;
|
||||
/**zy_info表id*/
|
||||
@Excel(name = "zy_info表id", width = 15)
|
||||
@ApiModelProperty(value = "zy_info表id")
|
||||
private String zyinfoId;
|
||||
/**zy_xz_info表id*/
|
||||
@Excel(name = "zy_xz_info表id", width = 15)
|
||||
@ApiModelProperty(value = "zy_xz_info表id")
|
||||
private String zyxzinfoId;
|
||||
/**姓名*/
|
||||
@Excel(name = "姓名", width = 15)
|
||||
@ApiModelProperty(value = "姓名")
|
||||
private String xm;
|
||||
/**学号*/
|
||||
@Excel(name = "学号", width = 15)
|
||||
@ApiModelProperty(value = "学号")
|
||||
private String xh;
|
||||
/**是否是组长 Y N*/
|
||||
@Excel(name = "是否是组长 Y N", width = 15)
|
||||
@ApiModelProperty(value = "是否是组长 Y N")
|
||||
private String sfzz;
|
||||
}
|
|
@ -7,10 +7,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.CyInfoSys;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfo;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.*;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys;
|
||||
|
||||
/**
|
||||
* @Description: 作业发布
|
||||
|
@ -63,4 +61,14 @@ public interface ZyInfoMapper extends BaseMapper<ZyInfo> {
|
|||
List<CyInfoSys> getStaticCyExportUrl(@Param("zyInfoSys") CyInfoSys cyInfoSys);
|
||||
|
||||
IPage<ZyInfo> listKhcl(Page<ZyInfo> page, @Param(Constants.WRAPPER) QueryWrapper<ZyInfo> queryWrapper);
|
||||
|
||||
List<ZyXzInfo> getxzxx(@Param("dto") ZyInfo zyInfo);
|
||||
|
||||
int insertBatchzyxz(@Param("list") List<ZyXzInfo> list);
|
||||
|
||||
int insertBatchzyxzry(@Param("list") List<ZyXzryInfo> list);
|
||||
|
||||
int deleteXzxx(@Param("zyinfoId") String zyinfoId);
|
||||
|
||||
int deleteXzryxx(@Param("zyinfoId") String zyinfoId);
|
||||
}
|
||||
|
|
|
@ -2,11 +2,48 @@
|
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.kc.zyInfo.mapper.ZyInfoMapper">
|
||||
|
||||
<resultMap id="ZyXzInfoResultMap" type="org.jeecg.modules.kc.zyInfo.entity.ZyXzInfo">
|
||||
<id property="id" column="zxi_id"/>
|
||||
<result property="zyinfoId" column="zyinfo_id"/>
|
||||
<result property="xzmc" column="xzmc"/>
|
||||
<result property="sort" column="sort"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
|
||||
<collection property="students" ofType="org.jeecg.modules.kc.zyInfo.entity.ZyXzryInfo"
|
||||
column="{zyxzinfo_id=zxi_id}">
|
||||
<id property="id" column="ry_id"/>
|
||||
<result property="zyinfoId" column="ryzyinfoid"/>
|
||||
<result property="zyxzinfoId" column="zyxzinfo_id"/>
|
||||
<result property="xm" column="xm"/>
|
||||
<result property="xh" column="xh"/>
|
||||
<result property="sfzz" column="sfzz"/>
|
||||
</collection>
|
||||
</resultMap>
|
||||
|
||||
<select id="stuList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfo">
|
||||
select
|
||||
distinct
|
||||
a.*,b.id as stuId ,b.file_path as stuFilePath,b.score as stuscore,b.wwxsl,b.nwxsl,b.aigcxsl,b.xnxsl,b.pdf_path as stuPdfPath,b.zzdf,b.xshpfs,
|
||||
b.wwsftg,b.nwsftg,b.aigcsftg,b.xnsftg,round(ifnull(b.jxfs,'0') + ifnull(b.jxfs2,'0'),1) as jxfs, GREATEST(ifnull(b.wwxsl,0),ifnull(b.nwxsl,0),ifnull(b.aigcxsl,0),ifnull(b.xnxsl,0)) as zgccl,a.score as zyzb,b.score_fabu,b.py_content,b.py_file_path
|
||||
select distinct a.*,
|
||||
b.id as stuId,
|
||||
b.file_path as stuFilePath,
|
||||
b.score as stuscore,
|
||||
b.wwxsl,
|
||||
b.nwxsl,
|
||||
b.aigcxsl,
|
||||
b.xnxsl,
|
||||
b.pdf_path as stuPdfPath,
|
||||
b.zzdf,
|
||||
b.xshpfs,
|
||||
b.wwsftg,
|
||||
b.nwsftg,
|
||||
b.aigcsftg,
|
||||
b.xnsftg,
|
||||
round(ifnull(b.jxfs, '0') + ifnull(b.jxfs2, '0'), 1) as jxfs,
|
||||
GREATEST(ifnull(b.wwxsl, 0), ifnull(b.nwxsl, 0), ifnull(b.aigcxsl, 0),
|
||||
ifnull(b.xnxsl, 0)) as zgccl,
|
||||
a.score as zyzb,
|
||||
b.score_fabu,
|
||||
b.py_content,
|
||||
b.py_file_path
|
||||
from zy_info a
|
||||
LEFT JOIN xxhbxsxkb c on a.rwbh = c.KCAPZBBH
|
||||
left join zy_info_student b on a.id = b.main_id and b.create_by = c.xh
|
||||
|
@ -14,29 +51,57 @@
|
|||
|
||||
</select>
|
||||
<select id="selectPage" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfo">
|
||||
SELECT
|
||||
a.*,
|
||||
ifnull(b.num,0) as wtjnum,ifnull(c.num,0) as ytjnum,ifnull(d.num,0) as wpynum,ifnull(e.num,0) as ypynum,ifnull(f.num,0) as dpynum
|
||||
FROM
|
||||
zy_info a
|
||||
left join (select count(*) as num,main_id from zy_info_student where file_path is null GROUP BY main_id ) b on a.id = b.main_id
|
||||
left join (select count(*) as num,main_id from zy_info_student where file_path is not null GROUP BY main_id) c on a.id = c.main_id
|
||||
left join (select count(*) as num,main_id from zy_info_student where score is null GROUP BY main_id ) d on a.id = d.main_id
|
||||
left join (select count(*) as num,main_id from zy_info_student where score is not null GROUP BY main_id) e on a.id = e.main_id
|
||||
left join (select count(*) as num,main_id from zy_info_student where score is null and file_path is not null GROUP BY main_id) f on a.id = f.main_id
|
||||
SELECT a.*,
|
||||
ifnull(b.num, 0) as wtjnum,
|
||||
ifnull(c.num, 0) as ytjnum,
|
||||
ifnull(d.num, 0) as wpynum,
|
||||
ifnull(e.num, 0) as ypynum,
|
||||
ifnull(f.num, 0) as dpynum
|
||||
FROM zy_info a
|
||||
left join (select count(*) as num, main_id
|
||||
from zy_info_student
|
||||
where file_path is null
|
||||
GROUP BY main_id) b on a.id = b.main_id
|
||||
left join (select count(*) as num, main_id
|
||||
from zy_info_student
|
||||
where file_path is not null
|
||||
GROUP BY main_id) c on a.id = c.main_id
|
||||
left join (select count(*) as num, main_id from zy_info_student where score is null GROUP BY main_id) d
|
||||
on a.id = d.main_id
|
||||
left join (select count(*) as num, main_id
|
||||
from zy_info_student
|
||||
where score is not null
|
||||
GROUP BY main_id) e on a.id = e.main_id
|
||||
left join (select count(*) as num, main_id
|
||||
from zy_info_student
|
||||
where score is null and file_path is not null
|
||||
GROUP BY main_id) f on a.id = f.main_id
|
||||
${ew.customSqlSegment}
|
||||
|
||||
</select>
|
||||
|
||||
<select id="sysList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
SELECT t.kcbh, t.kcmc, t.kkdw, t.kcxz, t.szkc, t.xqxn, t.rwbh, t.xkrs, t.jgh,t.jzglb zc, t.skjs,b.num,
|
||||
SELECT t.kcbh,
|
||||
t.kcmc,
|
||||
t.kkdw,
|
||||
t.kcxz,
|
||||
t.szkc,
|
||||
t.xqxn,
|
||||
t.rwbh,
|
||||
t.xkrs,
|
||||
t.jgh,
|
||||
t.jzglb zc,
|
||||
t.skjs,
|
||||
b.num,
|
||||
b.fbzycs, -- 发布作业次数
|
||||
b.zywccs, -- 作业完成次数
|
||||
b.cccs, -- 查重次数
|
||||
b.hpcs, -- 互评次数
|
||||
b.cswwccs -- 超时未完成次数
|
||||
FROM (
|
||||
select xnxq,rwbh,create_by,count(*) as num,
|
||||
FROM (select xnxq,
|
||||
rwbh,
|
||||
create_by,
|
||||
count(*) as num,
|
||||
SUM(CASE WHEN zy_status IN ('1', '2') THEN 1 ELSE 0 END) AS fbzycs,
|
||||
SUM(CASE WHEN zy_status = '2' THEN 1 ELSE 0 END) AS zywccs,
|
||||
SUM(CASE WHEN zy_status in ('1', '2') and sfcc IN ('1', '2') THEN 1 ELSE 0 END) AS cccs,
|
||||
|
@ -47,28 +112,47 @@
|
|||
ELSE 0
|
||||
END
|
||||
) AS cswwccs
|
||||
from zy_info GROUP BY xnxq,rwbh,create_by
|
||||
) b
|
||||
inner join (
|
||||
SELECT DISTINCT
|
||||
kcbh,kcmc,kkdw,kcxz,szkc,xqxn, rwbh, xkrs,jzglb, jgh,skjs
|
||||
FROM
|
||||
kc_kechengbiao
|
||||
${ew.customSqlSegment}
|
||||
) t on t.jgh = b.create_by and t.rwbh = b.rwbh and t.xqxn = b.xnxq
|
||||
from zy_info
|
||||
GROUP BY xnxq, rwbh, create_by) b
|
||||
inner join (SELECT DISTINCT kcbh,
|
||||
kcmc,
|
||||
kkdw,
|
||||
kcxz,
|
||||
szkc,
|
||||
xqxn,
|
||||
rwbh,
|
||||
xkrs,
|
||||
jzglb,
|
||||
jgh,
|
||||
skjs
|
||||
FROM kc_kechengbiao ${ew.customSqlSegment}) t
|
||||
on t.jgh = b.create_by and t.rwbh = b.rwbh and t.xqxn = b.xnxq
|
||||
GROUP BY kcbh, kcmc, kkdw, kcxz, szkc, xqxn, rwbh, skjs, xkrs, jgh, zc
|
||||
|
||||
</select>
|
||||
|
||||
<select id="exportSysXls" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
SELECT t.kcbh, t.kcmc, t.kkdw, t.kcxz, t.szkc, t.xqxn, t.rwbh, t.xkrs, t.jgh,t.jzglb zc, t.skjs,b.num,
|
||||
SELECT t.kcbh,
|
||||
t.kcmc,
|
||||
t.kkdw,
|
||||
t.kcxz,
|
||||
t.szkc,
|
||||
t.xqxn,
|
||||
t.rwbh,
|
||||
t.xkrs,
|
||||
t.jgh,
|
||||
t.jzglb zc,
|
||||
t.skjs,
|
||||
b.num,
|
||||
b.fbzycs, -- 发布作业次数
|
||||
b.zywccs, -- 作业完成次数
|
||||
b.cccs, -- 查重次数
|
||||
b.hpcs, -- 互评次数
|
||||
b.cswwccs -- 超时未完成次数
|
||||
FROM (
|
||||
select xnxq,rwbh,create_by,count(*) as num,
|
||||
FROM (select xnxq,
|
||||
rwbh,
|
||||
create_by,
|
||||
count(*) as num,
|
||||
SUM(CASE WHEN zy_status IN ('1', '2') THEN 1 ELSE 0 END) AS fbzycs,
|
||||
SUM(CASE WHEN zy_status = '2' THEN 1 ELSE 0 END) AS zywccs,
|
||||
SUM(CASE WHEN zy_status in ('1', '2') and sfcc IN ('1', '2') THEN 1 ELSE 0 END) AS cccs,
|
||||
|
@ -79,21 +163,29 @@
|
|||
ELSE 0
|
||||
END
|
||||
) AS cswwccs
|
||||
from zy_info GROUP BY xnxq,rwbh,create_by
|
||||
) b
|
||||
inner join (
|
||||
SELECT DISTINCT
|
||||
kcbh,kcmc,kkdw,kcxz,szkc,xqxn, rwbh, xkrs, jgh,jzglb,skjs
|
||||
FROM
|
||||
kc_kechengbiao
|
||||
${ew.customSqlSegment}
|
||||
) t on t.jgh = b.create_by and t.rwbh = b.rwbh and t.xqxn = b.xnxq
|
||||
from zy_info
|
||||
GROUP BY xnxq, rwbh, create_by) b
|
||||
inner join (SELECT DISTINCT kcbh,
|
||||
kcmc,
|
||||
kkdw,
|
||||
kcxz,
|
||||
szkc,
|
||||
xqxn,
|
||||
rwbh,
|
||||
xkrs,
|
||||
jgh,
|
||||
jzglb,
|
||||
skjs
|
||||
FROM kc_kechengbiao ${ew.customSqlSegment}) t
|
||||
on t.jgh = b.create_by and t.rwbh = b.rwbh and t.xqxn = b.xnxq
|
||||
GROUP BY kcbh, kcmc, kkdw, kcxz, szkc, xqxn, rwbh, skjs, xkrs, jgh, jzglb
|
||||
|
||||
</select>
|
||||
|
||||
<select id="exportSysXls2" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
select a.id,a.create_by,a.create_time,a.update_by,a.update_time,a.title,a.zy_type,a.content,a.start_time,a.end_time,a.zy_status,a.xnxq,a.wwcc,a.wwtgl,a.nwcc,a.nwtgl,a.aigccc,a.aigctgl,a.rwbh,a.file_path,a.xkxs,a.xncc,a.xntgl,a.score,a.kcnr,a.pfbz,a.sturead,a.sort,a.xshpkg,a.xshprsq,a.xshpkssj,a.xshpjssj,a.sfzzcj,a.xssfck,a.hpsfwcone,a.hpsfwctwo,a.zy_leixing,a.sfcc,a.sfsckhcl,a.sfsckhcl_time,b.skjs,b.jgh,b.kcmc,b.kcbh,b.xkrs,b.kkdw,b.kcxz,b.zc,a.xnxq as xqxn,
|
||||
select
|
||||
a.id,a.create_by,a.create_time,a.update_by,a.update_time,a.title,a.zy_type,a.content,a.start_time,a.end_time,a.zy_status,a.xnxq,a.wwcc,a.wwtgl,a.nwcc,a.nwtgl,a.aigccc,a.aigctgl,a.rwbh,a.file_path,a.xkxs,a.xncc,a.xntgl,a.score,a.kcnr,a.pfbz,a.sturead,a.sort,a.xshpkg,a.xshprsq,a.xshpkssj,a.xshpjssj,a.sfzzcj,a.xssfck,a.hpsfwcone,a.hpsfwctwo,a.zy_leixing,a.sfcc,a.sfsckhcl,a.sfsckhcl_time,b.skjs,b.jgh,b.kcmc,b.kcbh,b.xkrs,b.kkdw,b.kcxz,b.zc,a.xnxq
|
||||
as xqxn,
|
||||
IF( a.zy_status = '2', '全部完成', '未全部完成' ) as sfwc,
|
||||
IF( a.zy_status = '0', '未发布', '已发布' ) as sffb,
|
||||
IF( a.xshpkg = '1', '是', '否' ) as sfhp,
|
||||
|
@ -108,7 +200,8 @@
|
|||
END
|
||||
) AS cswwccs
|
||||
from zy_info a,
|
||||
(select skjs,jgh,kcmc,kcbh,xkrs,kkdw,rwbh,kcxz,zc from kc_kechengbiao where xqxn = #{zyInfoSys.xqxn} and flag = '0' GROUP BY skjs,jgh,kcmc,kcbh,xkrs,kkdw, rwbh,kcxz,zc) b
|
||||
(select skjs,jgh,kcmc,kcbh,xkrs,kkdw,rwbh,kcxz,zc from kc_kechengbiao where xqxn = #{zyInfoSys.xqxn} and flag =
|
||||
'0' GROUP BY skjs,jgh,kcmc,kcbh,xkrs,kkdw, rwbh,kcxz,zc) b
|
||||
where a.rwbh = b.rwbh and a.create_by = b.jgh and a.xnxq = #{zyInfoSys.xqxn} and a.zy_status in (1,2)
|
||||
<if test="zyInfoSys.kcmc != null and zyInfoSys.kcmc != ''">
|
||||
and a.kcmc like concat('%',#{zyInfoSys.kcmc},'%')
|
||||
|
@ -138,40 +231,37 @@
|
|||
</select>
|
||||
|
||||
<select id="getKechengById" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfo">
|
||||
select a.*,b.kcmc,b.skjs from zy_info a ,kc_kechengbiao b
|
||||
where a.rwbh = b.rwbh and a.create_by = b.jgh and a.xnxq = b.xqxn and a.id = #{id}
|
||||
limit 1
|
||||
select a.*, b.kcmc, b.skjs
|
||||
from zy_info a,
|
||||
kc_kechengbiao b
|
||||
where a.rwbh = b.rwbh
|
||||
and a.create_by = b.jgh
|
||||
and a.xnxq = b.xqxn
|
||||
and a.id = #{id} limit 1
|
||||
</select>
|
||||
|
||||
<select id="zyzb" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfo">
|
||||
SELECT
|
||||
sum( ifnull( score, '0' ) ) AS score,
|
||||
SELECT sum(ifnull(score, '0')) AS score,
|
||||
zy_leixing
|
||||
FROM
|
||||
zy_info
|
||||
WHERE
|
||||
xnxq = #{xqxn}
|
||||
FROM zy_info
|
||||
WHERE xnxq = #{xqxn}
|
||||
AND rwbh = #{rwbh}
|
||||
GROUP BY
|
||||
zy_leixing UNION ALL
|
||||
SELECT
|
||||
sum( ifnull( score, '0' ) ) AS score,
|
||||
GROUP BY zy_leixing
|
||||
UNION ALL
|
||||
SELECT sum(ifnull(score, '0')) AS score,
|
||||
CASE
|
||||
atype
|
||||
WHEN '1' THEN
|
||||
'2' ELSE '3'
|
||||
'2'
|
||||
ELSE '3'
|
||||
END zy_leixing
|
||||
FROM
|
||||
wjx_wjxx
|
||||
WHERE
|
||||
xqxn = #{xqxn}
|
||||
FROM wjx_wjxx
|
||||
WHERE xqxn = #{xqxn}
|
||||
AND rwbh = #{rwbh}
|
||||
GROUP BY
|
||||
atype
|
||||
GROUP BY atype
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="sysStaticList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
SELECT
|
||||
distinct a.id,
|
||||
|
@ -184,8 +274,10 @@
|
|||
a.start_time,
|
||||
a.end_time
|
||||
FROM
|
||||
zy_info a, xxhbuser c,(select kcmc,rwbh,skjs,jgh from kc_kechengbiao where xqxn = #{zyInfoSys.xqxn} GROUP BY kcmc,rwbh,skjs,jgh) d
|
||||
WHERE a.create_by = c.gh and d.rwbh = a.rwbh and a.create_by = d.jgh and a.xnxq = #{zyInfoSys.xqxn} and a.title is not null
|
||||
zy_info a, xxhbuser c,(select kcmc,rwbh,skjs,jgh from kc_kechengbiao where xqxn = #{zyInfoSys.xqxn} GROUP BY
|
||||
kcmc,rwbh,skjs,jgh) d
|
||||
WHERE a.create_by = c.gh and d.rwbh = a.rwbh and a.create_by = d.jgh and a.xnxq = #{zyInfoSys.xqxn} and a.title
|
||||
is not null
|
||||
<if test="zyInfoSys.kcmc != null and zyInfoSys.kcmc != ''">
|
||||
and a.kcmc like concat('%',#{zyInfoSys.kcmc},'%')
|
||||
</if>
|
||||
|
@ -212,7 +304,6 @@
|
|||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="listOther" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfo">
|
||||
select b.*,a.teacher_no,a.yuan_teacher_no,a.yuan_teacher_name from zy_cy_fenxiang a ,zy_info b
|
||||
where a.main_id = b.id
|
||||
|
@ -223,81 +314,170 @@
|
|||
|
||||
|
||||
<select id="getZyStaticNo" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
select count(distinct zi.id) as count,'1' as type from zy_info zi join kc_kechengbiao kk on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq where zi.zy_status in ('1','2') and zi.xnxq = #{zyInfoSys.xqxn} and kk.flag = 0
|
||||
select count(distinct zi.id) as count,'1' as type
|
||||
from zy_info zi join kc_kechengbiao kk
|
||||
on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq
|
||||
where zi.zy_status in ('1', '2') and zi.xnxq = #{zyInfoSys.xqxn} and kk.flag = 0
|
||||
union all
|
||||
select count(distinct zi.id) as count,'2' as type from zy_info zi join kc_kechengbiao kk on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq where zi.zy_status in ('1','2') and zi.xnxq = #{zyInfoSys.xqxn} and kk.flag = 0 and zi.xshpkg = '1'
|
||||
select count(distinct zi.id) as count,'2' as type
|
||||
from zy_info zi join kc_kechengbiao kk
|
||||
on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq
|
||||
where zi.zy_status in ('1', '2') and zi.xnxq = #{zyInfoSys.xqxn} and kk.flag = 0 and zi.xshpkg = '1'
|
||||
union all
|
||||
select count(distinct zi.id) as count,'3' as type from zy_info zi join kc_kechengbiao kk on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq where zi.zy_status in ('2') and zi.xnxq = #{zyInfoSys.xqxn} and kk.flag = 0
|
||||
select count(distinct zi.id) as count,'3' as type
|
||||
from zy_info zi join kc_kechengbiao kk
|
||||
on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq
|
||||
where zi.zy_status in ('2') and zi.xnxq = #{zyInfoSys.xqxn} and kk.flag = 0
|
||||
union all
|
||||
select count(distinct zi.id) as count,'4' as type from zy_info zi join kc_kechengbiao kk on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq where zi.zy_status in ('1','2') and (zi.update_time = DATE_FORMAT(NOW(),'%Y-%m-%d') or zi.create_time = DATE_FORMAT(NOW(),'%Y-%m-%d') ) and kk.flag = 0
|
||||
select count(distinct zi.id) as count,'4' as type
|
||||
from zy_info zi join kc_kechengbiao kk
|
||||
on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq
|
||||
where zi.zy_status in ('1'
|
||||
, '2')
|
||||
and (zi.update_time = DATE_FORMAT(NOW()
|
||||
, '%Y-%m-%d')
|
||||
or zi.create_time = DATE_FORMAT(NOW()
|
||||
, '%Y-%m-%d') )
|
||||
and kk.flag = 0
|
||||
union all
|
||||
select count(distinct zi.id) as count,'5' as type from zy_info zi join kc_kechengbiao kk on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq where zi.zy_status in ('1','2') and (zi.update_time = DATE_FORMAT(NOW(),'%Y-%m-%d') or zi.create_time = DATE_FORMAT(NOW(),'%Y-%m-%d') ) and zi.xshpkg = '1' and kk.flag = 0
|
||||
select count(distinct zi.id) as count,'5' as type
|
||||
from zy_info zi join kc_kechengbiao kk
|
||||
on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq
|
||||
where zi.zy_status in ('1'
|
||||
, '2')
|
||||
and (zi.update_time = DATE_FORMAT(NOW()
|
||||
, '%Y-%m-%d')
|
||||
or zi.create_time = DATE_FORMAT(NOW()
|
||||
, '%Y-%m-%d') )
|
||||
and zi.xshpkg = '1'
|
||||
and kk.flag = 0
|
||||
union all
|
||||
select count(distinct zi.id) as count,'6' as type from zy_info zi join kc_kechengbiao kk on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq where zi.zy_status in ('2') and (zi.update_time = DATE_FORMAT(NOW(),'%Y-%m-%d') or zi.create_time = DATE_FORMAT(NOW(),'%Y-%m-%d') ) and kk.flag = 0
|
||||
select count(distinct zi.id) as count,'6' as type
|
||||
from zy_info zi join kc_kechengbiao kk
|
||||
on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq
|
||||
where zi.zy_status in ('2')
|
||||
and (zi.update_time = DATE_FORMAT(NOW()
|
||||
, '%Y-%m-%d')
|
||||
or zi.create_time = DATE_FORMAT(NOW()
|
||||
, '%Y-%m-%d') )
|
||||
and kk.flag = 0
|
||||
union all
|
||||
select count(distinct ww.id) as count,'7' as type from wjx_wjxx ww join kc_kechengbiao kk on kk.jgh = ww.create_by AND kk.rwbh = ww.rwbh AND kk.xqxn = ww.xqxn where ww.xqxn = #{zyInfoSys.xqxn} and ww.qpublish in (1,2)
|
||||
select count(distinct ww.id) as count,'7' as type
|
||||
from wjx_wjxx ww join kc_kechengbiao kk
|
||||
on kk.jgh = ww.create_by AND kk.rwbh = ww.rwbh AND kk.xqxn = ww.xqxn
|
||||
where ww.xqxn = #{zyInfoSys.xqxn} and ww.qpublish in (1, 2)
|
||||
union all
|
||||
select count(distinct ww.id) as count,'8' as type from wjx_wjxx ww join kc_kechengbiao kk on kk.jgh = ww.create_by AND kk.rwbh = ww.rwbh AND kk.xqxn = ww.xqxn where ww.xqxn = #{zyInfoSys.xqxn} and ww.qpublish in (2)
|
||||
select count(distinct ww.id) as count,'8' as type
|
||||
from wjx_wjxx ww join kc_kechengbiao kk
|
||||
on kk.jgh = ww.create_by AND kk.rwbh = ww.rwbh AND kk.xqxn = ww.xqxn
|
||||
where ww.xqxn = #{zyInfoSys.xqxn} and ww.qpublish in (2)
|
||||
union all
|
||||
select count(distinct ww.id) as count,'9' as type from wjx_wjxx ww join kc_kechengbiao kk on kk.jgh = ww.create_by AND kk.rwbh = ww.rwbh AND kk.xqxn = ww.xqxn where (ww.update_time = DATE_FORMAT(NOW(),'%Y-%m-%d') or ww.create_time = DATE_FORMAT(NOW(),'%Y-%m-%d') ) and ww.qpublish in (1,2)
|
||||
select count(distinct ww.id) as count,'9' as type
|
||||
from wjx_wjxx ww join kc_kechengbiao kk
|
||||
on kk.jgh = ww.create_by AND kk.rwbh = ww.rwbh AND kk.xqxn = ww.xqxn
|
||||
where (ww.update_time = DATE_FORMAT(NOW()
|
||||
, '%Y-%m-%d')
|
||||
or ww.create_time = DATE_FORMAT(NOW()
|
||||
, '%Y-%m-%d') )
|
||||
and ww.qpublish in (1
|
||||
, 2)
|
||||
union all
|
||||
select count(distinct ww.id) as count,'10' as type from wjx_wjxx ww join kc_kechengbiao kk on kk.jgh = ww.create_by AND kk.rwbh = ww.rwbh AND kk.xqxn = ww.xqxn where (ww.update_time = DATE_FORMAT(NOW(),'%Y-%m-%d') or ww.create_time = DATE_FORMAT(NOW(),'%Y-%m-%d') ) and ww.qpublish in (2)
|
||||
select count(distinct ww.id) as count,'10' as type
|
||||
from wjx_wjxx ww join kc_kechengbiao kk
|
||||
on kk.jgh = ww.create_by AND kk.rwbh = ww.rwbh AND kk.xqxn = ww.xqxn
|
||||
where (ww.update_time = DATE_FORMAT(NOW()
|
||||
, '%Y-%m-%d')
|
||||
or ww.create_time = DATE_FORMAT(NOW()
|
||||
, '%Y-%m-%d') )
|
||||
and ww.qpublish in (2)
|
||||
union all
|
||||
select count(distinct zi.id) as count,'11' as type from zy_info zi join kc_kechengbiao kk on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq where zi.zy_status in ('1','2') and zi.xnxq = #{zyInfoSys.xqxn} and zi.sfcc in ('1','2') and kk.flag = 0
|
||||
select count(distinct zi.id) as count,'11' as type
|
||||
from zy_info zi join kc_kechengbiao kk
|
||||
on kk.jgh = zi.create_by AND kk.rwbh = zi.rwbh AND kk.xqxn = zi.xnxq
|
||||
where zi.zy_status in ('1', '2') and zi.xnxq = #{zyInfoSys.xqxn} and zi.sfcc in ('1', '2') and kk.flag = 0
|
||||
union all
|
||||
select count(*) as count,'12' as type from zy_info where file_path is not null and xnxq = #{zyInfoSys.xqxn}
|
||||
select count(*) as count,'12' as type
|
||||
from zy_info
|
||||
where file_path is not null and xnxq = #{zyInfoSys.xqxn}
|
||||
union all
|
||||
select count(*) as count,'13' as type from zy_info where file_path is not null and xnxq = #{zyInfoSys.xqxn} and xshpkg = '1'
|
||||
select count(*) as count,'13' as type
|
||||
from zy_info
|
||||
where file_path is not null and xnxq = #{zyInfoSys.xqxn} and xshpkg = '1'
|
||||
union all
|
||||
select count(*) as count,'14' as type from zy_info where file_path is not null and xnxq = #{zyInfoSys.xqxn} and sfcc = '1'
|
||||
select count(*) as count,'14' as type
|
||||
from zy_info
|
||||
where file_path is not null and xnxq = #{zyInfoSys.xqxn} and sfcc = '1'
|
||||
union all
|
||||
SELECT COUNT(*) as count,'16' as type FROM wjx_djxx WHERE create_time BETWEEN (SELECT bxqkssj FROM kc_sys_config WHERE flag1=#{zyInfoSys.xqxn} LIMIT 1) AND (SELECT bxqjssj FROM kc_sys_config WHERE flag1=#{zyInfoSys.xqxn} LIMIT 1);
|
||||
SELECT COUNT(*) as count,'16' as type
|
||||
FROM wjx_djxx
|
||||
WHERE create_time BETWEEN (SELECT bxqkssj FROM kc_sys_config WHERE flag1=#{zyInfoSys.xqxn} LIMIT 1)
|
||||
AND (SELECT bxqjssj FROM kc_sys_config WHERE flag1=#{zyInfoSys.xqxn} LIMIT 1);
|
||||
</select>
|
||||
|
||||
<select id="getXyZyList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
select (@rownum:=@rownum + 1) AS rownum,t.* from (
|
||||
select count(*) as count,b.dwmc as kkdw from zy_info a,xxhbuser b where a.create_by = b.gh and xnxq = #{zyInfoSys.xqxn} and zy_status in (1,2) GROUP BY b.dwmc
|
||||
) t , (SELECT @rownum:=0) AS r ORDER BY count-0 desc
|
||||
select (@rownum:=@rownum + 1) AS rownum, t.*
|
||||
from (select count(*) as count,b.dwmc as kkdw
|
||||
from zy_info a, xxhbuser b
|
||||
where a.create_by = b.gh and xnxq = #{zyInfoSys.xqxn} and zy_status in (1, 2)
|
||||
GROUP BY b.dwmc) t,
|
||||
(SELECT @rownum:=0) AS r
|
||||
ORDER BY count - 0 desc
|
||||
</select>
|
||||
|
||||
<select id="getZyList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
select (@rownum:=@rownum + 1) AS rownum,t.* from (
|
||||
select a.create_by,count(*) as count,b.xm as skjs,b.dwmc as kkdw from zy_info a,xxhbuser b where a.create_by = b.gh and xnxq = #{zyInfoSys.xqxn} and zy_status in (1,2) GROUP BY a.create_by ,b.xm,b.dwmc
|
||||
) t , (SELECT @rownum:=0) AS r ORDER BY count-0 desc
|
||||
select (@rownum:=@rownum + 1) AS rownum, t.*
|
||||
from (select a.create_by, count(*) as count,b.xm as skjs,b.dwmc as kkdw
|
||||
from zy_info a, xxhbuser b
|
||||
where a.create_by = b.gh and xnxq = #{zyInfoSys.xqxn} and zy_status in (1, 2)
|
||||
GROUP BY a.create_by, b.xm, b.dwmc) t,
|
||||
(SELECT @rownum:=0) AS r
|
||||
ORDER BY count - 0 desc
|
||||
</select>
|
||||
|
||||
<select id="getZyTopList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
select (@rownum:=@rownum + 1) AS rownum,t.* from (
|
||||
select a.create_by,count(*) as count,b.xm as skjs,b.dwmc as kkdw from zy_info a,xxhbuser b where a.create_by = b.gh and xnxq = #{zyInfoSys.xqxn} and zy_status in (1,2) GROUP BY a.create_by ,b.xm,b.dwmc
|
||||
) t , (SELECT @rownum:=0) AS r ORDER BY count-0 desc limit 10
|
||||
select (@rownum:=@rownum + 1) AS rownum, t.*
|
||||
from (select a.create_by, count(*) as count,b.xm as skjs,b.dwmc as kkdw
|
||||
from zy_info a, xxhbuser b
|
||||
where a.create_by = b.gh and xnxq = #{zyInfoSys.xqxn} and zy_status in (1, 2)
|
||||
GROUP BY a.create_by, b.xm, b.dwmc) t,
|
||||
(SELECT @rownum:=0) AS r
|
||||
ORDER BY count - 0 desc limit 10
|
||||
</select>
|
||||
|
||||
<select id="getCyList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
select (@rownum:=@rownum + 1) AS rownum,t.* from (
|
||||
select a.create_by,count(*) as count,b.xm as skjs,b.dwmc as kkdw from wjx_wjxx a,xxhbuser b where a.create_by = b.gh and xqxn = #{zyInfoSys.xqxn} and qpublish in (1,2) GROUP BY a.create_by ,b.xm,b.dwmc
|
||||
) t , (SELECT @rownum:=0) AS r ORDER BY count-0 desc
|
||||
select (@rownum:=@rownum + 1) AS rownum, t.*
|
||||
from (select a.create_by, count(*) as count,b.xm as skjs,b.dwmc as kkdw
|
||||
from wjx_wjxx a, xxhbuser b
|
||||
where a.create_by = b.gh and xqxn = #{zyInfoSys.xqxn} and qpublish in (1, 2)
|
||||
GROUP BY a.create_by, b.xm, b.dwmc) t,
|
||||
(SELECT @rownum:=0) AS r
|
||||
ORDER BY count - 0 desc
|
||||
</select>
|
||||
|
||||
<select id="getCyTopList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
select (@rownum:=@rownum + 1) AS rownum,t.* from (
|
||||
select a.create_by,count(*) as count,b.xm as skjs,b.dwmc as kkdw from wjx_wjxx a,xxhbuser b where a.create_by = b.gh and xqxn = #{zyInfoSys.xqxn} and qpublish in (1,2) GROUP BY a.create_by ,b.xm,b.dwmc
|
||||
) t , (SELECT @rownum:=0) AS r ORDER BY count-0 desc limit 10
|
||||
select (@rownum:=@rownum + 1) AS rownum, t.*
|
||||
from (select a.create_by, count(*) as count,b.xm as skjs,b.dwmc as kkdw
|
||||
from wjx_wjxx a, xxhbuser b
|
||||
where a.create_by = b.gh and xqxn = #{zyInfoSys.xqxn} and qpublish in (1, 2)
|
||||
GROUP BY a.create_by, b.xm, b.dwmc) t,
|
||||
(SELECT @rownum:=0) AS r
|
||||
ORDER BY count - 0 desc limit 10
|
||||
</select>
|
||||
|
||||
<select id="getXYCyList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
select (@rownum:=@rownum + 1) AS rownum,t.* from (
|
||||
select count(*) as count,b.dwmc as kkdw from wjx_wjxx a,xxhbuser b where a.create_by = b.gh and xqxn = #{zyInfoSys.xqxn} and qpublish in (1,2) GROUP BY b.dwmc
|
||||
) t , (SELECT @rownum:=0) AS r ORDER BY count-0 desc
|
||||
select (@rownum:=@rownum + 1) AS rownum, t.*
|
||||
from (select count(*) as count,b.dwmc as kkdw
|
||||
from wjx_wjxx a, xxhbuser b
|
||||
where a.create_by = b.gh and xqxn = #{zyInfoSys.xqxn} and qpublish in (1, 2)
|
||||
GROUP BY b.dwmc) t,
|
||||
(SELECT @rownum:=0) AS r
|
||||
ORDER BY count - 0 desc
|
||||
</select>
|
||||
|
||||
<select id="getKcTopList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
SELECT
|
||||
( @rownum := @rownum + 1 ) AS rownum,
|
||||
SELECT (@rownum := @rownum + 1) AS rownum,
|
||||
t.*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
b.kcmc,
|
||||
FROM (SELECT b.kcmc,
|
||||
count(*) AS count,
|
||||
b.kkdw
|
||||
FROM
|
||||
|
@ -305,7 +485,8 @@
|
|||
kc_kechengbiao b
|
||||
WHERE
|
||||
a.rwbh = b.rwbh
|
||||
AND a.xnxq = #{zyInfoSys.xqxn} GROUP BY b.kcmc,b.kkdw
|
||||
AND a.xnxq = #{zyInfoSys.xqxn}
|
||||
GROUP BY b.kcmc, b.kkdw
|
||||
|
||||
union all
|
||||
|
||||
|
@ -318,22 +499,16 @@
|
|||
kc_kechengbiao b
|
||||
WHERE
|
||||
a.rwbh = b.rwbh
|
||||
AND a.xqxn = #{zyInfoSys.xqxn} GROUP BY b.kcmc,b.kkdw
|
||||
) t,
|
||||
AND a.xqxn = #{zyInfoSys.xqxn}
|
||||
GROUP BY b.kcmc, b.kkdw) t,
|
||||
(SELECT @rownum := 0) AS r
|
||||
ORDER BY
|
||||
count - 0 DESC
|
||||
LIMIT 10
|
||||
ORDER BY count - 0 DESC LIMIT 10
|
||||
</select>
|
||||
|
||||
<select id="getXnKcList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
SELECT
|
||||
( @rownum := @rownum + 1 ) AS rownum,
|
||||
SELECT (@rownum := @rownum + 1) AS rownum,
|
||||
t.*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
b.kcmc,
|
||||
FROM (SELECT b.kcmc,
|
||||
count(*) AS count,
|
||||
b.kkdw
|
||||
FROM
|
||||
|
@ -341,7 +516,8 @@
|
|||
kc_kechengbiao b
|
||||
WHERE
|
||||
a.rwbh = b.rwbh
|
||||
AND a.xnxq = #{zyInfoSys.xqxn} GROUP BY b.kcmc,b.kkdw
|
||||
AND a.xnxq = #{zyInfoSys.xqxn}
|
||||
GROUP BY b.kcmc, b.kkdw
|
||||
|
||||
union all
|
||||
|
||||
|
@ -354,21 +530,16 @@
|
|||
kc_kechengbiao b
|
||||
WHERE
|
||||
a.rwbh = b.rwbh
|
||||
AND a.xqxn = #{zyInfoSys.xqxn} GROUP BY b.kcmc,b.kkdw
|
||||
) t,
|
||||
AND a.xqxn = #{zyInfoSys.xqxn}
|
||||
GROUP BY b.kcmc, b.kkdw) t,
|
||||
(SELECT @rownum := 0) AS r
|
||||
ORDER BY
|
||||
count - 0 DESC
|
||||
ORDER BY count - 0 DESC
|
||||
</select>
|
||||
|
||||
<select id="getJsTopList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
SELECT
|
||||
( @rownum := @rownum + 1 ) AS rownum,
|
||||
SELECT (@rownum := @rownum + 1) AS rownum,
|
||||
t.*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
a.create_by,
|
||||
FROM (SELECT a.create_by,
|
||||
count(*) AS count,
|
||||
b.xm AS skjs,
|
||||
b.dwmc AS kkdw
|
||||
|
@ -377,7 +548,10 @@
|
|||
xxhbuser b
|
||||
WHERE
|
||||
a.create_by = b.gh
|
||||
AND xnxq = #{zyInfoSys.xqxn} and zy_status in (1,2) GROUP BY a.create_by ,b.xm,b.dwmc
|
||||
AND xnxq = #{zyInfoSys.xqxn}
|
||||
and zy_status in (1
|
||||
, 2)
|
||||
GROUP BY a.create_by, b.xm, b.dwmc
|
||||
|
||||
union all
|
||||
|
||||
|
@ -391,22 +565,18 @@
|
|||
xxhbuser b
|
||||
WHERE
|
||||
a.create_by = b.gh
|
||||
AND xqxn = #{zyInfoSys.xqxn} and qpublish in (1,2) GROUP BY a.create_by ,b.xm,b.dwmc
|
||||
) t,
|
||||
AND xqxn = #{zyInfoSys.xqxn}
|
||||
and qpublish in (1
|
||||
, 2)
|
||||
GROUP BY a.create_by, b.xm, b.dwmc) t,
|
||||
(SELECT @rownum := 0) AS r
|
||||
ORDER BY
|
||||
count - 0 DESC
|
||||
LIMIT 10
|
||||
ORDER BY count - 0 DESC LIMIT 10
|
||||
</select>
|
||||
|
||||
<select id="getXnJsList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
SELECT
|
||||
( @rownum := @rownum + 1 ) AS rownum,
|
||||
SELECT (@rownum := @rownum + 1) AS rownum,
|
||||
t.*
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
a.create_by,
|
||||
FROM (SELECT a.create_by,
|
||||
count(*) AS count,
|
||||
b.xm AS skjs,
|
||||
b.dwmc AS kkdw
|
||||
|
@ -415,7 +585,10 @@
|
|||
xxhbuser b
|
||||
WHERE
|
||||
a.create_by = b.gh
|
||||
AND xnxq = #{zyInfoSys.xqxn} and zy_status in (1,2) GROUP BY a.create_by ,b.xm,b.dwmc
|
||||
AND xnxq = #{zyInfoSys.xqxn}
|
||||
and zy_status in (1
|
||||
, 2)
|
||||
GROUP BY a.create_by, b.xm, b.dwmc
|
||||
|
||||
union all
|
||||
|
||||
|
@ -429,11 +602,12 @@
|
|||
xxhbuser b
|
||||
WHERE
|
||||
a.create_by = b.gh
|
||||
AND xqxn = #{zyInfoSys.xqxn} and qpublish in (1,2) GROUP BY a.create_by ,b.xm,b.dwmc
|
||||
) t,
|
||||
AND xqxn = #{zyInfoSys.xqxn}
|
||||
and qpublish in (1
|
||||
, 2)
|
||||
GROUP BY a.create_by, b.xm, b.dwmc) t,
|
||||
(SELECT @rownum := 0) AS r
|
||||
ORDER BY
|
||||
count - 0 DESC
|
||||
ORDER BY count - 0 DESC
|
||||
</select>
|
||||
|
||||
<select id="sysStaticZyList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys">
|
||||
|
@ -442,7 +616,8 @@
|
|||
IF( a.zy_status = '0', '未发布', '已发布' ) as sffb,
|
||||
IF( a.xshpkg = '1', '是', '否' ) as sfhp
|
||||
from zy_info a,
|
||||
(select skjs,jgh,kcmc,kcbh,xkrs,kkdw,rwbh,kcxz,zc from kc_kechengbiao where xqxn = #{zyInfoSys.xqxn} and flag = '0' GROUP BY skjs,jgh,kcmc,kcbh,xkrs,kkdw, rwbh,kcxz,zc) b
|
||||
(select skjs,jgh,kcmc,kcbh,xkrs,kkdw,rwbh,kcxz,zc from kc_kechengbiao where xqxn = #{zyInfoSys.xqxn} and flag =
|
||||
'0' GROUP BY skjs,jgh,kcmc,kcbh,xkrs,kkdw, rwbh,kcxz,zc) b
|
||||
where a.rwbh = b.rwbh and a.create_by = b.jgh and a.xnxq = #{zyInfoSys.xqxn} and a.zy_status in (1,2)
|
||||
<if test="zyInfoSys.kcmc != null and zyInfoSys.kcmc != ''">
|
||||
and a.kcmc like concat('%',#{zyInfoSys.kcmc},'%')
|
||||
|
@ -465,7 +640,8 @@
|
|||
IF( a.qpublish = '2', '全部完成', '未全部完成' ) as sfwc,
|
||||
IF( a.qpublish = '0', '未发布', '已发布' ) as sffb
|
||||
from wjx_wjxx a,
|
||||
(select skjs,jgh,kcmc,kcbh,xkrs,kkdw,rwbh,kcxz,zc from kc_kechengbiao where xqxn = #{zyInfoSys.xqxn} and flag = '0' GROUP BY skjs,jgh,kcmc,kcbh,xkrs,kkdw, rwbh,kcxz,zc) b
|
||||
(select skjs,jgh,kcmc,kcbh,xkrs,kkdw,rwbh,kcxz,zc from kc_kechengbiao where xqxn = #{zyInfoSys.xqxn} and flag =
|
||||
'0' GROUP BY skjs,jgh,kcmc,kcbh,xkrs,kkdw, rwbh,kcxz,zc) b
|
||||
where a.rwbh = b.rwbh and a.create_by = b.jgh and a.xqxn = #{zyInfoSys.xqxn} and a.qpublish in (1,2)
|
||||
<if test="zyInfoSys.kcmc != null and zyInfoSys.kcmc != ''">
|
||||
and a.kcmc like concat('%',#{zyInfoSys.kcmc},'%')
|
||||
|
@ -485,7 +661,8 @@
|
|||
IF( a.qpublish = '2', '全部完成', '未全部完成' ) as sfwc,
|
||||
IF( a.qpublish = '0', '未发布', '已发布' ) as sffb
|
||||
from wjx_wjxx a,
|
||||
(select skjs,jgh,kcmc,kcbh,xkrs,kkdw,rwbh,kcxz,zc from kc_kechengbiao where xqxn = #{zyInfoSys.xqxn} and flag = '0' GROUP BY skjs,jgh,kcmc,kcbh,xkrs,kkdw, rwbh,kcxz,zc) b
|
||||
(select skjs,jgh,kcmc,kcbh,xkrs,kkdw,rwbh,kcxz,zc from kc_kechengbiao where xqxn = #{zyInfoSys.xqxn} and flag =
|
||||
'0' GROUP BY skjs,jgh,kcmc,kcbh,xkrs,kkdw, rwbh,kcxz,zc) b
|
||||
where a.rwbh = b.rwbh and a.create_by = b.jgh and a.xqxn = #{zyInfoSys.xqxn} and a.qpublish in (1,2)
|
||||
<if test="zyInfoSys.kcmc != null and zyInfoSys.kcmc != ''">
|
||||
and a.kcmc like concat('%',#{zyInfoSys.kcmc},'%')
|
||||
|
@ -502,11 +679,62 @@
|
|||
</select>
|
||||
|
||||
<select id="listKhcl" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfo">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
zy_info
|
||||
${ew.customSqlSegment}
|
||||
SELECT *
|
||||
FROM zy_info ${ew.customSqlSegment}
|
||||
|
||||
</select>
|
||||
|
||||
<select id="getxzxx" resultMap="ZyXzInfoResultMap">
|
||||
SELECT zxi.id AS zxi_id,
|
||||
zxi.zyinfo_id,
|
||||
zxi.xzmc,
|
||||
zxi.sort,
|
||||
zxi.create_by,
|
||||
zxi.create_time,
|
||||
zxri.id AS ry_id,
|
||||
zxri.zyinfo_id as ryzyinfoid,
|
||||
zxri.xm,
|
||||
zxri.xh,
|
||||
zxri.sfzz
|
||||
FROM zy_xz_info zxi
|
||||
LEFT JOIN
|
||||
zy_xzry_info zxri ON zxi.id = zxri.zyxzinfo_id
|
||||
WHERE zxi.zyinfo_id = #{dto.id}
|
||||
group by zxi.id,
|
||||
zxi.zyinfo_id,
|
||||
zxi.xzmc,
|
||||
zxi.sort,
|
||||
zxi.create_by,
|
||||
zxi.create_time,
|
||||
zxri.id,
|
||||
zxri.zyinfo_id,
|
||||
zxri.xm,
|
||||
zxri.xh,
|
||||
zxri.sfzz
|
||||
order by zxi.sort
|
||||
</select>
|
||||
|
||||
<insert id="insertBatchzyxz" parameterType="java.util.List">
|
||||
INSERT INTO zy_xz_info (id, zyinfo_id, create_by, create_time, xzmc, sort)
|
||||
VALUES
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(#{item.id}, #{item.zyinfoId}, #{item.createBy}, #{item.createTime}, #{item.xzmc}, #{item.sort})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatchzyxzry" parameterType="java.util.List">
|
||||
INSERT INTO zy_xzry_info (id,zyinfo_id, zyxzinfo_id, xm, xh, sfzz)
|
||||
VALUES
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(#{item.id},#{item.zyinfoId}, #{item.zyxzinfoId}, #{item.xm}, #{item.xh}, #{item.sfzz})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteXzxx" >
|
||||
delete from zy_xz_info where zyinfo_id = #{zyinfoId};
|
||||
</delete>
|
||||
|
||||
<delete id="deleteXzryxx" >
|
||||
delete from zy_xzry_info where zyinfo_id = #{zyinfoId};
|
||||
</delete>
|
||||
</mapper>
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.kc.zyInfo.pojo;
|
||||
|
||||
import lombok.Data;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyXzInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class XzReq {
|
||||
|
||||
private String zyinfoId;
|
||||
private Integer rs;
|
||||
private List<ZyXzInfo> list;
|
||||
}
|
|
@ -7,6 +7,7 @@ import org.jeecg.modules.kc.zyInfo.entity.CyInfoSys;
|
|||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfo;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyXzInfo;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -46,4 +47,8 @@ public interface IZyInfoService extends IService<ZyInfo> {
|
|||
List<CyInfoSys> getStaticCyExportUrl(CyInfoSys cyInfoSys);
|
||||
|
||||
IPage<ZyInfo> listKhcl(Page<ZyInfo> page, QueryWrapper<ZyInfo> queryWrapper);
|
||||
|
||||
List<ZyXzInfo> getxzxx(ZyInfo zyInfo);
|
||||
|
||||
int saveData(String zyinfoId, Integer rs, List<ZyXzInfo> list);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package org.jeecg.modules.kc.zyInfo.service.impl;
|
||||
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
|
@ -16,9 +17,7 @@ import org.jeecg.modules.kc.ktgl.entity.KcKechengbiao;
|
|||
import org.jeecg.modules.kc.ktgl.service.IKcKechengbiaoService;
|
||||
import org.jeecg.modules.kc.zyDbtx.entity.ZyDbtx;
|
||||
import org.jeecg.modules.kc.zyDbtx.service.IZyDbtxService;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.CyInfoSys;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfo;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfoSys;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.*;
|
||||
import org.jeecg.modules.kc.zyInfo.mapper.ZyInfoMapper;
|
||||
import org.jeecg.modules.kc.zyInfo.service.IZyInfoService;
|
||||
import org.jeecg.modules.tools.DateUtils;
|
||||
|
@ -27,9 +26,11 @@ import org.springframework.http.ResponseEntity;
|
|||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* @Description: 作业发布
|
||||
|
@ -306,6 +307,48 @@ public class ZyInfoServiceImpl extends ServiceImpl<ZyInfoMapper, ZyInfo> impleme
|
|||
return baseMapper.listKhcl(page, queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ZyXzInfo> getxzxx(ZyInfo zyInfo) {
|
||||
return baseMapper.getxzxx(zyInfo);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public int saveData(String zyinfoId, Integer rs, List<ZyXzInfo> list) {
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
|
||||
//先清除小组信息 然后重新插入
|
||||
baseMapper.deleteXzxx(zyinfoId);
|
||||
baseMapper.deleteXzryxx(zyinfoId);
|
||||
|
||||
if (!list.isEmpty()) {
|
||||
list.stream().forEach(xz -> {
|
||||
xz.setId(IdUtil.simpleUUID());
|
||||
xz.setCreateBy(sysUser.getUsername());
|
||||
xz.setCreateTime(new Date());
|
||||
});
|
||||
this.baseMapper.insertBatchzyxz(list);
|
||||
|
||||
List<ZyXzryInfo> childTableList = list.stream()
|
||||
.flatMap(zyXzInfo -> zyXzInfo.getStudents().stream()
|
||||
.peek(student -> {
|
||||
student.setId(IdUtil.simpleUUID());
|
||||
student.setZyxzinfoId(zyXzInfo.getId());
|
||||
}))
|
||||
.collect(Collectors.toList());
|
||||
|
||||
if (!childTableList.isEmpty()) {
|
||||
baseMapper.insertBatchzyxzry(childTableList);
|
||||
}
|
||||
ZyInfo zyInfo = new ZyInfo().setId(zyinfoId).setSfpzgxzxx("Y").setXzrs(rs);
|
||||
baseMapper.updateById(zyInfo);
|
||||
} else {
|
||||
ZyInfo zyInfo = new ZyInfo().setId(zyinfoId).setSfpzgxzxx("N").setXzrs(rs);
|
||||
baseMapper.updateById(zyInfo);
|
||||
}
|
||||
return list.size();
|
||||
}
|
||||
|
||||
// appId
|
||||
private static final String appId = "wx031697a8ca09a5ce";//东师
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.google.common.collect.Maps;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
@ -28,6 +29,7 @@ import org.jeecg.modules.kc.zyCcjg.service.IZyCcjgService;
|
|||
import org.jeecg.modules.kc.zyDbtx.entity.ZyDbtx;
|
||||
import org.jeecg.modules.kc.zyDbtx.service.IZyDbtxService;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfo;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyXzryInfo;
|
||||
import org.jeecg.modules.kc.zyInfo.service.IZyInfoService;
|
||||
import org.jeecg.modules.kc.zyInfoScjl.entity.ZyInfoScjl;
|
||||
import org.jeecg.modules.kc.zyInfoScjl.service.IZyInfoScjlService;
|
||||
|
@ -57,10 +59,7 @@ import org.springframework.web.servlet.ModelAndView;
|
|||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.File;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* @Description: 学生提交作业
|
||||
|
@ -846,7 +845,7 @@ public class ZyInfoStudentController extends JeecgController<ZyInfoStudent, IZyI
|
|||
@AutoLog(value = "作业驳回")
|
||||
@ApiOperation(value="作业驳回", notes="作业驳回")
|
||||
@RequestMapping(value = "/editBohui", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> editBohui(@RequestBody ZyInfoStudent zyInfoStudent, HttpServletResponse response) {
|
||||
public Result<Map> editBohui(@RequestBody ZyInfoStudent zyInfoStudent, HttpServletResponse response) {
|
||||
UpdateWrapper<ZyInfoStudent> updateWrapper = new UpdateWrapper<>();
|
||||
updateWrapper.set("file_path",null);
|
||||
updateWrapper.set("pdf_path",null);
|
||||
|
@ -886,10 +885,9 @@ public class ZyInfoStudentController extends JeecgController<ZyInfoStudent, IZyI
|
|||
zyDbtxService.save(zyDbtx);
|
||||
|
||||
|
||||
|
||||
//查重前删除原来的查重数据
|
||||
// zyCcjgService.deleteByZystuid(zyInfoStudent.getId(),response);
|
||||
return Result.OK("作业驳回成功!");
|
||||
return Result.OK(new HashMap());
|
||||
}
|
||||
|
||||
@AutoLog(value = "设置作业存档类型")
|
||||
|
@ -1235,4 +1233,21 @@ public class ZyInfoStudentController extends JeecgController<ZyInfoStudent, IZyI
|
|||
return Result.OK(zyInfoStudent);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取同小组人员作业标识
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/getZyStuId")
|
||||
public Result<List<ZyInfoStudent>> getZyStuId(@RequestBody ZyXzryInfo zyXzryInfo) {
|
||||
return Result.OK(zyInfoStudentService.getZyStuId(zyXzryInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取同小组人员作业标识
|
||||
* @return
|
||||
*/
|
||||
@PostMapping(value = "/getZyStuIdById")
|
||||
public Result<List<ZyInfoStudent>> getZyStuIdById(@RequestBody ZyXzryInfo zyXzryInfo) {
|
||||
return Result.OK(zyInfoStudentService.getZyStuIdById(zyXzryInfo));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -226,5 +226,7 @@ public class ZyInfoStudent implements Serializable {
|
|||
private String ywid;//业务id
|
||||
@TableField(exist = false)
|
||||
private String stuId;//学生作业临时id
|
||||
@TableField(exist = false)
|
||||
private String sfzz;//是否是组长
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.core.toolkit.Constants;
|
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfo;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyXzryInfo;
|
||||
import org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudent;
|
||||
import org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudentSys;
|
||||
import org.jeecg.modules.kc.zyInfoStudentPcz.entity.ZyInfoStudentPcz;
|
||||
|
@ -50,4 +51,8 @@ public interface ZyInfoStudentMapper extends BaseMapper<ZyInfoStudent> {
|
|||
List<ZyInfoStudent> cxccByZyId(@Param("zyInfoStudent") ZyInfoStudent zyInfoStudent2);
|
||||
|
||||
List<ZyInfoStudent> cxtjByJccsbz();
|
||||
|
||||
List<ZyInfoStudent> getZyStuId(@Param("dto") ZyXzryInfo zyXzryInfo);
|
||||
|
||||
List<ZyInfoStudent> getZyStuIdById(@Param("dto") ZyXzryInfo zyXzryInfo);
|
||||
}
|
||||
|
|
|
@ -180,4 +180,54 @@
|
|||
select a.* from zy_info_student a ,
|
||||
(select distinct zy_stu_id from zy_ccjg where message = '大学生版,检测次数不足') b where a.id = b.zy_stu_id and a.file_path is not null
|
||||
</select>
|
||||
<select id="getZyStuId" resultType="org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudent">
|
||||
SELECT
|
||||
a.id,b.sfzz
|
||||
FROM
|
||||
zy_info_student a
|
||||
LEFT JOIN zy_xzry_info b ON a.main_id = b.zyinfo_id
|
||||
AND a.create_by = b.xh
|
||||
WHERE
|
||||
main_id = #{dto.zyinfoId}
|
||||
|
||||
AND create_by IN (
|
||||
SELECT
|
||||
xh
|
||||
FROM
|
||||
zy_xzry_info
|
||||
WHERE
|
||||
zyxzinfo_id = (
|
||||
SELECT
|
||||
zyxzinfo_id
|
||||
FROM
|
||||
zy_xzry_info
|
||||
WHERE
|
||||
zyinfo_id = #{dto.zyinfoId} AND xh = (select create_by from zy_info_student where id = #{dto.xh}) ))
|
||||
</select>
|
||||
|
||||
<select id="getZyStuIdById" resultType="org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudent">
|
||||
SELECT
|
||||
a.id,
|
||||
b.sfzz
|
||||
FROM
|
||||
zy_info_student a
|
||||
LEFT JOIN zy_xzry_info b ON a.main_id = b.zyinfo_id
|
||||
AND a.create_by = b.xh
|
||||
WHERE
|
||||
main_id = #{dto.zyinfoId}
|
||||
|
||||
AND create_by IN (
|
||||
SELECT
|
||||
xh
|
||||
FROM
|
||||
zy_xzry_info
|
||||
WHERE
|
||||
zyxzinfo_id = (
|
||||
SELECT
|
||||
zyxzinfo_id
|
||||
FROM
|
||||
zy_xzry_info
|
||||
WHERE
|
||||
zyinfo_id = #{dto.zyinfoId} AND xh = #{dto.xh}))
|
||||
</select>
|
||||
</mapper>
|
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyXzryInfo;
|
||||
import org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudent;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudentSys;
|
||||
|
@ -64,4 +65,8 @@ public interface IZyInfoStudentService extends IService<ZyInfoStudent> {
|
|||
List<JSONObject> getWpSycccs();
|
||||
|
||||
void getWpcccs();
|
||||
|
||||
List<ZyInfoStudent> getZyStuId(ZyXzryInfo zyXzryInfo);
|
||||
|
||||
List<ZyInfoStudent> getZyStuIdById(ZyXzryInfo zyXzryInfo);
|
||||
}
|
||||
|
|
|
@ -22,6 +22,7 @@ import org.jeecg.modules.kc.wjxWjxx.service.IWjxWjxxService;
|
|||
import org.jeecg.modules.kc.zyCcjg.entity.ZyCcjg;
|
||||
import org.jeecg.modules.kc.zyCcjg.mapper.ZyCcjgMapper;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyInfo;
|
||||
import org.jeecg.modules.kc.zyInfo.entity.ZyXzryInfo;
|
||||
import org.jeecg.modules.kc.zyInfo.service.IZyInfoService;
|
||||
import org.jeecg.modules.kc.zyInfoScjl.entity.ZyInfoScjl;
|
||||
import org.jeecg.modules.kc.zyInfoScjl.service.IZyInfoScjlService;
|
||||
|
@ -95,6 +96,7 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl<ZyInfoStudentMapper, Z
|
|||
|
||||
|
||||
private static String weipuKey;
|
||||
|
||||
@Value("${weipu.userKey}")
|
||||
public void setWeipuKey(String weipuKey) {
|
||||
this.weipuKey = weipuKey;
|
||||
|
@ -272,7 +274,6 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl<ZyInfoStudentMapper, Z
|
|||
}
|
||||
|
||||
|
||||
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
|
@ -528,6 +529,16 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl<ZyInfoStudentMapper, Z
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ZyInfoStudent> getZyStuId(ZyXzryInfo zyXzryInfo) {
|
||||
return baseMapper.getZyStuId(zyXzryInfo);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ZyInfoStudent> getZyStuIdById(ZyXzryInfo zyXzryInfo) {
|
||||
return baseMapper.getZyStuIdById(zyXzryInfo);
|
||||
}
|
||||
|
||||
public JSONObject getSycs(String url, String type) {
|
||||
Map<String, String> textMap = new HashMap<String, String>();
|
||||
//可以设置多个input的name,value
|
||||
|
@ -807,6 +818,7 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl<ZyInfoStudentMapper, Z
|
|||
|
||||
/**
|
||||
* 主要用于教师发布评分后,统一发往维普留存比对库
|
||||
*
|
||||
* @param zyInfoStudent
|
||||
* @param type
|
||||
* @param response
|
||||
|
@ -1033,6 +1045,7 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl<ZyInfoStudentMapper, Z
|
|||
}
|
||||
return fileName;
|
||||
}
|
||||
|
||||
private String delWpFile(String url, String paperids, HttpServletResponse response) {
|
||||
// String url = "https://vims.fanyu.com/toole/jianceorgan/paperdel.aspx";
|
||||
Map<String, String> textMap = new HashMap<String, String>();
|
||||
|
@ -1053,6 +1066,7 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl<ZyInfoStudentMapper, Z
|
|||
return "false";
|
||||
}
|
||||
}
|
||||
|
||||
private String delXfwWpFile(String url, String cateid, String paperids, HttpServletResponse response) {
|
||||
// String url = "https://vims.fanyu.com/toole/jianceorgan/paperdel.aspx";
|
||||
Map<String, String> textMap = new HashMap<String, String>();
|
||||
|
@ -1074,8 +1088,10 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl<ZyInfoStudentMapper, Z
|
|||
return "false";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取文件真实路径
|
||||
*
|
||||
* @param path
|
||||
* @return
|
||||
*/
|
||||
|
|
|
@ -129,7 +129,9 @@ public class LoginController {
|
|||
//2. 校验用户名或密码是否正确
|
||||
String userpassword = PasswordUtil.encrypt(username, password, sysUser.getSalt());
|
||||
String syspassword = sysUser.getPassword();
|
||||
if (!syspassword.equals(userpassword)) {
|
||||
//TODO admin账号 忘记密码就把下面的判断条件改为false
|
||||
if (1==2) {
|
||||
// if (!syspassword.equals(userpassword)) {
|
||||
//update-begin-author:taoyan date:2022-11-7 for: issues/4109 平台用户登录失败锁定用户
|
||||
addLoginFailOvertimes(username);
|
||||
//update-end-author:taoyan date:2022-11-7 for: issues/4109 平台用户登录失败锁定用户
|
||||
|
|
|
@ -133,7 +133,8 @@ spring:
|
|||
strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://127.0.0.1:3306/course_information_center_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
# url: jdbc:mysql://127.0.0.1:3306/course_information_center_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
url: jdbc:mysql://127.0.0.1:3306/course_information_center_jeecg_db?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
|
||||
# url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: root
|
||||
|
|
Loading…
Reference in New Issue