Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-platform-auth
Commits
1ea4ad04
Commit
1ea4ad04
authored
Sep 18, 2019
by
314581947
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交初始化文件
parent
58369355
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
1526 additions
and
190 deletions
+1526
-190
ResourceDTO.java
...-auth-api/src/main/java/com/gic/auth/dto/ResourceDTO.java
+34
-16
TabAuditedGroupMapper.java
...n/java/com/gic/auth/dao/mapper/TabAuditedGroupMapper.java
+54
-0
TabAuditedGroupUserRelMapper.java
...com/gic/auth/dao/mapper/TabAuditedGroupUserRelMapper.java
+54
-0
TabAuditorAuditedGroupRelMapper.java
.../gic/auth/dao/mapper/TabAuditorAuditedGroupRelMapper.java
+54
-0
TabAuditorMapper.java
...c/main/java/com/gic/auth/dao/mapper/TabAuditorMapper.java
+54
-0
TabAuditorProjectRelMapper.java
...a/com/gic/auth/dao/mapper/TabAuditorProjectRelMapper.java
+54
-0
TabAuditedGroup.java
...ce/src/main/java/com/gic/auth/entity/TabAuditedGroup.java
+74
-0
TabAuditedGroupUserRel.java
...main/java/com/gic/auth/entity/TabAuditedGroupUserRel.java
+87
-0
TabAuditor.java
...service/src/main/java/com/gic/auth/entity/TabAuditor.java
+126
-0
TabAuditorAuditedGroupRel.java
...n/java/com/gic/auth/entity/TabAuditorAuditedGroupRel.java
+87
-0
TabAuditorProjectRel.java
...c/main/java/com/gic/auth/entity/TabAuditorProjectRel.java
+87
-0
TabSysResource.java
...ice/src/main/java/com/gic/auth/entity/TabSysResource.java
+177
-163
TabAuditedGroupMapper.xml
...rvice/src/main/resources/mapper/TabAuditedGroupMapper.xml
+96
-0
TabAuditedGroupUserRelMapper.xml
...rc/main/resources/mapper/TabAuditedGroupUserRelMapper.xml
+107
-0
TabAuditorAuditedGroupRelMapper.xml
...main/resources/mapper/TabAuditorAuditedGroupRelMapper.xml
+108
-0
TabAuditorMapper.xml
...th-service/src/main/resources/mapper/TabAuditorMapper.xml
+143
-0
TabAuditorProjectRelMapper.xml
.../src/main/resources/mapper/TabAuditorProjectRelMapper.xml
+107
-0
TabSysResourceMapper.xml
...ervice/src/main/resources/mapper/TabSysResourceMapper.xml
+23
-11
No files found.
gic-platform-auth-api/src/main/java/com/gic/auth/dto/ResourceDTO.java
View file @
1ea4ad04
...
...
@@ -46,14 +46,32 @@ public class ResourceDTO implements Serializable {
private
Long
storeResource
;
/**
* 商品资源
* 订单资源
[
{
"channel":1, // 渠道 1:线下门店, 2:达摩微商城, 3:微盟微商城
"storeContent":1 // 门店id或门店选择器id, 多个逗号隔开
}
]
*/
private
Long
goods
Resource
;
private
String
order
Resource
;
/**
* 订单资源
* 应用资源
[
{
appId:1, // 应用id
appName:微商城 // 应用名称
child:[
appId: 10, // 子应用id
appName: 短信发送 // 子应用名称
]
}
]
*/
private
Long
orderResource
;
private
String
appResource
;
private
Integer
userResourceCount
;
public
Integer
getResourceId
()
{
...
...
@@ -112,27 +130,27 @@ public class ResourceDTO implements Serializable {
this
.
storeResource
=
storeResource
;
}
public
Long
getGoods
Resource
()
{
return
goods
Resource
;
public
String
getOrder
Resource
()
{
return
order
Resource
;
}
public
void
set
GoodsResource
(
Long
goods
Resource
)
{
this
.
goodsResource
=
goods
Resource
;
public
void
set
OrderResource
(
String
order
Resource
)
{
this
.
orderResource
=
order
Resource
;
}
public
void
setUserResourceCount
(
Integer
userResourceCount
)
{
this
.
userResourceCount
=
userResourceCount
;
public
String
getAppResource
(
)
{
return
appResource
;
}
public
Integer
getUserResourceCount
(
)
{
return
userResourceCount
;
public
void
setAppResource
(
String
appResource
)
{
this
.
appResource
=
appResource
;
}
public
Long
getOrderResource
()
{
return
orderResource
;
public
Integer
getUserResourceCount
()
{
return
userResourceCount
;
}
public
void
set
OrderResource
(
Long
orderResource
)
{
this
.
orderResource
=
orderResource
;
public
void
set
UserResourceCount
(
Integer
userResourceCount
)
{
this
.
userResourceCount
=
userResourceCount
;
}
}
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabAuditedGroupMapper.java
0 → 100644
View file @
1ea4ad04
package
com
.
gic
.
auth
.
dao
.
mapper
;
import
com.gic.auth.entity.TabAuditedGroup
;
public
interface
TabAuditedGroupMapper
{
/**
* 根据主键删除
*
* @param auditedGroupId 主键
* @return 更新条目数
*/
int
deleteByPrimaryKey
(
Integer
auditedGroupId
);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insert
(
TabAuditedGroup
record
);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insertSelective
(
TabAuditedGroup
record
);
/**
* 根据主键查询
*
* @param auditedGroupId 主键
* @return 实体对象
*/
TabAuditedGroup
selectByPrimaryKey
(
Integer
auditedGroupId
);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKeySelective
(
TabAuditedGroup
record
);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKey
(
TabAuditedGroup
record
);
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabAuditedGroupUserRelMapper.java
0 → 100644
View file @
1ea4ad04
package
com
.
gic
.
auth
.
dao
.
mapper
;
import
com.gic.auth.entity.TabAuditedGroupUserRel
;
public
interface
TabAuditedGroupUserRelMapper
{
/**
* 根据主键删除
*
* @param auditedGroupUserRelId 主键
* @return 更新条目数
*/
int
deleteByPrimaryKey
(
Integer
auditedGroupUserRelId
);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insert
(
TabAuditedGroupUserRel
record
);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insertSelective
(
TabAuditedGroupUserRel
record
);
/**
* 根据主键查询
*
* @param auditedGroupUserRelId 主键
* @return 实体对象
*/
TabAuditedGroupUserRel
selectByPrimaryKey
(
Integer
auditedGroupUserRelId
);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKeySelective
(
TabAuditedGroupUserRel
record
);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKey
(
TabAuditedGroupUserRel
record
);
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabAuditorAuditedGroupRelMapper.java
0 → 100644
View file @
1ea4ad04
package
com
.
gic
.
auth
.
dao
.
mapper
;
import
com.gic.auth.entity.TabAuditorAuditedGroupRel
;
public
interface
TabAuditorAuditedGroupRelMapper
{
/**
* 根据主键删除
*
* @param auditorAuditedGroupRelId 主键
* @return 更新条目数
*/
int
deleteByPrimaryKey
(
Integer
auditorAuditedGroupRelId
);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insert
(
TabAuditorAuditedGroupRel
record
);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insertSelective
(
TabAuditorAuditedGroupRel
record
);
/**
* 根据主键查询
*
* @param auditorAuditedGroupRelId 主键
* @return 实体对象
*/
TabAuditorAuditedGroupRel
selectByPrimaryKey
(
Integer
auditorAuditedGroupRelId
);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKeySelective
(
TabAuditorAuditedGroupRel
record
);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKey
(
TabAuditorAuditedGroupRel
record
);
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabAuditorMapper.java
0 → 100644
View file @
1ea4ad04
package
com
.
gic
.
auth
.
dao
.
mapper
;
import
com.gic.auth.entity.TabAuditor
;
public
interface
TabAuditorMapper
{
/**
* 根据主键删除
*
* @param auditorId 主键
* @return 更新条目数
*/
int
deleteByPrimaryKey
(
Integer
auditorId
);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insert
(
TabAuditor
record
);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insertSelective
(
TabAuditor
record
);
/**
* 根据主键查询
*
* @param auditorId 主键
* @return 实体对象
*/
TabAuditor
selectByPrimaryKey
(
Integer
auditorId
);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKeySelective
(
TabAuditor
record
);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKey
(
TabAuditor
record
);
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/dao/mapper/TabAuditorProjectRelMapper.java
0 → 100644
View file @
1ea4ad04
package
com
.
gic
.
auth
.
dao
.
mapper
;
import
com.gic.auth.entity.TabAuditorProjectRel
;
public
interface
TabAuditorProjectRelMapper
{
/**
* 根据主键删除
*
* @param auditorProjectRelId 主键
* @return 更新条目数
*/
int
deleteByPrimaryKey
(
Integer
auditorProjectRelId
);
/**
* 插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insert
(
TabAuditorProjectRel
record
);
/**
* 动态插入一条记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
insertSelective
(
TabAuditorProjectRel
record
);
/**
* 根据主键查询
*
* @param auditorProjectRelId 主键
* @return 实体对象
*/
TabAuditorProjectRel
selectByPrimaryKey
(
Integer
auditorProjectRelId
);
/**
* 根据主键动态更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKeySelective
(
TabAuditorProjectRel
record
);
/**
* 根据主键更新记录
*
* @param record 实体对象
* @return 更新条目数
*/
int
updateByPrimaryKey
(
TabAuditorProjectRel
record
);
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/entity/TabAuditedGroup.java
0 → 100644
View file @
1ea4ad04
package
com
.
gic
.
auth
.
entity
;
import
java.util.Date
;
/**
* tab_audited_group
*/
public
class
TabAuditedGroup
{
/**
*
*/
private
Integer
auditedGroupId
;
/**
* 受审组name
*/
private
String
auditedGroupName
;
/**
*
*/
private
Integer
status
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
public
Integer
getAuditedGroupId
()
{
return
auditedGroupId
;
}
public
void
setAuditedGroupId
(
Integer
auditedGroupId
)
{
this
.
auditedGroupId
=
auditedGroupId
;
}
public
String
getAuditedGroupName
()
{
return
auditedGroupName
;
}
public
void
setAuditedGroupName
(
String
auditedGroupName
)
{
this
.
auditedGroupName
=
auditedGroupName
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/entity/TabAuditedGroupUserRel.java
0 → 100644
View file @
1ea4ad04
package
com
.
gic
.
auth
.
entity
;
import
java.util.Date
;
/**
* tab_audited_group_user_rel
*/
public
class
TabAuditedGroupUserRel
{
/**
*
*/
private
Integer
auditedGroupUserRelId
;
/**
* 受审组id
*/
private
Integer
auditedGroupId
;
/**
* 管理员id
*/
private
Integer
userId
;
/**
*
*/
private
Integer
status
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
public
Integer
getAuditedGroupUserRelId
()
{
return
auditedGroupUserRelId
;
}
public
void
setAuditedGroupUserRelId
(
Integer
auditedGroupUserRelId
)
{
this
.
auditedGroupUserRelId
=
auditedGroupUserRelId
;
}
public
Integer
getAuditedGroupId
()
{
return
auditedGroupId
;
}
public
void
setAuditedGroupId
(
Integer
auditedGroupId
)
{
this
.
auditedGroupId
=
auditedGroupId
;
}
public
Integer
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/entity/TabAuditor.java
0 → 100644
View file @
1ea4ad04
package
com
.
gic
.
auth
.
entity
;
import
java.util.Date
;
/**
* tab_auditor
*/
public
class
TabAuditor
{
/**
*
*/
private
Integer
auditorId
;
/**
*
*/
private
Integer
enterpriseId
;
/**
* 审核员姓名
*/
private
String
auditorName
;
/**
* 手机号
*/
private
String
phone
;
/**
* 微信openid
*/
private
String
openid
;
/**
* 审核员是否在使用中, 1:使用中, 0:未使用
*/
private
Integer
isUse
;
/**
*
*/
private
Integer
status
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
public
Integer
getAuditorId
()
{
return
auditorId
;
}
public
void
setAuditorId
(
Integer
auditorId
)
{
this
.
auditorId
=
auditorId
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getAuditorName
()
{
return
auditorName
;
}
public
void
setAuditorName
(
String
auditorName
)
{
this
.
auditorName
=
auditorName
;
}
public
String
getPhone
()
{
return
phone
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getOpenid
()
{
return
openid
;
}
public
void
setOpenid
(
String
openid
)
{
this
.
openid
=
openid
;
}
public
Integer
getIsUse
()
{
return
isUse
;
}
public
void
setIsUse
(
Integer
isUse
)
{
this
.
isUse
=
isUse
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/entity/TabAuditorAuditedGroupRel.java
0 → 100644
View file @
1ea4ad04
package
com
.
gic
.
auth
.
entity
;
import
java.util.Date
;
/**
* tab_auditor_audited_group_rel
*/
public
class
TabAuditorAuditedGroupRel
{
/**
*
*/
private
Integer
auditorAuditedGroupRelId
;
/**
* 审核员id
*/
private
Integer
auditorId
;
/**
* 受审组id
*/
private
Integer
auditedGroupId
;
/**
*
*/
private
Integer
status
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
public
Integer
getAuditorAuditedGroupRelId
()
{
return
auditorAuditedGroupRelId
;
}
public
void
setAuditorAuditedGroupRelId
(
Integer
auditorAuditedGroupRelId
)
{
this
.
auditorAuditedGroupRelId
=
auditorAuditedGroupRelId
;
}
public
Integer
getAuditorId
()
{
return
auditorId
;
}
public
void
setAuditorId
(
Integer
auditorId
)
{
this
.
auditorId
=
auditorId
;
}
public
Integer
getAuditedGroupId
()
{
return
auditedGroupId
;
}
public
void
setAuditedGroupId
(
Integer
auditedGroupId
)
{
this
.
auditedGroupId
=
auditedGroupId
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/entity/TabAuditorProjectRel.java
0 → 100644
View file @
1ea4ad04
package
com
.
gic
.
auth
.
entity
;
import
java.util.Date
;
/**
* tab_auditor_project_rel
*/
public
class
TabAuditorProjectRel
{
/**
*
*/
private
Integer
auditorProjectRelId
;
/**
* 审核员
*/
private
Integer
auditorId
;
/**
* 项目
*/
private
Integer
projectId
;
/**
*
*/
private
Integer
status
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
public
Integer
getAuditorProjectRelId
()
{
return
auditorProjectRelId
;
}
public
void
setAuditorProjectRelId
(
Integer
auditorProjectRelId
)
{
this
.
auditorProjectRelId
=
auditorProjectRelId
;
}
public
Integer
getAuditorId
()
{
return
auditorId
;
}
public
void
setAuditorId
(
Integer
auditorId
)
{
this
.
auditorId
=
auditorId
;
}
public
Integer
getProjectId
()
{
return
projectId
;
}
public
void
setProjectId
(
Integer
projectId
)
{
this
.
projectId
=
projectId
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
}
\ No newline at end of file
gic-platform-auth-service/src/main/java/com/gic/auth/entity/TabSysResource.java
View file @
1ea4ad04
package
com
.
gic
.
auth
.
entity
;
import
java.util.Date
;
/**
* tab_sys_resource
*/
public
class
TabSysResource
{
/**
*
*/
private
Integer
resourceId
;
/**
* 资源名称
*/
private
String
resourceName
;
/**
*
*/
private
Integer
enterpriseId
;
/**
* 会员卡资源控件id
*/
private
Long
memberCardResource
;
/**
* 服务号资源
*/
private
Long
fwhResource
;
/**
* 小程序资源
*/
private
Long
appletResource
;
/**
* 门店资源
*/
private
Long
storeResource
;
/**
* 商品资源
*/
private
Long
goodsResource
;
/**
* 订单资源
*/
private
Long
orderResource
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
/**
*
*/
private
Integer
status
;
public
Integer
getResourceId
()
{
return
resourceId
;
}
public
void
setResourceId
(
Integer
resourceId
)
{
this
.
resourceId
=
resourceId
;
}
public
String
getResourceName
()
{
return
resourceName
;
}
public
void
setResourceName
(
String
resourceName
)
{
this
.
resourceName
=
resourceName
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Long
getMemberCardResource
()
{
return
memberCardResource
;
}
public
void
setMemberCardResource
(
Long
memberCardResource
)
{
this
.
memberCardResource
=
memberCardResource
;
}
public
Long
getFwhResource
()
{
return
fwhResource
;
}
public
void
setFwhResource
(
Long
fwhResource
)
{
this
.
fwhResource
=
fwhResource
;
}
public
Long
getAppletResource
()
{
return
appletResource
;
}
public
void
setAppletResource
(
Long
appletResource
)
{
this
.
appletResource
=
appletResource
;
}
public
Long
getStoreResource
()
{
return
storeResource
;
}
public
void
setStoreResource
(
Long
storeResource
)
{
this
.
storeResource
=
storeResource
;
}
public
Long
getGoodsResource
()
{
return
goodsResource
;
}
public
void
setGoodsResource
(
Long
goodsResource
)
{
this
.
goodsResource
=
goodsResource
;
}
public
Long
getOrderResource
()
{
return
orderResource
;
}
public
void
setOrderResource
(
Long
orderResource
)
{
this
.
orderResource
=
orderResource
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
package
com
.
gic
.
auth
.
entity
;
import
java.util.Date
;
/**
* tab_sys_resource
*/
public
class
TabSysResource
{
/**
*
*/
private
Integer
resourceId
;
/**
* 资源名称
*/
private
String
resourceName
;
/**
*
*/
private
Integer
enterpriseId
;
/**
* 会员卡资源控件id
*/
private
Long
memberCardResource
;
/**
* 服务号资源
*/
private
Long
fwhResource
;
/**
* 小程序资源
*/
private
Long
appletResource
;
/**
* 门店资源
*/
private
Long
storeResource
;
/**
* 商品资源
*/
private
Long
goodsResource
;
/**
* 订单资源 [ { "channel":1, // 渠道 1:线下门店, 2:达摩微商城, 3:微盟微商城 "storeContent":1 // 门店id或门店选择器id, 多个逗号隔开 } ]
*/
private
String
orderResource
;
/**
* 应用资源 [ { appId:1, // 应用id appName:微商城 // 应用名称 child:[ appId: 10, // 子应用id appName: 短信发送 // 子应用名称 ] } ]
*/
private
String
appResource
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
/**
*
*/
private
Integer
status
;
public
Integer
getResourceId
()
{
return
resourceId
;
}
public
void
setResourceId
(
Integer
resourceId
)
{
this
.
resourceId
=
resourceId
;
}
public
String
getResourceName
()
{
return
resourceName
;
}
public
void
setResourceName
(
String
resourceName
)
{
this
.
resourceName
=
resourceName
;
}
public
Integer
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
Integer
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
Long
getMemberCardResource
()
{
return
memberCardResource
;
}
public
void
setMemberCardResource
(
Long
memberCardResource
)
{
this
.
memberCardResource
=
memberCardResource
;
}
public
Long
getFwhResource
()
{
return
fwhResource
;
}
public
void
setFwhResource
(
Long
fwhResource
)
{
this
.
fwhResource
=
fwhResource
;
}
public
Long
getAppletResource
()
{
return
appletResource
;
}
public
void
setAppletResource
(
Long
appletResource
)
{
this
.
appletResource
=
appletResource
;
}
public
Long
getStoreResource
()
{
return
storeResource
;
}
public
void
setStoreResource
(
Long
storeResource
)
{
this
.
storeResource
=
storeResource
;
}
public
Long
getGoodsResource
()
{
return
goodsResource
;
}
public
void
setGoodsResource
(
Long
goodsResource
)
{
this
.
goodsResource
=
goodsResource
;
}
public
String
getOrderResource
()
{
return
orderResource
;
}
public
void
setOrderResource
(
String
orderResource
)
{
this
.
orderResource
=
orderResource
;
}
public
String
getAppResource
()
{
return
appResource
;
}
public
void
setAppResource
(
String
appResource
)
{
this
.
appResource
=
appResource
;
}
public
Date
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Date
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
void
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
}
}
\ No newline at end of file
...
...
gic-platform-auth-service/src/main/resources/mapper/TabAuditedGroupMapper.xml
0 → 100644
View file @
1ea4ad04
<?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=
"com.gic.auth.dao.mapper.TabAuditedGroupMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.auth.entity.TabAuditedGroup"
>
<id
column=
"audited_group_id"
jdbcType=
"INTEGER"
property=
"auditedGroupId"
/>
<result
column=
"audited_group_name"
jdbcType=
"VARCHAR"
property=
"auditedGroupName"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
audited_group_id, audited_group_name, status, create_time, update_time
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_audited_group
where audited_group_id = #{auditedGroupId,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from tab_audited_group
where audited_group_id = #{auditedGroupId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.auth.entity.TabAuditedGroup"
>
insert into tab_audited_group (audited_group_id, audited_group_name,
status, create_time, update_time
)
values (#{auditedGroupId,jdbcType=INTEGER}, #{auditedGroupName,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.auth.entity.TabAuditedGroup"
>
insert into tab_audited_group
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditedGroupId != null"
>
audited_group_id,
</if>
<if
test=
"auditedGroupName != null"
>
audited_group_name,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditedGroupId != null"
>
#{auditedGroupId,jdbcType=INTEGER},
</if>
<if
test=
"auditedGroupName != null"
>
#{auditedGroupName,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.auth.entity.TabAuditedGroup"
>
update tab_audited_group
<set>
<if
test=
"auditedGroupName != null"
>
audited_group_name = #{auditedGroupName,jdbcType=VARCHAR},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where audited_group_id = #{auditedGroupId,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.auth.entity.TabAuditedGroup"
>
update tab_audited_group
set audited_group_name = #{auditedGroupName,jdbcType=VARCHAR},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where audited_group_id = #{auditedGroupId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
gic-platform-auth-service/src/main/resources/mapper/TabAuditedGroupUserRelMapper.xml
0 → 100644
View file @
1ea4ad04
<?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=
"com.gic.auth.dao.mapper.TabAuditedGroupUserRelMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.auth.entity.TabAuditedGroupUserRel"
>
<id
column=
"audited_group_user_rel_id"
jdbcType=
"INTEGER"
property=
"auditedGroupUserRelId"
/>
<result
column=
"audited_group_id"
jdbcType=
"INTEGER"
property=
"auditedGroupId"
/>
<result
column=
"user_id"
jdbcType=
"INTEGER"
property=
"userId"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
audited_group_user_rel_id, audited_group_id, user_id, status, create_time, update_time
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_audited_group_user_rel
where audited_group_user_rel_id = #{auditedGroupUserRelId,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from tab_audited_group_user_rel
where audited_group_user_rel_id = #{auditedGroupUserRelId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.auth.entity.TabAuditedGroupUserRel"
>
insert into tab_audited_group_user_rel (audited_group_user_rel_id, audited_group_id,
user_id, status, create_time,
update_time)
values (#{auditedGroupUserRelId,jdbcType=INTEGER}, #{auditedGroupId,jdbcType=INTEGER},
#{userId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.auth.entity.TabAuditedGroupUserRel"
>
insert into tab_audited_group_user_rel
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditedGroupUserRelId != null"
>
audited_group_user_rel_id,
</if>
<if
test=
"auditedGroupId != null"
>
audited_group_id,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditedGroupUserRelId != null"
>
#{auditedGroupUserRelId,jdbcType=INTEGER},
</if>
<if
test=
"auditedGroupId != null"
>
#{auditedGroupId,jdbcType=INTEGER},
</if>
<if
test=
"userId != null"
>
#{userId,jdbcType=INTEGER},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.auth.entity.TabAuditedGroupUserRel"
>
update tab_audited_group_user_rel
<set>
<if
test=
"auditedGroupId != null"
>
audited_group_id = #{auditedGroupId,jdbcType=INTEGER},
</if>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=INTEGER},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where audited_group_user_rel_id = #{auditedGroupUserRelId,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.auth.entity.TabAuditedGroupUserRel"
>
update tab_audited_group_user_rel
set audited_group_id = #{auditedGroupId,jdbcType=INTEGER},
user_id = #{userId,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where audited_group_user_rel_id = #{auditedGroupUserRelId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
gic-platform-auth-service/src/main/resources/mapper/TabAuditorAuditedGroupRelMapper.xml
0 → 100644
View file @
1ea4ad04
<?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=
"com.gic.auth.dao.mapper.TabAuditorAuditedGroupRelMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.auth.entity.TabAuditorAuditedGroupRel"
>
<id
column=
"auditor_audited_group_rel_id"
jdbcType=
"INTEGER"
property=
"auditorAuditedGroupRelId"
/>
<result
column=
"auditor_id"
jdbcType=
"INTEGER"
property=
"auditorId"
/>
<result
column=
"audited_group_id"
jdbcType=
"INTEGER"
property=
"auditedGroupId"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
auditor_audited_group_rel_id, auditor_id, audited_group_id, status, create_time,
update_time
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_auditor_audited_group_rel
where auditor_audited_group_rel_id = #{auditorAuditedGroupRelId,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from tab_auditor_audited_group_rel
where auditor_audited_group_rel_id = #{auditorAuditedGroupRelId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.auth.entity.TabAuditorAuditedGroupRel"
>
insert into tab_auditor_audited_group_rel (auditor_audited_group_rel_id, auditor_id,
audited_group_id, status, create_time,
update_time)
values (#{auditorAuditedGroupRelId,jdbcType=INTEGER}, #{auditorId,jdbcType=INTEGER},
#{auditedGroupId,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.auth.entity.TabAuditorAuditedGroupRel"
>
insert into tab_auditor_audited_group_rel
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditorAuditedGroupRelId != null"
>
auditor_audited_group_rel_id,
</if>
<if
test=
"auditorId != null"
>
auditor_id,
</if>
<if
test=
"auditedGroupId != null"
>
audited_group_id,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditorAuditedGroupRelId != null"
>
#{auditorAuditedGroupRelId,jdbcType=INTEGER},
</if>
<if
test=
"auditorId != null"
>
#{auditorId,jdbcType=INTEGER},
</if>
<if
test=
"auditedGroupId != null"
>
#{auditedGroupId,jdbcType=INTEGER},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.auth.entity.TabAuditorAuditedGroupRel"
>
update tab_auditor_audited_group_rel
<set>
<if
test=
"auditorId != null"
>
auditor_id = #{auditorId,jdbcType=INTEGER},
</if>
<if
test=
"auditedGroupId != null"
>
audited_group_id = #{auditedGroupId,jdbcType=INTEGER},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where auditor_audited_group_rel_id = #{auditorAuditedGroupRelId,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.auth.entity.TabAuditorAuditedGroupRel"
>
update tab_auditor_audited_group_rel
set auditor_id = #{auditorId,jdbcType=INTEGER},
audited_group_id = #{auditedGroupId,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where auditor_audited_group_rel_id = #{auditorAuditedGroupRelId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
gic-platform-auth-service/src/main/resources/mapper/TabAuditorMapper.xml
0 → 100644
View file @
1ea4ad04
<?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=
"com.gic.auth.dao.mapper.TabAuditorMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.auth.entity.TabAuditor"
>
<id
column=
"auditor_id"
jdbcType=
"INTEGER"
property=
"auditorId"
/>
<result
column=
"enterprise_id"
jdbcType=
"INTEGER"
property=
"enterpriseId"
/>
<result
column=
"auditor_name"
jdbcType=
"VARCHAR"
property=
"auditorName"
/>
<result
column=
"phone"
jdbcType=
"VARCHAR"
property=
"phone"
/>
<result
column=
"openid"
jdbcType=
"VARCHAR"
property=
"openid"
/>
<result
column=
"is_use"
jdbcType=
"INTEGER"
property=
"isUse"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
auditor_id, enterprise_id, auditor_name, phone, openid, is_use, status, create_time,
update_time
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_auditor
where auditor_id = #{auditorId,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from tab_auditor
where auditor_id = #{auditorId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.auth.entity.TabAuditor"
>
insert into tab_auditor (auditor_id, enterprise_id, auditor_name,
phone, openid, is_use,
status, create_time, update_time
)
values (#{auditorId,jdbcType=INTEGER}, #{enterpriseId,jdbcType=INTEGER}, #{auditorName,jdbcType=VARCHAR},
#{phone,jdbcType=VARCHAR}, #{openid,jdbcType=VARCHAR}, #{isUse,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.auth.entity.TabAuditor"
>
insert into tab_auditor
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditorId != null"
>
auditor_id,
</if>
<if
test=
"enterpriseId != null"
>
enterprise_id,
</if>
<if
test=
"auditorName != null"
>
auditor_name,
</if>
<if
test=
"phone != null"
>
phone,
</if>
<if
test=
"openid != null"
>
openid,
</if>
<if
test=
"isUse != null"
>
is_use,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditorId != null"
>
#{auditorId,jdbcType=INTEGER},
</if>
<if
test=
"enterpriseId != null"
>
#{enterpriseId,jdbcType=INTEGER},
</if>
<if
test=
"auditorName != null"
>
#{auditorName,jdbcType=VARCHAR},
</if>
<if
test=
"phone != null"
>
#{phone,jdbcType=VARCHAR},
</if>
<if
test=
"openid != null"
>
#{openid,jdbcType=VARCHAR},
</if>
<if
test=
"isUse != null"
>
#{isUse,jdbcType=INTEGER},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.auth.entity.TabAuditor"
>
update tab_auditor
<set>
<if
test=
"enterpriseId != null"
>
enterprise_id = #{enterpriseId,jdbcType=INTEGER},
</if>
<if
test=
"auditorName != null"
>
auditor_name = #{auditorName,jdbcType=VARCHAR},
</if>
<if
test=
"phone != null"
>
phone = #{phone,jdbcType=VARCHAR},
</if>
<if
test=
"openid != null"
>
openid = #{openid,jdbcType=VARCHAR},
</if>
<if
test=
"isUse != null"
>
is_use = #{isUse,jdbcType=INTEGER},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where auditor_id = #{auditorId,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.auth.entity.TabAuditor"
>
update tab_auditor
set enterprise_id = #{enterpriseId,jdbcType=INTEGER},
auditor_name = #{auditorName,jdbcType=VARCHAR},
phone = #{phone,jdbcType=VARCHAR},
openid = #{openid,jdbcType=VARCHAR},
is_use = #{isUse,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where auditor_id = #{auditorId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
gic-platform-auth-service/src/main/resources/mapper/TabAuditorProjectRelMapper.xml
0 → 100644
View file @
1ea4ad04
<?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=
"com.gic.auth.dao.mapper.TabAuditorProjectRelMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.gic.auth.entity.TabAuditorProjectRel"
>
<id
column=
"auditor_project_rel_id"
jdbcType=
"INTEGER"
property=
"auditorProjectRelId"
/>
<result
column=
"auditor_id"
jdbcType=
"INTEGER"
property=
"auditorId"
/>
<result
column=
"project_id"
jdbcType=
"INTEGER"
property=
"projectId"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
auditor_project_rel_id, auditor_id, project_id, status, create_time, update_time
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_auditor_project_rel
where auditor_project_rel_id = #{auditorProjectRelId,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from tab_auditor_project_rel
where auditor_project_rel_id = #{auditorProjectRelId,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"com.gic.auth.entity.TabAuditorProjectRel"
>
insert into tab_auditor_project_rel (auditor_project_rel_id, auditor_id, project_id,
status, create_time, update_time
)
values (#{auditorProjectRelId,jdbcType=INTEGER}, #{auditorId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER},
#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.auth.entity.TabAuditorProjectRel"
>
insert into tab_auditor_project_rel
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditorProjectRelId != null"
>
auditor_project_rel_id,
</if>
<if
test=
"auditorId != null"
>
auditor_id,
</if>
<if
test=
"projectId != null"
>
project_id,
</if>
<if
test=
"status != null"
>
status,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"auditorProjectRelId != null"
>
#{auditorProjectRelId,jdbcType=INTEGER},
</if>
<if
test=
"auditorId != null"
>
#{auditorId,jdbcType=INTEGER},
</if>
<if
test=
"projectId != null"
>
#{projectId,jdbcType=INTEGER},
</if>
<if
test=
"status != null"
>
#{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.gic.auth.entity.TabAuditorProjectRel"
>
update tab_auditor_project_rel
<set>
<if
test=
"auditorId != null"
>
auditor_id = #{auditorId,jdbcType=INTEGER},
</if>
<if
test=
"projectId != null"
>
project_id = #{projectId,jdbcType=INTEGER},
</if>
<if
test=
"status != null"
>
status = #{status,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where auditor_project_rel_id = #{auditorProjectRelId,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.gic.auth.entity.TabAuditorProjectRel"
>
update tab_auditor_project_rel
set auditor_id = #{auditorId,jdbcType=INTEGER},
project_id = #{projectId,jdbcType=INTEGER},
status = #{status,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where auditor_project_rel_id = #{auditorProjectRelId,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
gic-platform-auth-service/src/main/resources/mapper/TabSysResourceMapper.xml
View file @
1ea4ad04
...
...
@@ -10,14 +10,16 @@
<result
column=
"applet_resource"
jdbcType=
"BIGINT"
property=
"appletResource"
/>
<result
column=
"store_resource"
jdbcType=
"BIGINT"
property=
"storeResource"
/>
<result
column=
"goods_resource"
jdbcType=
"BIGINT"
property=
"goodsResource"
/>
<result
column=
"order_resource"
jdbcType=
"BIGINT"
property=
"orderResource"
/>
<result
column=
"order_resource"
jdbcType=
"VARCHAR"
property=
"orderResource"
/>
<result
column=
"app_resource"
jdbcType=
"VARCHAR"
property=
"appResource"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"status"
jdbcType=
"INTEGER"
property=
"status"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
resource_id, resource_name, enterprise_id, member_card_resource, fwh_resource, applet_resource,
store_resource, goods_resource, order_resource, create_time, update_time, status
store_resource, goods_resource, order_resource, app_resource, create_time, update_time,
status
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
...
...
@@ -33,13 +35,13 @@
insert into tab_sys_resource (resource_id, resource_name, enterprise_id,
member_card_resource, fwh_resource, applet_resource,
store_resource, goods_resource, order_resource,
create_time, update_time, status
)
app_resource, create_time, update_time,
status
)
values (#{resourceId,jdbcType=INTEGER}, #{resourceName,jdbcType=VARCHAR}, #{enterpriseId,jdbcType=INTEGER},
#{memberCardResource,jdbcType=BIGINT}, #{fwhResource,jdbcType=BIGINT}, #{appletResource,jdbcType=BIGINT},
#{storeResource,jdbcType=BIGINT}, #{goodsResource,jdbcType=BIGINT}, #{orderResource,jdbcType=
BIGINT
},
#{
createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}
)
#{storeResource,jdbcType=BIGINT}, #{goodsResource,jdbcType=BIGINT}, #{orderResource,jdbcType=
VARCHAR
},
#{
appResource,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER}
)
</insert>
<insert
id=
"insertSelective"
parameterType=
"com.gic.auth.entity.TabSysResource"
>
insert into tab_sys_resource
...
...
@@ -71,6 +73,9 @@
<if
test=
"orderResource != null"
>
order_resource,
</if>
<if
test=
"appResource != null"
>
app_resource,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
...
...
@@ -107,7 +112,10 @@
#{goodsResource,jdbcType=BIGINT},
</if>
<if
test=
"orderResource != null"
>
#{orderResource,jdbcType=BIGINT},
#{orderResource,jdbcType=VARCHAR},
</if>
<if
test=
"appResource != null"
>
#{appResource,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
...
...
@@ -145,7 +153,10 @@
goods_resource = #{goodsResource,jdbcType=BIGINT},
</if>
<if
test=
"orderResource != null"
>
order_resource = #{orderResource,jdbcType=BIGINT},
order_resource = #{orderResource,jdbcType=VARCHAR},
</if>
<if
test=
"appResource != null"
>
app_resource = #{appResource,jdbcType=VARCHAR},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
...
...
@@ -168,7 +179,8 @@
applet_resource = #{appletResource,jdbcType=BIGINT},
store_resource = #{storeResource,jdbcType=BIGINT},
goods_resource = #{goodsResource,jdbcType=BIGINT},
order_resource = #{orderResource,jdbcType=BIGINT},
order_resource = #{orderResource,jdbcType=VARCHAR},
app_resource = #{appResource,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER}
...
...
@@ -205,7 +217,7 @@
from tab_sys_resource
<if
test=
"null != ids"
>
and resource_id in
<foreach
c
ollection=
"ids"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")
"
>
<foreach
c
lose=
")"
collection=
"ids"
index=
"index"
item=
"item"
open=
"("
separator=
",
"
>
#{item}
</foreach>
</if>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment