取消远程链表,改为数据库直连
parent
0ff113c1f3
commit
12d438230a
|
@ -522,7 +522,7 @@ public class IdeRepositoryController extends BaseController {
|
|||
*/
|
||||
@RequestMapping(value="/excelModel")
|
||||
public void exportExcelModel(HttpServletResponse response) throws Exception{
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATHFILE + "ideRepositoryExcelTemplate.xls", "风险辨识资源库模板.xls");
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATH_LOCAL + "ideRepositoryExcelTemplate.xls", "风险辨识资源库模板.xls");
|
||||
}
|
||||
/**导出到excel
|
||||
* @param
|
||||
|
|
|
@ -282,7 +282,7 @@ public class PaperQuestionController extends BaseController {
|
|||
*/
|
||||
@RequestMapping(value="/downExcel")
|
||||
public void downExcel(HttpServletResponse response)throws Exception{
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATHFILE + "paperQuestionExcelTemplate.xls", "习题导入模板.xls");
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATH_LOCAL + "paperQuestionExcelTemplate.xls", "习题导入模板.xls");
|
||||
}
|
||||
|
||||
/**列表(根据阶段考试所选课件范围获取习题数据)
|
||||
|
|
|
@ -321,7 +321,7 @@ public class QuestionController extends BaseController {
|
|||
*/
|
||||
@RequestMapping(value = "/downExcel")
|
||||
public void downExcel(HttpServletResponse response) throws Exception {
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATHFILE + "questionExcelTemplate.xls", "习题导入模板.xls");
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATH_LOCAL + "questionExcelTemplate.xls", "习题导入模板.xls");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -346,7 +346,7 @@ public class ClassController extends BaseController {
|
|||
WordToPdfUtil.docToPdf(PathUtil.getProjectpath() + Const.FILEPATHFILE + "安全生产教育培训动态评估报告-" + now + ".docx",
|
||||
PathUtil.getProjectpath() + Const.FILEPATHFILE + "安全生产教育培训动态评估报告-" + now + ".pdf");
|
||||
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATHFILE +
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATH_LOCAL +
|
||||
"安全生产教育培训动态评估报告-" + now + ".pdf", "安全生产教育培训动态评估报告.pdf");
|
||||
//删除本地word pdf
|
||||
File word = new File(PathUtil.getProjectpath() + Const.FILEPATHFILE + "安全生产教育培训动态评估报告-" + now + ".docx");
|
||||
|
|
|
@ -192,7 +192,7 @@ public class CommonController extends BaseController {
|
|||
*/
|
||||
@RequestMapping(value="/excelModel")
|
||||
public void exportExcelModel(HttpServletResponse response) throws Exception{
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATHFILE + "hiddenDangerCheckStandardTemplate.xls", "隐患排查标准模板.xls");
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATH_LOCAL + "hiddenDangerCheckStandardTemplate.xls", "隐患排查标准模板.xls");
|
||||
}
|
||||
|
||||
@RequestMapping("importExcel")
|
||||
|
|
|
@ -626,7 +626,7 @@ public class UsersController extends BaseController {
|
|||
*/
|
||||
@RequestMapping(value="/downExcel")
|
||||
public void downExcel(HttpServletResponse response)throws Exception{
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATHFILE + "Users.xls", "Users.xls");
|
||||
FileDownload.fileDownload(response, PathUtil.getProjectpath() + Const.FILEPATH_LOCAL + "Users.xls", "Users.xls");
|
||||
}
|
||||
|
||||
/**从EXCEL导入到数据库
|
||||
|
|
|
@ -27,6 +27,7 @@ public class Const {
|
|||
public static final String SYSSET = "config/sysSet.ini"; //系统设置配置文件路径
|
||||
public static final String SYSNAME = "sysName"; //系统名称
|
||||
public static final String SHOWCOUNT = "showCount"; //每页条数
|
||||
public static final String FILEPATH_LOCAL = "/uploadFiles/file/"; //本地文件模板
|
||||
|
||||
public static final String FILEPATHFILE = "/TrafficFile/uploadFiles/file/"; //文件上传路径
|
||||
public static final String BIFILEPATHFILE = "/TrafficFile/uploadFiles/Bfile/"; //文件上传路径
|
||||
|
|
|
@ -162,6 +162,7 @@ public class HttpRequestUtil {
|
|||
// connection.setRequestProperty("connection", "Keep-Alive");
|
||||
// connection.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)");
|
||||
connection.setRequestProperty("Content-Type", "application/json;charset=utf-8");
|
||||
System.out.println(httpUrl);
|
||||
System.out.println(param);
|
||||
//拼装参数
|
||||
if (null != param && !param.equals("")) {
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
|
||||
#\u6570\u636E\u6E901
|
||||
datasource.no1.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
datasource.no1.url=jdbc:mysql://192.168.0.69:3306/qa-traffic-prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no1.url=jdbc:mysql://192.168.0.103:33071/qa-traffic-prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no1.username=root
|
||||
datasource.no1.password=root
|
||||
datasource.no1.password=Mysql@zcloud33071
|
||||
#\u6570\u636E\u6E902(\u9ED8\u8BA4\u6CA1\u7528\uFF0C\u4FE9\u5730\u5740\u5199\u4E00\u6837\u5373\u53EF)
|
||||
datasource.no2.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
datasource.no2.url=jdbc:mysql://192.168.0.69:3306/qa-traffic-prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no2.url=jdbc:mysql://192.168.0.103:33071/qa-traffic-prevention?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no2.username=root
|
||||
datasource.no2.password=root
|
||||
datasource.no2.password=Mysql@zcloud33071
|
||||
#\u6570\u636E\u6E903
|
||||
datasource.no3.driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
datasource.no3.url=jdbc:mysql://192.168.0.69:3306/qa-traffic-education-org?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no3.url=jdbc:mysql://192.168.0.103:33071/qa-traffic-education-org?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=utf-8
|
||||
datasource.no3.username=root
|
||||
datasource.no3.password=root
|
||||
datasource.no3.password=Mysql@zcloud33071
|
||||
|
||||
#druid\u8FDE\u63A5\u6C60
|
||||
spring.datasource.type: com.alibaba.druid.pool.DruidDataSource
|
||||
|
@ -62,19 +62,6 @@ spring.main.banner-mode=off
|
|||
#web.front-path=h:/
|
||||
#spring.resources.static-locations=file:${web.upload-path},file:${web.front-path}
|
||||
|
||||
#\u6B63\u5F0F
|
||||
#customer.id=LAZ-20221129-3
|
||||
#customer.SECRET_KEY=a256e8575c3f4240b08f6350f13ce8e2
|
||||
customer.url=https://api.qhdsafety.com/sync/
|
||||
#customer.domain=yth.qhdsafety.com
|
||||
|
||||
|
||||
#\u5F00\u53D1
|
||||
customer.id=LAZ-20221124-2
|
||||
customer.SECRET_KEY=2f703da369e342db9fe2fc9114c4967f
|
||||
#customer.url=http://192.168.0.18:8997/sync/
|
||||
customer.domain=test.qhdsafety.com
|
||||
|
||||
|
||||
# RocketMQ NameServer
|
||||
|
||||
|
|
|
@ -3,7 +3,13 @@ server.port=7080
|
|||
|
||||
#\u5F00\u53D1
|
||||
spring.profiles.active=dev
|
||||
#\u6D4B\u8BD5
|
||||
##\u6D4B\u8BD5
|
||||
#spring.profiles.active=debug
|
||||
##\u6B63\u5F0F
|
||||
#spring.profiles.active=master
|
||||
|
||||
#\u6B63\u5F0F \u4EA4\u901A
|
||||
customer.id=LAZ-20240614-31
|
||||
customer.SECRET_KEY=8847ac2c63d8499f98e3a7494ddff09a
|
||||
customer.url=https://api.qhdsafety.com/sync/
|
||||
customer.domain=tszs.qhdsafety.com
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -81,7 +81,7 @@
|
|||
SELECT c.CLASS_ID,pt.POSTTYPE_ID,it.`NAME` INDUSTRYNAME,pt.`NAME` POSTTYPENAME,c.TRAINLEVEL,it.INDUSTRYTYPE_ID FROM
|
||||
bus_class c
|
||||
LEFT JOIN bus_post_type pt ON pt.POSTTYPE_ID = c.POSTTYPE AND pt.ISDELETE = '0'
|
||||
LEFT JOIN bus_industry_type it ON it.INDUSTRYTYPE_ID = SUBSTRING_INDEX(c.INDUSTRY_ALL_TYPE,',',1) AND
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE it ON it.INDUSTRYTYPE_ID = SUBSTRING_INDEX(c.INDUSTRY_ALL_TYPE,',',1) AND
|
||||
it.ISDELETE = '0'
|
||||
WHERE CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
AND c.ISDELETE ='0'
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -125,7 +125,7 @@
|
|||
,p.QUESTIONNUM
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN sys_user u ON u.USER_ID = f.USER_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_USER u ON u.USER_ID = f.USER_ID
|
||||
LEFT JOIN BUS_COURSEPAPERS p ON p.COURSEPAPERS_ID = f.COURSEPAPERS_ID
|
||||
where
|
||||
f.COURSEEXAM_ID = #{COURSEEXAM_ID}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -137,7 +137,7 @@
|
|||
WHERE c.CURRICULUM_ID = #{pd.CURRICULUM_ID} AND c.USER_ID = f.USER_ID AND c.ISDELETE='0' ORDER BY c.EXAMTIME DESC LIMIT 1) COURSEEXAM_ID
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN sys_user u ON u.USER_ID = f.USER_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_USER u ON u.USER_ID = f.USER_ID
|
||||
where f.ISDELETE = '0' and f.CURRICULUM_ID = #{pd.CURRICULUM_ID} and f.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
||||
and
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -181,7 +181,7 @@
|
|||
LEFT JOIN BUS_POST_TYPE p on p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE t on t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_TRAIN_LEVEL_TYPE tlt on tlt.TRAINLEVEL_ID = f.TRAINLEVEL
|
||||
LEFT JOIN bus_industry_type lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
where
|
||||
f.CURRICULUM_ID = #{CURRICULUM_ID}
|
||||
</select>
|
||||
|
@ -220,7 +220,7 @@
|
|||
LEFT JOIN BUS_POST_TYPE p on p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE t on t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_TRAIN_LEVEL_TYPE tlt on tlt.TRAINLEVEL_ID = f.TRAINLEVEL
|
||||
LEFT JOIN bus_industry_type lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
where f.ISDELETE = '0'
|
||||
and ( f.VALID_DATE IS NULL or f.VALID_DATE = ''
|
||||
or f.VALID_DATE >= DATE_FORMAT(NOW(),'%Y-%m-%d') )
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -132,8 +132,8 @@
|
|||
,dic2.name as train_type_name
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN sys_dictionaries dic1 on dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN sys_dictionaries dic2 on dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic1 on dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic2 on dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
where
|
||||
f.DATACOURSEWARE_ID = #{DATACOURSEWARE_ID}
|
||||
</select>
|
||||
|
@ -150,8 +150,8 @@
|
|||
<include refid="tableName"></include> f
|
||||
LEFT JOIN BUS_KCMIDDLEKJ g on g.CURRICULUMID = f.DATACOURSEWARE_ID AND g.COURSEWARETYPE = '2' AND g.ISDELETE = '0'
|
||||
LEFT JOIN BUS_STAGEEXAMPAPERCOURSEWARE h on h.COURSEWARE_ID = f.DATACOURSEWARE_ID AND h.COURSEWARETYPE = '2' AND h.ISDELETE = '0'
|
||||
LEFT JOIN sys_dictionaries dic1 on dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN sys_dictionaries dic2 on dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic1 on dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic2 on dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_TEACHER ts on f.SPEAKER = ts.TEACHER_ID
|
||||
where f.ISDELETE = '0'
|
||||
<if test="pd.CORPINFO_ID != null and pd.CORPINFO_ID != ''">
|
||||
|
@ -277,8 +277,8 @@
|
|||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN BUS_KCMIDDLEKJ k ON k.COURSEWAREID = f.DATACOURSEWARE_ID
|
||||
LEFT JOIN sys_dictionaries dic1 on dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN sys_dictionaries dic2 on dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic1 on dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic2 on dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_TEACHER ts on f.SPEAKER = ts.TEACHER_ID
|
||||
where f.ISDELETE = '0'
|
||||
and k.CURRICULUMID = #{CURRICULUMID}
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
<!--表名 -->
|
||||
<sql id="tableName">
|
||||
BUS_INDUSTRY_TYPE
|
||||
`qa-traffic-prevention`.BUS_INDUSTRY_TYPE
|
||||
</sql>
|
||||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -198,7 +198,7 @@
|
|||
<include refid="tableName"></include>
|
||||
f
|
||||
left join BUS_VIDEOCOURSEWARE v on f.COURSEWAREID = v.VIDEOCOURSEWARE_ID and v.ISDELETE = '0'
|
||||
left join sys_dictionaries lt on lt.DICTIONARIES_ID = f.LABEL_TYPE
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES lt on lt.DICTIONARIES_ID = f.LABEL_TYPE
|
||||
<!-- LEFT JOIN BUS_COURSESTUDYRECORD g on g.QUESTION_ID = f.QUESTION_ID AND g.ISDELETE = '0'
|
||||
LEFT JOIN BUS_COURSEEXAMRECORD h on h.QUESTION_ID = f.QUESTION_ID AND h.ISDELETE = '0'
|
||||
LEFT JOIN BUS_STAGEEXAMRECORD i on i.QUESTION_ID = f.QUESTION_ID AND i.ISDELETE = '0'
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -132,7 +132,7 @@
|
|||
,p.QUESTIONNUM
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN sys_user u ON u.USER_ID = f.USER_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_USER u ON u.USER_ID = f.USER_ID
|
||||
LEFT JOIN BUS_STAGEEXAMPAPER p ON p.STAGEEXAMPAPER_ID = f.STAGEEXAMPAPER_ID
|
||||
where
|
||||
f.STAGEEXAM_ID = #{STAGEEXAM_ID}
|
||||
|
@ -208,7 +208,7 @@
|
|||
,p.QUESTIONNUM
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN sys_user u ON u.USER_ID = f.USER_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_USER u ON u.USER_ID = f.USER_ID
|
||||
LEFT JOIN BUS_STAGEEXAMPAPER p ON p.STAGEEXAMPAPER_ID = f.STAGEEXAMPAPER_ID
|
||||
where
|
||||
f.STUDYTASK_ID = #{STUDYTASK_ID} AND f.STAGEEXAMPAPER_ID = #{STAGEEXAMPAPER_ID} AND f.USER_ID = #{USER_ID}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -121,7 +121,7 @@
|
|||
<include refid="Field"></include>
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN SYS_USER u on f.USER_ID = u.USER_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_USER u on f.USER_ID = u.USER_ID
|
||||
LEFT JOIN <include refid="dicTableName"></include> d on d.DICTIONARIES_ID = u.LEARNERCATEGORY AND d.parent_id = '532282f9c48346b8b646531909c739df'
|
||||
where f.ISDELETE = '0' and f.STAGEEXAMPAPER_ID = #{pd.STAGEEXAMPAPER_ID}
|
||||
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
||||
|
@ -145,11 +145,11 @@
|
|||
,stu.SUM_CLASSHOUR as SUM_CLASSHOUR
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
left join SYS_USER u on u.USER_ID = f.USER_ID
|
||||
left join OA_DEPARTMENT d on d.DEPARTMENT_ID=u.DEPARTMENT_ID
|
||||
left join SYS_USERINFO i on i.USER_ID = f.USER_ID
|
||||
left join sys_dictionaries x on x.DICTIONARIES_ID = i.SEX
|
||||
left join sys_post p on p.POST_ID = u.POST_ID and p.ISDELETE = '0' and p.STATUS = '0'
|
||||
left join `qa-traffic-prevention`.SYS_USER u on u.USER_ID = f.USER_ID
|
||||
left join `qa-traffic-prevention`.OA_DEPARTMENT d on d.DEPARTMENT_ID=u.DEPARTMENT_ID
|
||||
left join `qa-traffic-prevention`.SYS_USERINFO i on i.USER_ID = f.USER_ID
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES x on x.DICTIONARIES_ID = i.SEX
|
||||
left join `qa-traffic-prevention`.SYS_POST p on p.POST_ID = u.POST_ID and p.ISDELETE = '0' and p.STATUS = '0'
|
||||
left join bus_studytask stu on stu.STUDYTASK_ID = f.STUDYTASK_ID
|
||||
where f.ISDELETE = '0' and f.CORPINFO_ID = #{CORPINFO_ID}
|
||||
<if test="STUDYTASK_ID!= null and STUDYTASK_ID != ''"><!-- 关键词检索 -->
|
||||
|
@ -343,8 +343,8 @@
|
|||
<include refid="tableName"></include> f
|
||||
INNER JOIN BUS_STUDYTASK t ON t.STUDYTASK_ID = f.STUDYTASK_ID AND t.ISDELETE = '0'
|
||||
LEFT JOIN BUS_STAGEEXAMPAPER p ON p.STAGEEXAMPAPER_ID = f.STAGEEXAMPAPER_ID AND p.ISDELETE = '0'
|
||||
LEFT JOIN sys_dictionaries dic1 ON dic1.DICTIONARIES_ID = t.POSTTYPE
|
||||
LEFT JOIN sys_dictionaries dic2 ON dic2.DICTIONARIES_ID = t.TRAINTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic1 ON dic1.DICTIONARIES_ID = t.POSTTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic2 ON dic2.DICTIONARIES_ID = t.TRAINTYPE
|
||||
where f.ISDELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
AND f.USER_ID = #{pd.USER_ID}
|
||||
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -226,9 +226,9 @@
|
|||
f
|
||||
LEFT JOIN BUS_POST_TYPE p on p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE t on t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_INDUSTRY_TYPE i1 on i1.INDUSTRYTYPE_ID = f.INDUSTRY1
|
||||
LEFT JOIN BUS_INDUSTRY_TYPE i2 on i2.INDUSTRYTYPE_ID = f.INDUSTRY2
|
||||
LEFT JOIN BUS_INDUSTRY_TYPE i3 on i3.INDUSTRYTYPE_ID = f.INDUSTRY3
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE i1 on i1.INDUSTRYTYPE_ID = f.INDUSTRY1
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE i2 on i2.INDUSTRYTYPE_ID = f.INDUSTRY2
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE i3 on i3.INDUSTRYTYPE_ID = f.INDUSTRY3
|
||||
LEFT JOIN BUS_TRAIN_LEVEL_TYPE tl on tl.TRAINLEVEL_ID = f.TRAINLEVEL
|
||||
where
|
||||
f.STAGEEXAMPAPERINPUT_ID = #{STAGEEXAMPAPERINPUT_ID}
|
||||
|
@ -250,9 +250,9 @@
|
|||
f
|
||||
LEFT JOIN BUS_POST_TYPE p on p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE t on t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_INDUSTRY_TYPE i1 on i1.INDUSTRYTYPE_ID = f.INDUSTRY1
|
||||
LEFT JOIN BUS_INDUSTRY_TYPE i2 on i2.INDUSTRYTYPE_ID = f.INDUSTRY2
|
||||
LEFT JOIN BUS_INDUSTRY_TYPE i3 on i3.INDUSTRYTYPE_ID = f.INDUSTRY3
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE i1 on i1.INDUSTRYTYPE_ID = f.INDUSTRY1
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE i2 on i2.INDUSTRYTYPE_ID = f.INDUSTRY2
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE i3 on i3.INDUSTRYTYPE_ID = f.INDUSTRY3
|
||||
LEFT JOIN BUS_TRAIN_LEVEL_TYPE tl on tl.TRAINLEVEL_ID = f.TRAINLEVEL
|
||||
LEFT JOIN BUS_POST_PAPER pp on pp.STAGEEXAMPAPERINPUT_ID = f.STAGEEXAMPAPERINPUT_ID and pp.ISDELETE = '0'
|
||||
where f.ISDELETE = '0'
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -127,7 +127,7 @@
|
|||
f.*
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN BUS_CORP_INFO c on c.CORPINFO_ID = f.CORPINFO_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_CORP_INFO c on c.CORPINFO_ID = f.CORPINFO_ID
|
||||
where f.CORPINFO_ID = #{CORPINFO_ID}
|
||||
and f.STAGEEXAMPAPERINPUT_ID = #{STAGEEXAMPAPERINPUT_ID}
|
||||
and f.ISDELETE = 0
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</sql>
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
<!-- 字段 -->
|
||||
<sql id="Field">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</sql>
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -140,8 +140,8 @@
|
|||
,dic2.name as train_type_name
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN sys_dictionaries dic1 ON dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN sys_dictionaries dic2 ON dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic1 ON dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic2 ON dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
left join bus_stageexampaper p on p.STUDYTASK_ID=f.STUDYTASK_ID
|
||||
where
|
||||
f.STUDYTASK_ID = #{STUDYTASK_ID}
|
||||
|
@ -158,8 +158,8 @@
|
|||
(SELECT count(*) FROM bus_stagestudentrelation s3 WHERE s3.STUDYTASK_ID = f.STUDYTASK_ID and s3.STAGEEXAMSCORE > '-1') AS cj -- 参加考试人数
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN sys_dictionaries dic1 ON dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN sys_dictionaries dic2 ON dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic1 ON dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic2 ON dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_STAGEEXAMPAPER st on st.STUDYTASK_ID = f.STUDYTASK_ID
|
||||
where 1=1
|
||||
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
||||
|
@ -313,8 +313,8 @@
|
|||
FROM
|
||||
bus_stagestudentrelation f
|
||||
LEFT JOIN BUS_STUDYTASK s ON s.STUDYTASK_ID = f.STUDYTASK_ID
|
||||
LEFT JOIN sys_dictionaries dic1 ON dic1.DICTIONARIES_ID = s.POSTTYPE
|
||||
LEFT JOIN sys_dictionaries dic2 ON dic2.DICTIONARIES_ID = s.TRAINTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic1 ON dic1.DICTIONARIES_ID = s.POSTTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic2 ON dic2.DICTIONARIES_ID = s.TRAINTYPE
|
||||
LEFT JOIN BUS_STAGEEXAMPAPER st ON st.STUDYTASK_ID = f.STUDYTASK_ID
|
||||
LEFT JOIN BUS_COURSESTUDYVIDEORECORD co ON co.STUDYTASK_ID = f.STUDYTASK_ID and co.USER_ID = f.USER_ID AND co.PLAYCOUNT = 0
|
||||
WHERE
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -145,7 +145,7 @@
|
|||
,u.USER_SIGN_FILE_PATH
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN sys_userinfo u on u.USER_ID = f.user_id
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_USERINFO u on u.USER_ID = f.user_id
|
||||
where 1=1
|
||||
<if test="STUDYTASK_ID != null and STUDYTASK_ID != ''">
|
||||
and f.STUDYTASK_ID = #{STUDYTASK_ID}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -202,7 +202,7 @@
|
|||
<include refid="tableName"></include> f
|
||||
LEFT JOIN BUS_POST_TYPE p on p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE t on t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN bus_industry_type lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN BUS_TEACHER ts on f.SPEAKER = ts.TEACHER_ID
|
||||
where
|
||||
f.VIDEOCOURSEWARE_ID = #{VIDEOCOURSEWARE_ID}
|
||||
|
@ -267,7 +267,7 @@
|
|||
<include refid="tableName"></include> f
|
||||
LEFT JOIN BUS_POST_TYPE p on p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE t on t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_INDUSTRY_TYPE iei on iei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE iei on iei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN BUS_TEACHER ts on f.SPEAKER = ts.TEACHER_ID
|
||||
LEFT JOIN (SELECT COURSEWAREID,count(1) QUESTIONCOUNT from BUS_QUESTION where ISDELETE = '0' GROUP BY COURSEWAREID) bq
|
||||
on bq.COURSEWAREID = f.VIDEOCOURSEWARE_ID
|
||||
|
@ -482,8 +482,8 @@
|
|||
from
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN BUS_KCMIDDLEKJ k ON k.COURSEWAREID = f.VIDEOCOURSEWARE_ID
|
||||
LEFT JOIN sys_dictionaries dic1 on dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN sys_dictionaries dic2 on dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic1 on dic1.DICTIONARIES_ID = f.POSTTYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES dic2 on dic2.DICTIONARIES_ID = f.TRAINTYPE
|
||||
|
||||
LEFT JOIN BUS_TEACHER ts on f.SPEAKER = ts.TEACHER_ID
|
||||
where f.ISDELETE = '0'
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -150,7 +150,7 @@
|
|||
left join bus_class_account ca on cal.CLASS_ACCOUNT_ID = ca.CLASS_ACCOUNT_ID
|
||||
left join bus_class c on ca.CLASS_ID = c.CLASS_ID
|
||||
LEFT JOIN bus_enterprise be ON be.ENTERPRISE_ID = c.ENTERPRISE_ID
|
||||
LEFT JOIN BUS_CORP_INFO ci ON ci.CORPINFO_ID = c.CORPINFO_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_CORP_INFO ci ON ci.CORPINFO_ID = c.CORPINFO_ID
|
||||
<where>
|
||||
<if test="pd.CORPINFO_NAME != null and pd.CORPINFO_NAME != ''">
|
||||
and ( ci.NAME LIKE CONCAT(CONCAT('%', #{pd.CORPINFO_NAME}),'%') )
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
LEFT JOIN bus_teacher t on t.TEACHER_ID = cv.SPEAKER
|
||||
LEFT JOIN BUS_POST_TYPE pt on pt.POSTTYPE_ID = cv.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE tt on tt.TRAININGTYPE_ID = cv.TRAINTYPE
|
||||
LEFT JOIN BUS_INDUSTRY_TYPE iei on iei.INDUSTRYTYPE_ID = cv.INDUSTRY_END_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE iei on iei.INDUSTRYTYPE_ID = cv.INDUSTRY_END_ID
|
||||
where f.ISDELETE = '0'
|
||||
and f.VIDEOCOURSEWARE_ID is not null
|
||||
and f.VIDEOCOURSEWARE_ID != ''
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -60,8 +60,8 @@
|
|||
) cvv ON cvv.CURRICULUM_ID = f.CURRICULUM_ID
|
||||
LEFT JOIN BUS_CURRICULUM c on c.CURRICULUM_ID = f.CURRICULUM_ID
|
||||
lEFT JOIN BUS_CURRICULUM_POST cp on cp.ISDELETE = '0' AND cp.CURRICULUM_ID = f.CURRICULUM_ID AND cp.CLASS_ID = f.CLASS_ID
|
||||
lEFT JOIN OA_DEPARTMENT d on d.DEPARTMENT_ID = cp.DEPARTMENT_ID
|
||||
lEFT JOIN SYS_POST p on p.POST_ID = cp.POST_ID
|
||||
lEFT JOIN `qa-traffic-prevention`.OA_DEPARTMENT d on d.DEPARTMENT_ID = cp.DEPARTMENT_ID
|
||||
lEFT JOIN `qa-traffic-prevention`.SYS_POST p on p.POST_ID = cp.POST_ID
|
||||
left join (
|
||||
SELECT
|
||||
c.CLASS_ID,
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -134,12 +134,12 @@
|
|||
f
|
||||
LEFT JOIN BUS_POST_TYPE p ON p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE t ON t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN sys_dictionaries sd1 ON sd1.BIANMA = f.PROVINCE
|
||||
LEFT JOIN sys_dictionaries sd2 ON sd2.BIANMA = f.CITY
|
||||
LEFT JOIN sys_dictionaries sd3 ON sd3.BIANMA = f.COUNTY
|
||||
LEFT JOIN sys_dictionaries sd4 ON sd4.BIANMA = f.VILLAGE
|
||||
LEFT JOIN sys_dictionaries sd5 ON sd5.BIANMA = f.STREET
|
||||
LEFT JOIN bus_corp_info ci ON ci.CORPINFO_ID = f.CORPINFO_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES sd1 ON sd1.BIANMA = f.PROVINCE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES sd2 ON sd2.BIANMA = f.CITY
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES sd3 ON sd3.BIANMA = f.COUNTY
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES sd4 ON sd4.BIANMA = f.VILLAGE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES sd5 ON sd5.BIANMA = f.STREET
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_CORP_INFO ci ON ci.CORPINFO_ID = f.CORPINFO_ID
|
||||
LEFT JOIN BUS_TRAIN_LEVEL_TYPE tlt ON tlt.TRAINLEVEL_ID = f.TRAINLEVEL
|
||||
LEFT JOIN(SELECT COUNT(1) num,s.CLASS_ID FROM BUS_STUDENT s WHERE s.ISDELETE = '0' GROUP BY s.CLASS_ID )
|
||||
students ON students.CLASS_ID = f.CLASS_ID
|
||||
|
@ -246,10 +246,10 @@
|
|||
<include refid="tableName"></include>
|
||||
f
|
||||
LEFT JOIN BUS_POST_TYPE p on p.POSTTYPE_ID = f.POSTTYPE
|
||||
left join bus_corp_info bci on f.CORPINFO_ID = bci.CORPINFO_ID
|
||||
left join `qa-traffic-prevention`.BUS_CORP_INFO bci on f.CORPINFO_ID = bci.CORPINFO_ID
|
||||
LEFT JOIN BUS_TRAINING_TYPE t on t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_TRAIN_LEVEL_TYPE tlt on tlt.TRAINLEVEL_ID = f.TRAINLEVEL
|
||||
LEFT JOIN bus_industry_type lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
WHERE
|
||||
f.CLASS_ID = #{CLASS_ID}
|
||||
</select>
|
||||
|
@ -270,7 +270,7 @@
|
|||
FROM
|
||||
<include refid="tableName"></include> f
|
||||
LEFT JOIN BUS_POST_TYPE p ON p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_CORP_INFO c ON c.CORPINFO_ID = f.CORPINFO_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_CORP_INFO c ON c.CORPINFO_ID = f.CORPINFO_ID
|
||||
LEFT JOIN BUS_TRAINING_TYPE t ON t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_TRAIN_LEVEL_TYPE tlt ON tlt.TRAINLEVEL_ID = f.TRAINLEVEL
|
||||
LEFT JOIN(SELECT COUNT(1) num,s.CLASS_ID FROM BUS_STUDENT s WHERE s.ISDELETE = '0' GROUP BY s.CLASS_ID ) students ON students.CLASS_ID = f.CLASS_ID
|
||||
|
@ -318,7 +318,7 @@
|
|||
LEFT JOIN
|
||||
BUS_STAGESTUDENTRELATION s ON s.STUDENT_ID = f.STUDENT_ID
|
||||
LEFT JOIN
|
||||
SYS_USERINFO ui on ui.USER_ID = f.USER_ID
|
||||
`qa-traffic-prevention`.SYS_USERINFO ui on ui.USER_ID = f.USER_ID
|
||||
LEFT JOIN
|
||||
(SELECT i.STUDENT_ID,GROUP_CONCAT(i.FILEPATH) FACES FROM bus_faceimglog i
|
||||
LEFT JOIN bus_student bs on bs.STUDENT_ID = i.STUDENT_ID
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
sys_dictionaries
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -181,7 +181,7 @@
|
|||
LEFT JOIN BUS_POST_TYPE p on p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE t on t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_TRAIN_LEVEL_TYPE tlt on tlt.TRAINLEVEL_ID = f.TRAINLEVEL
|
||||
LEFT JOIN bus_industry_type lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
where
|
||||
f.CURRICULUM_ID = #{CURRICULUM_ID}
|
||||
</select>
|
||||
|
@ -221,7 +221,7 @@
|
|||
LEFT JOIN BUS_POST_TYPE p on p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE t on t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_TRAIN_LEVEL_TYPE tlt on tlt.TRAINLEVEL_ID = f.TRAINLEVEL
|
||||
LEFT JOIN bus_industry_type lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
where f.ISDELETE = '0'
|
||||
and ( f.VALID_DATE IS NULL
|
||||
or f.VALID_DATE >= DATE_FORMAT(NOW(),'%Y-%m-%d') )
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
LEFT JOIN BUS_POST_TYPE p on p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE t on t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_TRAIN_LEVEL_TYPE tlt on tlt.TRAINLEVEL_ID = f.TRAINLEVEL
|
||||
LEFT JOIN bus_industry_type lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN bus_private_curriculum pc on pc.CURRICULUM_ID = f.CURRICULUM_ID
|
||||
where f.ISDELETE = '0' and pc.ISDELETE = 0
|
||||
and ( f.VALID_DATE IS NULL
|
||||
|
@ -195,7 +195,7 @@
|
|||
LEFT JOIN BUS_POST_TYPE p on p.POSTTYPE_ID = f.POSTTYPE
|
||||
LEFT JOIN BUS_TRAINING_TYPE t on t.TRAININGTYPE_ID = f.TRAINTYPE
|
||||
LEFT JOIN BUS_TRAIN_LEVEL_TYPE tlt on tlt.TRAINLEVEL_ID = f.TRAINLEVEL
|
||||
LEFT JOIN bus_industry_type lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_INDUSTRY_TYPE lei ON lei.INDUSTRYTYPE_ID = f.INDUSTRY_END_ID
|
||||
where f.ISDELETE = '0'
|
||||
and ( f.VALID_DATE IS NULL
|
||||
or f.VALID_DATE >= DATE_FORMAT(NOW(),'%Y-%m-%d') )
|
||||
|
|
|
@ -8,10 +8,7 @@
|
|||
</sql>
|
||||
<!-- 字段 -->
|
||||
<sql id="Field">
|
||||
f
|
||||
.
|
||||
DOCKINGCOURSES_ID
|
||||
,
|
||||
f.DOCKINGCOURSES_ID,
|
||||
f.CURRICULUM_SALES_RECORDS_ID,
|
||||
f.CURRICULUM_ID,
|
||||
f.CURRICULUM_NAME,
|
||||
|
@ -30,8 +27,7 @@
|
|||
|
||||
<!-- 字段用于新增 -->
|
||||
<sql id="Field2">
|
||||
DOCKINGCOURSES_ID
|
||||
,
|
||||
DOCKINGCOURSES_ID,
|
||||
CURRICULUM_SALES_RECORDS_ID,
|
||||
CURRICULUM_ID,
|
||||
CURRICULUM_NAME,
|
||||
|
@ -50,8 +46,7 @@
|
|||
|
||||
<!-- 字段值 -->
|
||||
<sql id="FieldValue">
|
||||
#{DOCKINGCOURSES_ID}
|
||||
,
|
||||
#{DOCKINGCOURSES_ID},
|
||||
#{CURRICULUM_SALES_RECORDS_ID},
|
||||
#{CURRICULUM_ID},
|
||||
#{CURRICULUM_NAME},
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
BUS_STAGEEXAMRECORD f
|
||||
LEFT JOIN bus_paper_question q ON q.PAPER_QUESTION_ID = f.PAPER_QUESTION_ID
|
||||
LEFT JOIN bus_videocourseware v on v.VIDEOCOURSEWARE_ID = q.VIDEOCOURSEWARE_ID
|
||||
LEFT JOIN SYS_DICTIONARIES d on d.DICTIONARIES_ID = q.LABEL_TYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES d on d.DICTIONARIES_ID = q.LABEL_TYPE
|
||||
where f.ISDELETE = '0'
|
||||
AND f.STAGEEXAM_ID = #{STAGEEXAM_ID}
|
||||
<if test="CLASS_ID!= null and CLASS_ID != ''"><!-- 关键词检索 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -101,7 +101,7 @@
|
|||
bus_studentcorpinfo f
|
||||
LEFT JOIN BUS_STAGESTUDENTRELATION ssr ON ssr.USER_ID = f.USER_ID
|
||||
AND ssr.ISDELETE = '0'
|
||||
LEFT JOIN BUS_CORP_INFO ci ON ci.CORPINFO_ID = f.CORPINFO_ID
|
||||
LEFT JOIN `qa-traffic-prevention`.BUS_CORP_INFO ci ON ci.CORPINFO_ID = f.CORPINFO_ID
|
||||
AND ci.ISDELETE = '0'
|
||||
WHERE
|
||||
f.ISDELETE = '0'
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--数据字典表名 -->
|
||||
<sql id="dicTableName">
|
||||
SYS_DICTIONARIES
|
||||
`qa-traffic-prevention`.SYS_DICTIONARIES
|
||||
</sql>
|
||||
|
||||
<!-- 字段 -->
|
||||
|
@ -229,7 +229,7 @@
|
|||
s.NAME SEX_NAME,
|
||||
ct.NAME CERTIFICATETYPE_NAME,
|
||||
doe.NAME DEGREE_OF_EDUCATION_NAME,
|
||||
(SELECT GROUP_CONCAT(pt.NAME) from sys_dictionaries pt where FIND_IN_SET(pt.DICTIONARIES_ID , f.PERSONNEL_TYPE))
|
||||
(SELECT GROUP_CONCAT(pt.NAME) from `qa-traffic-prevention`.SYS_DICTIONARIES pt where FIND_IN_SET(pt.DICTIONARIES_ID , f.PERSONNEL_TYPE))
|
||||
PERSONNEL_TYPE_NAME,
|
||||
ci.CORP_NAME,
|
||||
d.NAME DEPARTMENT_NAME,
|
||||
|
@ -237,12 +237,12 @@
|
|||
from
|
||||
<include refid="tableName"></include>
|
||||
f
|
||||
left join sys_dictionaries s on s.DICTIONARIES_ID = f.SEX
|
||||
left join sys_dictionaries ct on ct.DICTIONARIES_ID = f.CERTIFICATETYPE
|
||||
left join sys_dictionaries doe on doe.DICTIONARIES_ID = f.DEGREE_OF_EDUCATION
|
||||
left join bus_corp_info ci on ci.CORPINFO_ID = f.CORPINFO_ID and ci.ISDELETE = '0'
|
||||
left join oa_department d on d.DEPARTMENT_ID = f.DEPARTMENT_ID
|
||||
left join sys_post p on p.POST_ID = f.POST_ID
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES s on s.DICTIONARIES_ID = f.SEX
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES ct on ct.DICTIONARIES_ID = f.CERTIFICATETYPE
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES doe on doe.DICTIONARIES_ID = f.DEGREE_OF_EDUCATION
|
||||
left join `qa-traffic-prevention`.BUS_CORP_INFO ci on ci.CORPINFO_ID = f.CORPINFO_ID and ci.ISDELETE = '0'
|
||||
left join `qa-traffic-prevention`.OA_DEPARTMENT d on d.DEPARTMENT_ID = f.DEPARTMENT_ID
|
||||
left join `qa-traffic-prevention`.SYS_POST p on p.POST_ID = f.POST_ID
|
||||
where
|
||||
f.STUDENT_ID = #{STUDENT_ID}
|
||||
</select>
|
||||
|
@ -280,12 +280,12 @@
|
|||
from
|
||||
<include refid="tableName"></include> f
|
||||
|
||||
left join sys_dictionaries s on s.DICTIONARIES_ID = f.SEX
|
||||
left join sys_dictionaries ct on ct.DICTIONARIES_ID = f.CERTIFICATETYPE
|
||||
left join sys_dictionaries doe on doe.DICTIONARIES_ID = f.DEGREE_OF_EDUCATION
|
||||
left join bus_corp_info c on c.CORPINFO_ID = f.CORPINFO_ID and c.ISDELETE = '0'
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES s on s.DICTIONARIES_ID = f.SEX
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES ct on ct.DICTIONARIES_ID = f.CERTIFICATETYPE
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES doe on doe.DICTIONARIES_ID = f.DEGREE_OF_EDUCATION
|
||||
left join `qa-traffic-prevention`.BUS_CORP_INFO c on c.CORPINFO_ID = f.CORPINFO_ID and c.ISDELETE = '0'
|
||||
left join bus_studentlog sl on sl.USER_ID = f.USER_ID and sl.ISDELETE = '0'
|
||||
left join sys_user u on u.user_id = f.user_id
|
||||
left join `qa-traffic-prevention`.SYS_USER u on u.user_id = f.user_id
|
||||
where f.ISDELETE = '0'
|
||||
and f.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
<if test="pd.NAME!= null and pd.NAME != ''"><!-- 关键词检索 -->
|
||||
|
@ -346,11 +346,11 @@
|
|||
from
|
||||
<include refid="tableName"></include>
|
||||
f
|
||||
LEFT JOIN SYS_DICTIONARIES ct on ct.DICTIONARIES_ID = f.CERTIFICATETYPE
|
||||
LEFT JOIN SYS_DICTIONARIES doe on doe.DICTIONARIES_ID = f.DEGREE_OF_EDUCATION
|
||||
LEFT JOIN SYS_USERINFO ui on ui.user_id = f.user_id
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES ct on ct.DICTIONARIES_ID = f.CERTIFICATETYPE
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_DICTIONARIES doe on doe.DICTIONARIES_ID = f.DEGREE_OF_EDUCATION
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_USERINFO ui on ui.user_id = f.user_id
|
||||
LEFT JOIN BUS_STAGESTUDENTRELATION ssr on ssr.STUDENT_ID = f.STUDENT_ID and ssr.ISDELETE = '0'
|
||||
LEFT JOIN SYS_USER operator on operator.USER_ID = f.OPERATOR
|
||||
LEFT JOIN `qa-traffic-prevention`.SYS_USER operator on operator.USER_ID = f.OPERATOR
|
||||
LEFT JOIN BUS_CLASS c on c.CLASS_ID = f.CLASS_ID
|
||||
LEFT JOIN bus_stageexam AS ex ON f.STUDENT_ID = ex.STUDENT_ID AND ex.ISDELETE = 0
|
||||
LEFT JOIN bus_stageexampaper_input sei ON ex.STAGEEXAMPAPER_ID = sei.STAGEEXAMPAPERINPUT_ID
|
||||
|
@ -417,7 +417,7 @@
|
|||
s.NAME SEX_NAME,
|
||||
ct.NAME CERTIFICATETYPE_NAME,
|
||||
doe.NAME DEGREE_OF_EDUCATION_NAME,
|
||||
(SELECT GROUP_CONCAT(pt.NAME) from sys_dictionaries pt where FIND_IN_SET(pt.DICTIONARIES_ID , f.PERSONNEL_TYPE))
|
||||
(SELECT GROUP_CONCAT(pt.NAME) from `qa-traffic-prevention`.SYS_DICTIONARIES pt where FIND_IN_SET(pt.DICTIONARIES_ID , f.PERSONNEL_TYPE))
|
||||
PERSONNEL_TYPE_NAME,
|
||||
(
|
||||
select
|
||||
|
@ -445,12 +445,12 @@
|
|||
from
|
||||
<include refid="tableName"></include> f
|
||||
|
||||
left join sys_dictionaries s on s.DICTIONARIES_ID = f.SEX
|
||||
left join sys_dictionaries ct on ct.DICTIONARIES_ID = f.CERTIFICATETYPE
|
||||
left join sys_dictionaries doe on doe.DICTIONARIES_ID = f.DEGREE_OF_EDUCATION
|
||||
left join bus_corp_info c on c.CORPINFO_ID = f.CORPINFO_ID and c.ISDELETE = '0'
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES s on s.DICTIONARIES_ID = f.SEX
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES ct on ct.DICTIONARIES_ID = f.CERTIFICATETYPE
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES doe on doe.DICTIONARIES_ID = f.DEGREE_OF_EDUCATION
|
||||
left join `qa-traffic-prevention`.BUS_CORP_INFO c on c.CORPINFO_ID = f.CORPINFO_ID and c.ISDELETE = '0'
|
||||
left join bus_studentlog sl on sl.USER_ID = f.USER_ID and sl.ISDELETE = '0'
|
||||
left join sys_user u on u.user_id = f.user_id
|
||||
left join `qa-traffic-prevention`.SYS_USER u on u.user_id = f.user_id
|
||||
where f.ISDELETE = '0'
|
||||
and f.CORPINFO_ID = #{pd.CORPINFO_ID}
|
||||
<if test="pd.NAME!= null and pd.NAME != ''"><!-- 关键词检索 -->
|
||||
|
@ -558,12 +558,12 @@
|
|||
s.NAME SEX_NAME,
|
||||
ct.NAME CERTIFICATETYPE_NAME,
|
||||
doe.NAME DEGREE_OF_EDUCATION_NAME,
|
||||
(SELECT GROUP_CONCAT(pt.NAME) from sys_dictionaries pt where FIND_IN_SET(pt.DICTIONARIES_ID , f.PERSONNEL_TYPE)) PERSONNEL_TYPE_NAME
|
||||
(SELECT GROUP_CONCAT(pt.NAME) from `qa-traffic-prevention`.SYS_DICTIONARIES pt where FIND_IN_SET(pt.DICTIONARIES_ID , f.PERSONNEL_TYPE)) PERSONNEL_TYPE_NAME
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
left join sys_dictionaries s on s.DICTIONARIES_ID = f.SEX
|
||||
left join sys_dictionaries ct on ct.DICTIONARIES_ID = f.CERTIFICATETYPE
|
||||
left join sys_dictionaries doe on doe.DICTIONARIES_ID = f.DEGREE_OF_EDUCATION
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES s on s.DICTIONARIES_ID = f.SEX
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES ct on ct.DICTIONARIES_ID = f.CERTIFICATETYPE
|
||||
left join `qa-traffic-prevention`.SYS_DICTIONARIES doe on doe.DICTIONARIES_ID = f.DEGREE_OF_EDUCATION
|
||||
where
|
||||
<!--f.ISENABLE = '1'
|
||||
and f.ISSTUDENT = 'true'-->
|
||||
|
@ -584,7 +584,7 @@
|
|||
s.NAME SEX_NAME,
|
||||
ct.NAME CERTIFICATETYPE_NAME,
|
||||
doe.NAME DEGREE_OF_EDUCATION_NAME,
|
||||
(SELECT GROUP_CONCAT(pt.NAME) from sys_dictionaries pt where FIND_IN_SET(pt.DICTIONARIES_ID , f.PERSONNEL_TYPE)) PERSONNEL_TYPE_NAME
|
||||
(SELECT GROUP_CONCAT(pt.NAME) from `qa-traffic-prevention`.SYS_DICTIONARIES pt where FIND_IN_SET(pt.DICTIONARIES_ID , f.PERSONNEL_TYPE)) PERSONNEL_TYPE_NAME
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
left join sys_dictionaries s on s.DICTIONARIES_ID = f.SEX
|
||||
|
@ -633,10 +633,10 @@
|
|||
left join sys_dictionaries s on s.DICTIONARIES_ID = f.SEX
|
||||
left join sys_dictionaries ct on ct.DICTIONARIES_ID = f.CERTIFICATETYPE
|
||||
left join sys_dictionaries doe on doe.DICTIONARIES_ID = f.DEGREE_OF_EDUCATION
|
||||
left join bus_corp_info c on c.CORPINFO_ID = f.CORPINFO_ID and c.ISDELETE = '0'
|
||||
left join sys_post sp on sp.POST_ID = f.POST_ID
|
||||
left join sys_user u on u.user_id = f.user_id
|
||||
left join oa_department o on o.DEPARTMENT_ID = f.DEPARTMENT_ID
|
||||
left join `qa-traffic-prevention`.BUS_CORP_INFO c on c.CORPINFO_ID = f.CORPINFO_ID and c.ISDELETE = '0'
|
||||
left join `qa-traffic-prevention`.SYS_POST sp on sp.POST_ID = f.POST_ID
|
||||
left join `qa-traffic-prevention`.SYS_USER u on u.user_id = f.user_id
|
||||
left join `qa-traffic-prevention`.OA_DEPARTMENT o on o.DEPARTMENT_ID = f.DEPARTMENT_ID
|
||||
left join sys_dictionaries pt on pt.DICTIONARIES_ID = f.PERSONNEL_TYPE
|
||||
left join sys_dictionaries du on du.DICTIONARIES_ID = f.DUTIES
|
||||
left join sys_dictionaries ma on ma.DICTIONARIES_ID = f.MAJOR
|
||||
|
@ -656,7 +656,7 @@
|
|||
<include refid="Field"></include>,b.CORP_NAME as CORPINFO_NAME
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
left join bus_corp_info b on f.CORPINFO_ID = b.CORPINFO_ID
|
||||
left join `qa-traffic-prevention`.BUS_CORP_INFO b on f.CORPINFO_ID = b.CORPINFO_ID
|
||||
where f.ISDELETE = '0'
|
||||
<if test="pd.USER_ID != null and pd.USER_ID != ''">
|
||||
and f.USER_ID = #{pd.USER_ID}
|
||||
|
@ -693,11 +693,11 @@
|
|||
sst.STRENGTHEN_STAGEEXAMPAPER_INPUT_ID
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
left join sys_user u on f.USER_ID = u.USER_ID
|
||||
left join `qa-traffic-prevention`.SYS_USER u on f.USER_ID = u.USER_ID
|
||||
left join <include refid="dicTableName"></include> dic1 on f.DEGREE_OF_EDUCATION = dic1.DICTIONARIES_ID
|
||||
left join <include refid="dicTableName"></include> dic2 on f.PERSONNEL_TYPE = dic2.DICTIONARIES_ID
|
||||
left join oa_department dep on f.DEPARTMENT_ID = dep.DEPARTMENT_ID
|
||||
left join sys_post post on f.POST_ID = post.POST_ID
|
||||
left join `qa-traffic-prevention`.OA_DEPARTMENT dep on f.DEPARTMENT_ID = dep.DEPARTMENT_ID
|
||||
left join `qa-traffic-prevention`.SYS_POST post on f.POST_ID = post.POST_ID
|
||||
left join bus_class c on f.CLASS_ID = c.CLASS_ID
|
||||
left join (select * from bus_stagestudentrelation where STAGEEXAMSTATE = '3') bsr on bsr.STUDENT_ID = f.STUDENT_ID
|
||||
left join bus_strengthenstudentrelation sst on sst.STUDENT_ID = f.STUDENT_ID
|
||||
|
|
Loading…
Reference in New Issue