Compare commits
2 Commits
c70d0e017e
...
32239a8523
Author | SHA1 | Date |
---|---|---|
|
32239a8523 | |
|
7b9a22fc7d |
|
@ -160,7 +160,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findDjjgsPage" parameterType="org.jeecg.modules.kc.wjxDjxx.entity.WjxDjxx" resultType="org.jeecg.modules.kc.wjxDjxx.entity.WjxDjxx">
|
<select id="findDjjgsPage" parameterType="org.jeecg.modules.kc.wjxDjxx.entity.WjxDjxx" resultType="org.jeecg.modules.kc.wjxDjxx.entity.WjxDjxx">
|
||||||
select a.atype,b.id,a.xqxn,a.kcmc,a.start_time,a.end_time,a.title,a.content,b.vid,b.jid,b.user_id,b.user_name,b.open_time,b.commit_time,b.score,b.total_score,b.answer_seconds,a.title
|
select a.atype,b.id,a.xqxn,a.kcmc,a.start_time,a.end_time,a.title,a.content,b.vid,b.jid,b.user_id,b.user_name,b.open_time,b.commit_time,b.score,b.total_score,b.answer_seconds,a.title,b.zbcs
|
||||||
from wjx_wjxx a
|
from wjx_wjxx a
|
||||||
inner join wjx_djxx b on a.vid = b.vid
|
inner join wjx_djxx b on a.vid = b.vid
|
||||||
where a.id = #{params.id}
|
where a.id = #{params.id}
|
||||||
|
@ -196,7 +196,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="findAllDjjgsPage" parameterType="org.jeecg.modules.kc.wjxDjxx.entity.WjxDjxx" resultType="org.jeecg.modules.kc.wjxDjxx.entity.WjxDjxx">
|
<select id="findAllDjjgsPage" parameterType="org.jeecg.modules.kc.wjxDjxx.entity.WjxDjxx" resultType="org.jeecg.modules.kc.wjxDjxx.entity.WjxDjxx">
|
||||||
select a.atype,b.id,a.xqxn,a.kcmc,a.start_time,a.end_time,a.title,a.content,b.vid,b.jid,y.xh as user_id,y.xm as user_name,b.open_time,b.commit_time,b.score,b.total_score,ifnull(b.answer_seconds,-1) as answer_seconds,a.title,b.sfxysdpy
|
select a.atype,b.id,a.xqxn,a.kcmc,a.start_time,a.end_time,a.title,a.content,b.vid,b.jid,y.xh as user_id,y.xm as user_name,b.open_time,b.commit_time,b.score,b.total_score,ifnull(b.answer_seconds,-1) as answer_seconds,a.title,b.sfxysdpy,b.zbcs
|
||||||
from wjx_wjxx a
|
from wjx_wjxx a
|
||||||
inner join (
|
inner join (
|
||||||
select a.xh,a.xm,b.KCAPZBBH
|
select a.xh,a.xm,b.KCAPZBBH
|
||||||
|
|
|
@ -53,6 +53,7 @@ public class WjxDjxxFzbtjController extends JeecgController<WjxDjxxFzbtj, IWjxDj
|
||||||
HttpServletRequest req) {
|
HttpServletRequest req) {
|
||||||
QueryWrapper<WjxDjxxFzbtj> queryWrapper = QueryGenerator.initQueryWrapper(wjxDjxxFzbtj, req.getParameterMap());
|
QueryWrapper<WjxDjxxFzbtj> queryWrapper = QueryGenerator.initQueryWrapper(wjxDjxxFzbtj, req.getParameterMap());
|
||||||
Page<WjxDjxxFzbtj> page = new Page<WjxDjxxFzbtj>(pageNo, pageSize);
|
Page<WjxDjxxFzbtj> page = new Page<WjxDjxxFzbtj>(pageNo, pageSize);
|
||||||
|
queryWrapper.orderByAsc("create_time");
|
||||||
IPage<WjxDjxxFzbtj> pageList = wjxDjxxFzbtjService.page(page, queryWrapper);
|
IPage<WjxDjxxFzbtj> pageList = wjxDjxxFzbtjService.page(page, queryWrapper);
|
||||||
return Result.OK(pageList);
|
return Result.OK(pageList);
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ public class WjxDjxxFzbtj implements Serializable {
|
||||||
*/
|
*/
|
||||||
@Excel(name = "作弊类型1、退出全屏2、切屏3、考试超时4、开始答题", width = 15)
|
@Excel(name = "作弊类型1、退出全屏2、切屏3、考试超时4、开始答题", width = 15)
|
||||||
@ApiModelProperty(value = "作弊类型1、退出全屏2、切屏3、考试超时4、开始答题")
|
@ApiModelProperty(value = "作弊类型1、退出全屏2、切屏3、考试超时4、开始答题")
|
||||||
private int type;
|
private Integer type;
|
||||||
/**
|
/**
|
||||||
* 作弊内容:XX时间,XX操作;
|
* 作弊内容:XX时间,XX操作;
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -287,8 +287,8 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
|
||||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||||
public Result<String> edit(@RequestBody ZyInfo zyInfo) {
|
public Result<String> edit(@RequestBody ZyInfo zyInfo) {
|
||||||
zyInfoService.updateById(zyInfo);
|
zyInfoService.updateById(zyInfo);
|
||||||
|
if("0".equals(zyInfo.getXshpkg()))zyInfoService.removeHPData(zyInfo.getId());
|
||||||
|
if("0".equals(zyInfo.getSfcc()))zyInfoService.removeCCData(zyInfo.getId());
|
||||||
ZyInfo zyInfo2 = zyInfoService.getById(zyInfo.getId());
|
ZyInfo zyInfo2 = zyInfoService.getById(zyInfo.getId());
|
||||||
if (StringUtils.equals(zyInfo2.getZyStatus(), "1")) {
|
if (StringUtils.equals(zyInfo2.getZyStatus(), "1")) {
|
||||||
QueryWrapper<KcKechengbiao> kcKechengbiaoQueryWrapper = new QueryWrapper<>();
|
QueryWrapper<KcKechengbiao> kcKechengbiaoQueryWrapper = new QueryWrapper<>();
|
||||||
|
|
|
@ -92,6 +92,7 @@ public class ZyInfo implements Serializable {
|
||||||
/**外网通过率*/
|
/**外网通过率*/
|
||||||
@Excel(name = "外网通过率", width = 15)
|
@Excel(name = "外网通过率", width = 15)
|
||||||
@ApiModelProperty(value = "外网通过率")
|
@ApiModelProperty(value = "外网通过率")
|
||||||
|
@TableField(updateStrategy = FieldStrategy.DEFAULT)
|
||||||
private java.lang.Double wwtgl;
|
private java.lang.Double wwtgl;
|
||||||
/**内网查重*/
|
/**内网查重*/
|
||||||
@Excel(name = "内网查重", width = 15, dicCode = "yn")
|
@Excel(name = "内网查重", width = 15, dicCode = "yn")
|
||||||
|
|
|
@ -71,4 +71,8 @@ public interface ZyInfoMapper extends BaseMapper<ZyInfo> {
|
||||||
int deleteXzxx(@Param("zyinfoId") String zyinfoId);
|
int deleteXzxx(@Param("zyinfoId") String zyinfoId);
|
||||||
|
|
||||||
int deleteXzryxx(@Param("zyinfoId") String zyinfoId);
|
int deleteXzryxx(@Param("zyinfoId") String zyinfoId);
|
||||||
|
|
||||||
|
int removeHPData(@Param("id") String id);
|
||||||
|
|
||||||
|
int removeCCData(@Param("id") String id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,14 @@
|
||||||
</collection>
|
</collection>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
<update id="removeHPData">
|
||||||
|
update zy_info set sfzzcj = null,xssfck = null,xshpjssj = null where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<update id="removeCCData">
|
||||||
|
update zy_info set wwtgl = null,wwcc = null,xncc = null,nwcc = null,aigccc = null where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
<select id="stuList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfo">
|
<select id="stuList" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfo">
|
||||||
select distinct a.*,
|
select distinct a.*,
|
||||||
b.id as stuId,
|
b.id as stuId,
|
||||||
|
|
|
@ -51,4 +51,8 @@ public interface IZyInfoService extends IService<ZyInfo> {
|
||||||
List<ZyXzInfo> getxzxx(ZyInfo zyInfo);
|
List<ZyXzInfo> getxzxx(ZyInfo zyInfo);
|
||||||
|
|
||||||
int saveData(String zyinfoId, Integer rs, List<ZyXzInfo> list);
|
int saveData(String zyinfoId, Integer rs, List<ZyXzInfo> list);
|
||||||
|
|
||||||
|
int removeHPData(String id);
|
||||||
|
|
||||||
|
int removeCCData(String id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -349,6 +349,16 @@ public class ZyInfoServiceImpl extends ServiceImpl<ZyInfoMapper, ZyInfo> impleme
|
||||||
return list.size();
|
return list.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int removeHPData(String id) {
|
||||||
|
return baseMapper.removeHPData(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int removeCCData(String id) {
|
||||||
|
return baseMapper.removeCCData(id);
|
||||||
|
}
|
||||||
|
|
||||||
// appId
|
// appId
|
||||||
private static final String appId = "wx031697a8ca09a5ce";//东师
|
private static final String appId = "wx031697a8ca09a5ce";//东师
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue