Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6856106d
authored
Jun 25, 2021
by
黄小葱
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改e盾定时任务同步数据
1 parent
60a261dc
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
126 additions
and
0 deletions
src/main/java/cn/com/glsx/admin/modules/entity/TransAccountData.java
src/main/java/cn/com/glsx/admin/modules/mapper/TransAccountDataMapper.java
src/main/resources/mapper/TransAccountDataMapper.xml
src/main/java/cn/com/glsx/admin/modules/entity/TransAccountData.java
0 → 100644
View file @
6856106
package
cn
.
com
.
glsx
.
admin
.
modules
.
entity
;
import
com.glsx.plat.mybatis.base.BaseEntity
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.*
;
@Data
@Table
(
name
=
"t_eshield_transdata"
)
public
class
TransAccountData
extends
BaseEntity
{
/**
* 帐号类型(角色)
*/
@Column
(
name
=
"account_type"
)
private
String
accountType
;
/**
* 帐号类型
*/
@Column
(
name
=
"shop_type"
)
private
String
shopType
;
/**
* 角色名称
*/
@Column
(
name
=
"roleName"
)
private
String
rolename
;
/**
* e盾账号id
*/
@Column
(
name
=
"loginUserId"
)
private
Integer
loginuserid
;
/**
* e盾账号名称
*/
private
String
username
;
/**
* e盾账号说明
*/
@Column
(
name
=
"userRemark"
)
private
String
userremark
;
/**
* (0:无关系;1:分类ID;2:用户ID)
*/
private
Byte
type
;
/**
* 分组/分类/车辆id
*/
@Column
(
name
=
"typeVal"
)
private
String
typeval
;
/**
* 分类id
*/
@Column
(
name
=
"class_id"
)
private
Integer
classId
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/admin/modules/mapper/TransAccountDataMapper.java
0 → 100644
View file @
6856106
package
cn
.
com
.
glsx
.
admin
.
modules
.
mapper
;
import
cn.com.glsx.admin.modules.entity.TransAccountData
;
import
com.glsx.plat.mybatis.mapper.CommonBaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
@Mapper
public
interface
TransAccountDataMapper
extends
CommonBaseMapper
<
TransAccountData
>
{
/**
* 根据分类查找账户信息
* @param classId
* @return
*/
TransAccountData
getAccountByClassId
(
@Param
(
"classId"
)
Integer
classId
);
}
\ No newline at end of file
\ No newline at end of file
src/main/resources/mapper/TransAccountDataMapper.xml
0 → 100644
View file @
6856106
<?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=
"cn.com.glsx.admin.modules.mapper.TransAccountDataMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.admin.modules.entity.TransAccountData"
>
<!--
WARNING - @mbg.generated
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"account_type"
jdbcType=
"VARCHAR"
property=
"accountType"
/>
<result
column=
"shop_type"
jdbcType=
"VARCHAR"
property=
"shopType"
/>
<result
column=
"roleName"
jdbcType=
"VARCHAR"
property=
"rolename"
/>
<result
column=
"loginUserId"
jdbcType=
"INTEGER"
property=
"loginuserid"
/>
<result
column=
"username"
jdbcType=
"VARCHAR"
property=
"username"
/>
<result
column=
"userRemark"
jdbcType=
"VARCHAR"
property=
"userremark"
/>
<result
column=
"type"
jdbcType=
"TINYINT"
property=
"type"
/>
<result
column=
"typeVal"
jdbcType=
"VARCHAR"
property=
"typeval"
/>
<result
column=
"class_id"
jdbcType=
"INTEGER"
property=
"classId"
/>
<result
column=
"del_flag"
jdbcType=
"TINYINT"
property=
"delFlag"
/>
<result
column=
"created_date"
jdbcType=
"TIMESTAMP"
property=
"createdDate"
/>
<result
column=
"created_by"
jdbcType=
"INTEGER"
property=
"createdBy"
/>
<result
column=
"updated_date"
jdbcType=
"TIMESTAMP"
property=
"updatedDate"
/>
<result
column=
"updated_by"
jdbcType=
"INTEGER"
property=
"updatedBy"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
<!--
WARNING - @mbg.generated
-->
id, account_type, shop_type, roleName, loginUserId, username, userRemark, `type`,
typeVal, class_id, del_flag, created_date, created_by, updated_date, updated_by
</sql>
<select
id=
"getAccountByClassId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from t_eshield_transdata tet
where tet.del_flag = 0
<if
test=
"classId != null"
>
and tet.class_id = #{classId}
</if>
</select>
</mapper>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment