修改bug
This commit is contained in:
parent
783cf90c9a
commit
a891f63bb9
|
@ -98,7 +98,7 @@
|
|||
</if>
|
||||
|
||||
</where>
|
||||
GROUP BY kcbh,kcmc,kkdw,kcxz,szkc,xqxn,rwbh,skjs
|
||||
GROUP BY kcbh,kcmc,kkdw,kcxz,szkc,xqxn,rwbh,skjs,skdd,xkrs,jgh
|
||||
|
||||
</select>
|
||||
|
||||
|
@ -120,7 +120,7 @@
|
|||
</if>
|
||||
|
||||
</where>
|
||||
GROUP BY kcbh,kcmc,kkdw,kcxz,szkc,xqxn,rwbh,skjs
|
||||
GROUP BY kcbh,kcmc,kkdw,kcxz,szkc,xqxn,rwbh,skjs,skdd,xkrs,jgh
|
||||
|
||||
</select>
|
||||
|
||||
|
|
|
@ -746,8 +746,8 @@ public class ZyInfoController extends JeecgController<ZyInfo, IZyInfoService> {
|
|||
|
||||
@ApiOperation(value="作业发布-通过id查询", notes="作业发布-通过id查询")
|
||||
@GetMapping(value = "/zyzb")
|
||||
public Result<ZyInfo> zyzb(@RequestParam(name="rwbh") String rwbh,@RequestParam(name="xqxn") String xqxn,@RequestParam(name="teano") String teano,@RequestParam(name="zyLeixing") String zyLeixing) {
|
||||
ZyInfo zyInfo = zyInfoService.zyzb(rwbh,xqxn,teano,zyLeixing);
|
||||
public Result<List<ZyInfo>> zyzb(@RequestParam(name="rwbh") String rwbh,@RequestParam(name="xqxn") String xqxn,@RequestParam(name="teano") String teano,@RequestParam(name="zyLeixing") String zyLeixing) {
|
||||
List<ZyInfo> zyInfo = zyInfoService.zyzb(rwbh,xqxn,teano,zyLeixing);
|
||||
return Result.OK(zyInfo);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,5 +27,5 @@ public interface ZyInfoMapper extends BaseMapper<ZyInfo> {
|
|||
|
||||
ZyInfo getKechengById(@Param("id") String id);
|
||||
|
||||
ZyInfo zyzb(@Param("rwbh")String rwbh, @Param("xqxn")String xqxn, @Param("teano")String teano, @Param("zyLeixing")String zyLeixing);
|
||||
List<ZyInfo> zyzb(@Param("rwbh")String rwbh, @Param("xqxn")String xqxn, @Param("teano")String teano, @Param("zyLeixing")String zyLeixing);
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
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
|
||||
GROUP BY kcbh,kcmc,kkdw,kcxz,szkc,xqxn,rwbh,skjs,skdd,xkrs,jgh
|
||||
|
||||
</select>
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
|||
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
|
||||
GROUP BY kcbh,kcmc,kkdw,kcxz,szkc,xqxn,rwbh,skjs,skdd,xkrs,jgh
|
||||
|
||||
</select>
|
||||
|
||||
|
@ -63,6 +63,29 @@
|
|||
</select>
|
||||
|
||||
<select id="zyzb" resultType="org.jeecg.modules.kc.zyInfo.entity.ZyInfo">
|
||||
select sum(score) as score from zy_info where xnxq = #{xqxn} and rwbh = #{rwbh} and zy_leixing = #{zyLeixing}
|
||||
SELECT
|
||||
sum( ifnull( score, '0' ) ) AS score,
|
||||
zy_leixing
|
||||
FROM
|
||||
zy_info
|
||||
WHERE
|
||||
xnxq = #{xqxn}
|
||||
AND rwbh = #{rwbh}
|
||||
GROUP BY
|
||||
zy_leixing UNION ALL
|
||||
SELECT
|
||||
sum( ifnull( score, '0' ) ) AS score,
|
||||
CASE
|
||||
atype
|
||||
WHEN '1' THEN
|
||||
'2' ELSE '3'
|
||||
END zy_leixing
|
||||
FROM
|
||||
wjx_wjxx
|
||||
WHERE
|
||||
xqxn = #{xqxn}
|
||||
AND rwbh = #{rwbh}
|
||||
GROUP BY
|
||||
atype
|
||||
</select>
|
||||
</mapper>
|
|
@ -25,5 +25,5 @@ public interface IZyInfoService extends IService<ZyInfo> {
|
|||
|
||||
ZyInfo getKechengById(String id);
|
||||
|
||||
ZyInfo zyzb(String rwbh, String xqxn, String teano, String zyLeixing);
|
||||
List<ZyInfo> zyzb(String rwbh, String xqxn, String teano, String zyLeixing);
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public class ZyInfoServiceImpl extends ServiceImpl<ZyInfoMapper, ZyInfo> impleme
|
|||
}
|
||||
|
||||
@Override
|
||||
public ZyInfo zyzb(String rwbh, String xqxn, String teano, String zyLeixing) {
|
||||
public List<ZyInfo> zyzb(String rwbh, String xqxn, String teano, String zyLeixing) {
|
||||
return baseMapper.zyzb(rwbh,xqxn,teano,zyLeixing);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
|
||||
<select id="sysList" resultType="org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudentSys">
|
||||
select distinct a.id,b.xnxq,t.kcmc,t.skjs,b.title,a.create_by as stuNo,c.xm as stuName,if(score is not null,'已评分',if(a.file_path is not null ,'已提交','未提交')) as status ,a.publish_time,a.score,
|
||||
select distinct a.id,b.xnxq,t.kcmc,t.skjs,b.title,a.create_by as stuNo,c.xm as stuName,if(a.score is not null,'已评分',if(a.file_path is not null ,'已提交','未提交')) as status ,a.publish_time,a.score,
|
||||
wwxsl,nwxsl,aigcxsl,wwsftg,nwsftg,aigcsftg,xnxsl,xnsftg,a.file_path,a.pdf_path,b.wwcc,b.nwcc,b.aigccc,b.xncc
|
||||
from zy_info_student a
|
||||
inner join zy_info b on a.main_id = b.id
|
||||
|
@ -79,7 +79,7 @@
|
|||
</select>
|
||||
|
||||
<select id="exportSysXls" resultType="org.jeecg.modules.kc.zyInfoStudent.entity.ZyInfoStudentSys">
|
||||
select distinct a.id,b.xnxq,t.kcmc,t.skjs,b.title,a.create_by as stuNo,c.xm as stuName,if(score is not null,'已评分',if(a.file_path is not null ,'已提交','未提交')) as status,a.publish_time,a.score,
|
||||
select distinct a.id,b.xnxq,t.kcmc,t.skjs,b.title,a.create_by as stuNo,c.xm as stuName,if(a.score is not null,'已评分',if(a.file_path is not null ,'已提交','未提交')) as status,a.publish_time,a.score,
|
||||
wwxsl,nwxsl,aigcxsl,wwsftg,nwsftg,aigcsftg,xnxsl,xnsftg,b.wwcc,b.nwcc,b.aigccc,b.xncc
|
||||
from zy_info_student a
|
||||
inner join zy_info b on a.main_id = b.id
|
||||
|
|
Loading…
Reference in New Issue