2.0的js版本和后端 完成

This commit is contained in:
zhuoda
2022-10-22 20:49:25 +08:00
parent b782b953a5
commit 2621703f1f
1504 changed files with 81667 additions and 76100 deletions

View File

@@ -0,0 +1,47 @@
<?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="net.lab1024.sa.common.module.support.changelog.dao.ChangeLogDao">
<!-- 分页查询 -->
<select id="queryPage" resultType="net.lab1024.sa.common.module.support.changelog.domain.vo.ChangeLogVO">
SELECT
*
FROM t_change_log
<where>
<!--更新类型:[1:特大版本功能更新;2:功能更新;3:bug修复]-->
<if test="queryForm.type != null">
AND t_change_log.type = #{queryForm.type}
</if>
<!--关键字-->
<if test="queryForm.keyword != null and queryForm.keyword != ''">
AND ( INSTR(t_change_log.version,#{queryForm.keyword})
OR INSTR(t_change_log.publish_author,#{queryForm.keyword})
OR INSTR(t_change_log.content,#{queryForm.keyword})
)
</if>
<!--发布日期-->
<if test="queryForm.publicDateBegin != null">
AND DATE_FORMAT(t_change_log.public_date, '%Y-%m-%d') &gt;= #{queryForm.publicDateBegin}
</if>
<if test="queryForm.publicDateEnd != null">
AND DATE_FORMAT(t_change_log.public_date, '%Y-%m-%d') &lt;= #{queryForm.publicDateEnd}
</if>
<!--创建时间-->
<if test="queryForm.createTime != null">
AND DATE_FORMAT(t_change_log.create_time, '%Y-%m-%d') = #{queryForm.createTime}
</if>
<!--跳转链接-->
<if test="queryForm.link != null">
AND t_change_log.link = #{queryForm.link}
</if>
</where>
order by t_change_log.version desc
</select>
<select id="selectByVersion"
resultType="net.lab1024.sa.common.module.support.changelog.domain.entity.ChangeLogEntity">
select * from t_change_log where `version` = #{version}
</select>
</mapper>

View File

@@ -0,0 +1,36 @@
<?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="net.lab1024.sa.common.module.support.codegenerator.dao.CodeGeneratorDao">
<select id="countByTableName" resultType="Long">
select count(*)
from information_schema.tables
where table_schema = (select database())
and table_name = #{tableName}
</select>
<select id="selectTableColumn"
resultType="net.lab1024.sa.common.module.support.codegenerator.domain.vo.TableColumnVO">
select *
from information_schema.columns
where table_schema = (select database())
and table_name = #{tableName}
order by ordinal_position
</select>
<select id="queryTableList"
resultType="net.lab1024.sa.common.module.support.codegenerator.domain.vo.TableVO">
select
tables.table_name,
tables.table_comment,
tables.create_time,
tables.update_time,
t_code_generator_config.update_time configTime
from information_schema.tables tables
left join t_code_generator_config on tables.table_name = t_code_generator_config.table_name
where tables.table_schema = (select database())
<if test="queryForm.tableNameKeywords != null and queryForm.tableNameKeywords != ''">
AND INSTR(tables.table_name,#{queryForm.tableNameKeywords})
</if>
</select>
</mapper>

View File

@@ -0,0 +1,22 @@
<?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="net.lab1024.sa.common.module.support.config.ConfigDao">
<!-- 分页查询系统配置 -->
<select id="queryByPage" resultType="net.lab1024.sa.common.module.support.config.domain.ConfigEntity">
SELECT *
FROM t_config
<where>
<if test="query.configKey != null and query.configKey != ''">
AND INSTR(config_key,#{query.configKey})
</if>
</where>
</select>
<!-- 根据key查询获取数据 -->
<select id="selectByKey" resultType="net.lab1024.sa.common.module.support.config.domain.ConfigEntity">
SELECT *
FROM t_config
WHERE config_key = #{key}
</select>
</mapper>

View File

@@ -0,0 +1,31 @@
<?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="net.lab1024.sa.common.module.support.datatracer.dao.DataTracerDao">
<select id="selectRecord"
resultType="net.lab1024.sa.common.module.support.datatracer.domain.vo.DataTracerVO">
select *
from t_data_tracer
where data_type = #{dataType}
and data_id = #{dataId}
</select>
<select id="query" resultType="net.lab1024.sa.common.module.support.datatracer.domain.vo.DataTracerVO">
SELECT * FROM t_data_tracer
<where>
<if test="query.type != null">
AND type = #{query.type}
</if>
<if test="query.dataId != null">
AND data_id = #{query.dataId}
</if>
<if test="query.keywords != null and query.keywords != ''">
AND INSTR(content,#{query.keywords})
</if>
</where>
<if test="query.sortItemList == null or query.sortItemList.size == 0">
ORDER BY data_tracer_id DESC
</if>
</select>
</mapper>

View File

@@ -0,0 +1,37 @@
<?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="net.lab1024.sa.common.module.support.dict.dao.DictKeyDao">
<update id="updateDeletedFlagByIdList">
update t_dict_key set deleted_flag = #{deletedFlag} where dict_key_id in
<foreach collection="dictKeyIdList" open="(" close=")" separator="," item="item">
#{item}
</foreach>
</update>
<select id="query" resultType="net.lab1024.sa.common.module.support.dict.domain.vo.DictKeyVO">
SELECT * FROM t_dict_key
<where>
<if test="query.searchWord != null and query.searchWord !=''">
AND (INSTR(key_code,#{query.searchWord}) or INSTR(key_name,#{query.searchWord}))
</if>
<if test="query.deletedFlag != null">
AND deleted_flag = #{query.deletedFlag}
</if>
</where>
<if test="query.sortItemList == null or query.sortItemList.size == 0">
ORDER BY dict_key_id DESC
</if>
</select>
<select id="selectByCode"
resultType="net.lab1024.sa.common.module.support.dict.domain.entity.DictKeyEntity">
select * from t_dict_key where key_code = #{keyCode} and deleted_flag = #{deletedFlag}
</select>
<select id="selectByDeletedFlag"
resultType="net.lab1024.sa.common.module.support.dict.domain.entity.DictKeyEntity">
select * from t_dict_key where deleted_flag = #{deletedFlag}
</select>
</mapper>

View File

@@ -0,0 +1,44 @@
<?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="net.lab1024.sa.common.module.support.dict.dao.DictValueDao">
<update id="updateDeletedFlagByIdList">
update t_dict_value set deleted_flag = #{deletedFlag} where dict_value_id in
<foreach collection="dictValueIdList" open="(" close=")" separator="," item="item">
#{item}
</foreach>
</update>
<select id="query" resultType="net.lab1024.sa.common.module.support.dict.domain.vo.DictValueVO">
SELECT * FROM t_dict_value
<where>
<if test="query.dictKeyId != null">
AND dict_key_id = #{query.dictKeyId}
</if>
<if test="query.searchWord != null and query.searchWord !=''">
AND (INSTR(value_code,#{query.searchWord}) or INSTR(value_name,#{query.searchWord}))
</if>
<if test="query.deletedFlag != null">
AND deleted_flag = #{query.deletedFlag}
</if>
</where>
<if test="query.sortItemList == null or query.sortItemList.size == 0">
ORDER BY sort,dict_value_id DESC
</if>
</select>
<select id="selectByCode"
resultType="net.lab1024.sa.common.module.support.dict.domain.entity.DictValueEntity">
select * from t_dict_value where value_code = #{valueCode} and deleted_flag = #{deletedFlag}
</select>
<select id="selectByDeletedFlag"
resultType="net.lab1024.sa.common.module.support.dict.domain.entity.DictValueEntity">
select * from t_dict_value where deleted_flag = #{deletedFlag} order by sort;
</select>
<select id="selectByDeletedFlagAndKeyId"
resultType="net.lab1024.sa.common.module.support.dict.domain.entity.DictValueEntity">
select * from t_dict_value where dict_key_id = #{dictKeyId} and deleted_flag = #{deletedFlag}
</select>
</mapper>

View File

@@ -0,0 +1,26 @@
<?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="net.lab1024.sa.common.module.support.feedback.dao.FeedbackDao">
<select id="queryPage" resultType="net.lab1024.sa.common.module.support.feedback.domain.FeedbackVO">
select *
from t_feedback
<where>
<if test="query.searchWord != null and query.searchWord != '' ">
AND (
INSTR(feedback_content,#{query.searchWord})
OR INSTR(create_name,#{query.searchWord})
)
</if>
<if test="query.startDate != null">
AND DATE_FORMAT(create_time, '%Y-%m-%d') &gt;= #{query.startDate}
</if>
<if test="query.endDate != null">
AND DATE_FORMAT(create_time, '%Y-%m-%d') &lt;= #{query.endDate}
</if>
</where>
<if test="query.sortItemList == null or query.sortItemList.size == 0">
order by create_time desc
</if>
</select>
</mapper>

View File

@@ -0,0 +1,49 @@
<?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="net.lab1024.sa.common.module.support.file.dao.FileDao">
<!-- 分页查询 -->
<select id="queryPage" resultType="net.lab1024.sa.common.module.support.file.domain.vo.FileVO">
SELECT
*
FROM t_file
<where>
<!--文件夹类型-->
<if test="queryForm.folderType != null">
AND t_file.folder_type = #{queryForm.folderType}
</if>
<!--文件名词-->
<if test="queryForm.fileName != null and queryForm.fileName != ''">
AND INSTR(t_file.file_name,#{queryForm.fileName})
</if>
<!--文件Key-->
<if test="queryForm.fileKey != null and queryForm.fileKey != ''">
AND INSTR(t_file.file_key,#{queryForm.fileKey})
</if>
<!--文件类型-->
<if test="queryForm.fileType != null">
AND t_file.file_type = #{queryForm.fileType}
</if>
<!--创建人-->
<if test="queryForm.creatorName != null and queryForm.creatorName != ''">
AND INSTR(t_file.creator_name,#{queryForm.creatorName})
</if>
<!--创建时间-->
<if test="queryForm.createTimeBegin != null">
AND DATE_FORMAT(t_file.create_time, '%Y-%m-%d') &gt;= #{queryForm.createTimeBegin}
</if>
<if test="queryForm.createTimeEnd != null">
AND DATE_FORMAT(t_file.create_time, '%Y-%m-%d') &lt;= #{queryForm.createTimeEnd}
</if>
</where>
<if test="queryForm.sortItemList == null or queryForm.sortItemList.size == 0">
ORDER BY t_file.create_time DESC
</if>
</select>
<select id="getByFileKey" resultType="net.lab1024.sa.common.module.support.file.domain.vo.FileVO">
SELECT * FROM t_file where file_key = #{fileKey}
</select>
</mapper>

View File

@@ -0,0 +1,37 @@
<?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="net.lab1024.sa.common.module.support.heartbeat.HeartBeatRecordDao">
<update id="updateHeartBeatTimeById">
update t_heart_beat_record
set heart_beat_time = #{heartBeatTime}
<where>
heart_beat_record_id = #{id}
</where>
</update>
<select id="query" resultType="net.lab1024.sa.common.module.support.heartbeat.domain.HeartBeatRecordEntity">
select * from t_heart_beat_record where project_path = #{projectPath} and server_ip = #{serverIp} and process_no =#{processNo}
</select>
<select id="pageQuery" resultType="net.lab1024.sa.common.module.support.heartbeat.domain.HeartBeatRecordVO">
SELECT
*
FROM
t_heart_beat_record
<where>
<if test="query.startDate != null ">
AND DATE_FORMAT(heart_beat_time, '%Y-%m-%d') &gt;= #{query.startDate}
</if>
<if test="query.endDate != null ">
AND DATE_FORMAT(heart_beat_time, '%Y-%m-%d') &lt;= #{query.endDate}
</if>
<if test="query.keywords != null and query.keywords != ''">
AND (INSTR(project_path,#{query.keywords}) or INSTR(server_ip,#{query.keywords}) or INSTR(process_no,#{query.keywords}))
</if>
</where>
order by heart_beat_time desc
</select>
</mapper>

View File

@@ -0,0 +1,130 @@
<?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="net.lab1024.sa.common.module.support.helpdoc.dao.HelpDocDao">
<!-- ================================== 帮助文档【主表 t_help_doc 】 ================================== -->
<select id="queryAllHelpDocList" resultType="net.lab1024.sa.common.module.support.helpdoc.domain.vo.HelpDocVO">
SELECT t_help_doc.*,
t_help_doc_catalog.name as helpDocCatalogName
FROM t_help_doc
left join t_help_doc_catalog on t_help_doc_catalog.help_doc_catalog_id = t_help_doc.help_doc_catalog_id
</select>
<select id="query" resultType="net.lab1024.sa.common.module.support.helpdoc.domain.vo.HelpDocVO">
SELECT
t_help_doc.* ,
t_help_doc_catalog.name as helpDocCatalogName
FROM t_help_doc
left join t_help_doc_catalog on t_help_doc_catalog.help_doc_catalog_id = t_help_doc.help_doc_catalog_id
<where>
<if test="query.helpDocCatalogId != null">
AND t_help_doc.help_doc_catalog_id = #{query.helpDocCatalogId}
</if>
<if test="query.keywords != null and query.keywords !=''">
AND ( INSTR(t_help_doc.title,#{query.keywords})
OR INSTR(t_help_doc.author,#{query.keywords})
)
</if>
<if test="query.createTimeBegin != null">
AND DATE_FORMAT(t_help_doc.create_time, '%Y-%m-%d') &gt;= DATE_FORMAT(#{query.createTimeBegin},
'%Y-%m-%d')
</if>
<if test="query.createTimeEnd != null">
AND DATE_FORMAT(t_help_doc.create_time, '%Y-%m-%d') &lt;= DATE_FORMAT(#{query.createTimeEnd},
'%Y-%m-%d')
</if>
</where>
<if test="query.sortItemList == null or query.sortItemList.size == 0">
ORDER BY t_help_doc.sort ASC, t_help_doc.create_time DESC
</if>
</select>
<update id="updateViewCount">
update t_help_doc
set page_view_count = page_view_count + #{pageViewCountIncrease},
user_view_count = user_view_count + #{userViewCountIncrease}
where help_doc_id = #{helpDocId}
</update>
<select id="queryHelpDocByCatalogId"
resultType="net.lab1024.sa.common.module.support.helpdoc.domain.vo.HelpDocVO">
select *
from t_help_doc
where help_doc_catalog_id = #{helpDocCatalogId}
</select>
<select id="queryHelpDocByRelationId"
resultType="net.lab1024.sa.common.module.support.helpdoc.domain.vo.HelpDocVO">
select t_help_doc.*
from t_help_doc_relation
left join t_help_doc on t_help_doc.help_doc_id = t_help_doc_relation.help_doc_id
where t_help_doc_relation.relation_id = #{relationId}
</select>
<!-- ================================== 关联项目 【子表 关联关系 t_help_doc_relation 】 ================================== -->
<insert id="insertRelation">
insert into t_help_doc_relation
(relation_id, relation_name, help_doc_id)
values
<foreach collection="relationList" separator="," item="item">
( #{item.relationId} ,#{item.relationName}, #{helpDocId} )
</foreach>
</insert>
<delete id="deleteRelation">
delete
from t_help_doc_relation
where help_doc_id = #{helpDocId}
</delete>
<select id="queryRelationByHelpDoc"
resultType="net.lab1024.sa.common.module.support.helpdoc.domain.vo.HelpDocRelationVO">
select *
from t_help_doc_relation
where help_doc_id = #{helpDocId}
</select>
<!-- ================================== 查看记录【子表 查看记录 t_help_doc_view_record】 ================================== -->
<select id="viewRecordCount" resultType="java.lang.Long">
select count(*)
from t_help_doc_view_record
where help_doc_id = #{helpDocId}
and user_id = #{userId}
</select>
<insert id="insertViewRecord">
insert into t_help_doc_view_record (help_doc_id, user_id,user_name, first_ip, first_user_agent, page_view_count)
values (#{helpDocId}, #{userId},#{userName}, #{ip}, #{userAgent}, #{pageViewCount})
</insert>
<update id="updateViewRecord">
update t_help_doc_view_record
set page_view_count = page_view_count + 1,
last_ip = #{ip},
last_user_agent = #{userAgent}
where help_doc_id = #{helpDocId}
and user_id = #{userId}
</update>
<select id="queryViewRecordList"
resultType="net.lab1024.sa.common.module.support.helpdoc.domain.vo.HelpDocViewRecordVO">
select *
from t_help_doc_view_record
where
help_doc_id = #{queryForm.helpDocId}
<if test="queryForm.keywords != null and queryForm.keywords !=''">
AND (
INSTR(user_name,#{queryForm.keywords})
OR INSTR(first_ip,#{queryForm.keywords})
OR INSTR(first_user_agent,#{queryForm.keywords})
OR INSTR(last_ip,#{queryForm.keywords})
OR INSTR(last_user_agent,#{queryForm.keywords})
)
</if>
<if test="queryForm.userId != null ">
and user_id = #{queryForm.userId}
</if>
order by update_time desc,create_time desc
</select>
</mapper>

View File

@@ -0,0 +1,37 @@
<?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="net.lab1024.sa.common.module.support.loginlog.LoginLogDao">
<select id="queryByPage" resultType="net.lab1024.sa.common.module.support.loginlog.domain.LoginLogVO">
select
*
from t_login_log
<where>
<if test="query.startDate != null and query.startDate != ''">
AND DATE_FORMAT(create_time, '%Y-%m-%d') &gt;= #{query.startDate}
</if>
<if test="query.endDate != null and query.endDate != ''">
AND DATE_FORMAT(create_time, '%Y-%m-%d') &lt;= #{query.endDate}
</if>
<if test="query.userName != null and query.userName != ''">
AND INSTR(user_name,#{query.userName})
</if>
<if test="query.ip != null">
AND INSTR(login_ip,#{query.ip})
</if>
</where>
order by create_time desc
</select>
<select id="queryLastByUserId" resultType="net.lab1024.sa.common.module.support.loginlog.domain.LoginLogVO">
select
*
from t_login_log
where
user_id = #{userId}
and user_type = #{userType}
order by create_time desc
limit 1
</select>
</mapper>

View File

@@ -0,0 +1,37 @@
<?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="net.lab1024.sa.common.module.support.operatelog.OperateLogDao">
<select id="queryByPage" resultType="net.lab1024.sa.common.module.support.operatelog.domain.OperateLogEntity">
select
*
from t_operate_log
<where>
<if test="query.startDate != null and query.startDate != ''">
AND DATE_FORMAT(create_time, '%Y-%m-%d') &gt;= #{query.startDate}
</if>
<if test="query.endDate != null and query.endDate != ''">
AND DATE_FORMAT(create_time, '%Y-%m-%d') &lt;= #{query.endDate}
</if>
<if test="query.userName != null and query.userName != ''">
AND INSTR(operate_user_name,#{query.userName})
</if>
<if test="query.successFlag != null">
AND success_flag = #{query.successFlag}
</if>
</where>
order by create_time desc
</select>
<delete id="deleteById">
delete from t_operate_log where id = #{id}
</delete>
<delete id="deleteByIds">
delete from t_operate_log where id in
<foreach collection="idList" open="(" close=")" separator="," item="item">
#{item}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,10 @@
<?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="net.lab1024.sa.common.module.support.reload.dao.ReloadItemDao">
<!-- 查询reload列表 -->
<select id="query" resultType="net.lab1024.sa.common.module.support.reload.domain.ReloadItemVO">
SELECT tag,args,identification,update_time,create_time FROM t_reload_item
</select>
</mapper>

View File

@@ -0,0 +1,10 @@
<?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="net.lab1024.sa.common.module.support.reload.dao.ReloadResultDao">
<!-- 查询reload列表 -->
<select id="query" resultType="net.lab1024.sa.common.module.support.reload.domain.ReloadResultVO">
SELECT tag, identification, args, result, exception, create_time FROM t_reload_result where tag = #{tag} order by create_time desc
</select>
</mapper>

View File

@@ -0,0 +1,21 @@
<?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="net.lab1024.sa.common.module.support.serialnumber.dao.SerialNumberDao">
<update id="updateLastNumberAndTime">
update t_serial_number
set
last_number = #{lastNumber},
last_time = #{lastTime}
where
serial_number_id = #{serialNumberId}
</update>
<!-- 查询最后生成记录 -->
<select id="selectForUpdate" resultType="net.lab1024.sa.common.module.support.serialnumber.domain.SerialNumberEntity">
select * from t_serial_number where serial_number_id = #{serialNumberId} for update
</select>
</mapper>

View File

@@ -0,0 +1,32 @@
<?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="net.lab1024.sa.common.module.support.serialnumber.dao.SerialNumberRecordDao">
<update id="updateRecord">
update t_serial_number_record
set last_number = #{lastNumber},
count = count + #{count}
where
serial_number_id = #{serialNumberId}
and
record_date = #{recordDate}
</update>
<select id="selectRecordIdBySerialNumberIdAndDate" resultType="java.lang.Long">
select serial_number_record_id
from t_serial_number_record
where
serial_number_id = #{serialNumberId}
and
record_date = #{recordDate}
</select>
<select id="query"
resultType="net.lab1024.sa.common.module.support.serialnumber.domain.SerialNumberRecordEntity">
select * from t_serial_number_record
where serial_number_id = #{queryForm.serialNumberId}
order by last_time desc
</select>
</mapper>

View File

@@ -0,0 +1,18 @@
<?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="net.lab1024.sa.common.module.support.table.TableColumnDao">
<delete id="delete">
delete
from t_table_column
where user_id = #{userId}
and table_id = #{tableId}
</delete>
<select id="selectByUserIdAndTableId"
resultType="net.lab1024.sa.common.module.support.table.domain.TableColumnEntity">
select *
from t_table_column
where user_id = #{userId}
and table_id = #{tableId}
</select>
</mapper>