修改bug
This commit is contained in:
parent
7559f48c91
commit
aa5b798824
|
@ -52,9 +52,9 @@ public class SyncKcKechengbiao extends BaseSync {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
//更新历史数据
|
//更新历史数据
|
||||||
KcKechengbiao KcKechengbiaohis = new KcKechengbiao();
|
// KcKechengbiao KcKechengbiaohis = new KcKechengbiao();
|
||||||
KcKechengbiaohis.setTs(DateUtils.formatDate(new Date(),"yyyyMMddHHmmss"));
|
// KcKechengbiaohis.setTs(DateUtils.formatDate(new Date(),"yyyyMMddHHmmss"));
|
||||||
kcKechengbiaoService.saveHis(KcKechengbiaohis);
|
// kcKechengbiaoService.saveHis(KcKechengbiaohis);
|
||||||
|
|
||||||
//保留历史数据但是删除当前学期的数据
|
//保留历史数据但是删除当前学期的数据
|
||||||
// KcSysConfig kcSysConfig = kcSysConfigService.getById("1");
|
// KcSysConfig kcSysConfig = kcSysConfigService.getById("1");
|
||||||
|
|
|
@ -48,9 +48,9 @@ public class SyncKcKetangbiao extends BaseSync {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
//更新历史数据
|
//更新历史数据
|
||||||
KcKetangbiao kcKetangbiaohis = new KcKetangbiao();
|
// KcKetangbiao kcKetangbiaohis = new KcKetangbiao();
|
||||||
kcKetangbiaohis.setTs(DateUtils.formatDate(new Date(),"yyyyMMddHHmmss"));
|
// kcKetangbiaohis.setTs(DateUtils.formatDate(new Date(),"yyyyMMddHHmmss"));
|
||||||
kcKetangbiaoService.saveHis(kcKetangbiaohis);
|
// kcKetangbiaoService.saveHis(kcKetangbiaohis);
|
||||||
|
|
||||||
KcSysConfig kcSysConfig = kcSysConfigService.getById("1");
|
KcSysConfig kcSysConfig = kcSysConfigService.getById("1");
|
||||||
String bxqkssj = kcSysConfig.getBxqkssj();
|
String bxqkssj = kcSysConfig.getBxqkssj();
|
||||||
|
|
|
@ -78,7 +78,7 @@ public class KcKechengbiaoController extends JeecgController<KcKechengbiao, IKcK
|
||||||
queryWrapper.apply("(kcmc like CONCAT('%','"+kcKechengbiao.getSearchInput()+"','%') or skjs like CONCAT('%','"+kcKechengbiao.getSearchInput()+"','%'))");
|
queryWrapper.apply("(kcmc like CONCAT('%','"+kcKechengbiao.getSearchInput()+"','%') or skjs like CONCAT('%','"+kcKechengbiao.getSearchInput()+"','%'))");
|
||||||
}
|
}
|
||||||
queryWrapper.apply(StringUtils.isNotBlank(kcKechengbiao.getYwcol())," length(kcbh)<25");
|
queryWrapper.apply(StringUtils.isNotBlank(kcKechengbiao.getYwcol())," length(kcbh)<25");
|
||||||
queryWrapper.apply("kcmc not like '%实习%' and kcmc not like '%实训%' and kcmc not like '%实践%' and kcmc not like '%实验%' and kcmc not like '%美术%'");
|
// queryWrapper.apply("kcmc not like '%实习%' and kcmc not like '%实训%' and kcmc not like '%实践%' and kcmc not like '%实验%' and kcmc not like '%美术%'");
|
||||||
Page<KcKechengbiao> page = new Page<KcKechengbiao>(pageNo, pageSize);
|
Page<KcKechengbiao> page = new Page<KcKechengbiao>(pageNo, pageSize);
|
||||||
IPage<KcKechengbiao> pageList = kcKechengbiaoService.page(page, queryWrapper);
|
IPage<KcKechengbiao> pageList = kcKechengbiaoService.page(page, queryWrapper);
|
||||||
return Result.OK(pageList);
|
return Result.OK(pageList);
|
||||||
|
|
|
@ -754,7 +754,9 @@
|
||||||
FROM kc_ketangbiao k, kc_tingke t, kc_casusers c
|
FROM kc_ketangbiao k, kc_tingke t, kc_casusers c
|
||||||
WHERE k.id = t.kechengbiaoid AND t.userid = c.USER
|
WHERE k.id = t.kechengbiaoid AND t.userid = c.USER
|
||||||
) tk
|
) tk
|
||||||
LEFT JOIN kc_assessuser sf ON tk.USER = sf.usercode
|
LEFT JOIN (SELECT usercode,username, GROUP_CONCAT(assess1) assess1
|
||||||
|
FROM kc_assessuser
|
||||||
|
GROUP BY usercode) sf ON tk.USER = sf.usercode
|
||||||
<where>
|
<where>
|
||||||
<if test="tksf !=null and tksf != ''">
|
<if test="tksf !=null and tksf != ''">
|
||||||
and sf.assesscode = #{tksf}
|
and sf.assesscode = #{tksf}
|
||||||
|
|
Loading…
Reference in New Issue