Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
6e3d4497
Commit
6e3d4497
authored
Jul 04, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:自动生成活码表
parent
14351aba
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
1679 additions
and
0 deletions
+1679
-0
TabHaobanHmClerkRelationMapper.java
...service/dao/mapper/hm/TabHaobanHmClerkRelationMapper.java
+84
-0
TabHaobanHmQrcodeMapper.java
...manage/service/dao/mapper/hm/TabHaobanHmQrcodeMapper.java
+84
-0
TabHaobanHmClerkRelation.java
...an/manage/service/entity/hm/TabHaobanHmClerkRelation.java
+171
-0
TabHaobanHmQrcode.java
...ic/haoban/manage/service/entity/hm/TabHaobanHmQrcode.java
+327
-0
TabHaobanHmClerkRelationService.java
...e/service/service/hm/TabHaobanHmClerkRelationService.java
+56
-0
TabHaobanHmQrcodeService.java
...n/manage/service/service/hm/TabHaobanHmQrcodeService.java
+56
-0
TabHaobanHmClerkRelationServiceImpl.java
.../service/hm/impl/TabHaobanHmClerkRelationServiceImpl.java
+85
-0
TabHaobanHmQrcodeServiceImpl.java
...service/service/hm/impl/TabHaobanHmQrcodeServiceImpl.java
+82
-0
TabHaobanHmClerkRelationMapper.xml
...in/resources/mapper/hm/TabHaobanHmClerkRelationMapper.xml
+257
-0
TabHaobanHmQrcodeMapper.xml
.../src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
+442
-0
HmClerkRelationController.java
...oban/manage/web/controller/HmClerkRelationController.java
+17
-0
HmQrcodeController.java
.../gic/haoban/manage/web/controller/HmQrcodeController.java
+18
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/hm/TabHaobanHmClerkRelationMapper.java
0 → 100644
View file @
6e3d4497
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
.
hm
;
import
com.gic.haoban.manage.service.entity.hm.TabHaobanHmClerkRelation
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.data.domain.Pageable
;
import
java.util.List
;
/**
* 多人活码(TabHaobanHmClerkRelation)表数据库访问层
*
* @author mozhu
* @since 2022-07-04 15:42:20
*/
public
interface
TabHaobanHmClerkRelationMapper
{
/**
* 通过ID查询单条数据
*
* @param relationId 主键
* @return 实例对象
*/
TabHaobanHmClerkRelation
queryById
(
Long
relationId
);
/**
* 查询指定行数据
*
* @param tabHaobanHmClerkRelation 查询条件
* @param pageable 分页对象
* @return 对象列表
*/
List
<
TabHaobanHmClerkRelation
>
queryAllByLimit
(
TabHaobanHmClerkRelation
tabHaobanHmClerkRelation
,
@Param
(
"pageable"
)
Pageable
pageable
);
/**
* 统计总行数
*
* @param tabHaobanHmClerkRelation 查询条件
* @return 总行数
*/
long
count
(
TabHaobanHmClerkRelation
tabHaobanHmClerkRelation
);
/**
* 新增数据
*
* @param tabHaobanHmClerkRelation 实例对象
* @return 影响行数
*/
int
insert
(
TabHaobanHmClerkRelation
tabHaobanHmClerkRelation
);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanHmClerkRelation> 实例对象列表
* @return 影响行数
*/
int
insertBatch
(
@Param
(
"entities"
)
List
<
TabHaobanHmClerkRelation
>
entities
);
/**
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanHmClerkRelation> 实例对象列表
* @return 影响行数
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
*/
int
insertOrUpdateBatch
(
@Param
(
"entities"
)
List
<
TabHaobanHmClerkRelation
>
entities
);
/**
* 修改数据
*
* @param tabHaobanHmClerkRelation 实例对象
* @return 影响行数
*/
int
update
(
TabHaobanHmClerkRelation
tabHaobanHmClerkRelation
);
/**
* 通过主键删除数据
*
* @param relationId 主键
* @return 影响行数
*/
int
deleteById
(
Long
relationId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/hm/TabHaobanHmQrcodeMapper.java
0 → 100644
View file @
6e3d4497
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
.
hm
;
import
com.gic.haoban.manage.service.entity.hm.TabHaobanHmQrcode
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.data.domain.Pageable
;
import
java.util.List
;
/**
* 活码(TabHaobanHmQrcode)表数据库访问层
*
* @author mozhu
* @since 2022-07-04 15:42:20
*/
public
interface
TabHaobanHmQrcodeMapper
{
/**
* 通过ID查询单条数据
*
* @param hbId 主键
* @return 实例对象
*/
TabHaobanHmQrcode
queryById
(
Long
hbId
);
/**
* 查询指定行数据
*
* @param tabHaobanHmQrcode 查询条件
* @param pageable 分页对象
* @return 对象列表
*/
List
<
TabHaobanHmQrcode
>
queryAllByLimit
(
TabHaobanHmQrcode
tabHaobanHmQrcode
,
@Param
(
"pageable"
)
Pageable
pageable
);
/**
* 统计总行数
*
* @param tabHaobanHmQrcode 查询条件
* @return 总行数
*/
long
count
(
TabHaobanHmQrcode
tabHaobanHmQrcode
);
/**
* 新增数据
*
* @param tabHaobanHmQrcode 实例对象
* @return 影响行数
*/
int
insert
(
TabHaobanHmQrcode
tabHaobanHmQrcode
);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanHmQrcode> 实例对象列表
* @return 影响行数
*/
int
insertBatch
(
@Param
(
"entities"
)
List
<
TabHaobanHmQrcode
>
entities
);
/**
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanHmQrcode> 实例对象列表
* @return 影响行数
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
*/
int
insertOrUpdateBatch
(
@Param
(
"entities"
)
List
<
TabHaobanHmQrcode
>
entities
);
/**
* 修改数据
*
* @param tabHaobanHmQrcode 实例对象
* @return 影响行数
*/
int
update
(
TabHaobanHmQrcode
tabHaobanHmQrcode
);
/**
* 通过主键删除数据
*
* @param hbId 主键
* @return 影响行数
*/
int
deleteById
(
Long
hbId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/hm/TabHaobanHmClerkRelation.java
0 → 100644
View file @
6e3d4497
package
com
.
gic
.
haoban
.
manage
.
service
.
entity
.
hm
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 多人活码(TabHaobanHmClerkRelation)实体类
*
* @author mozhu
* @since 2022-07-04 15:42:20
*/
public
class
TabHaobanHmClerkRelation
implements
Serializable
{
private
static
final
long
serialVersionUID
=
277698847715591316L
;
private
Long
relationId
;
private
Long
hmId
;
private
String
wxUserId
;
private
String
wxEnterpriseId
;
private
String
enterpriseId
;
private
String
storeId
;
private
String
storeName
;
private
String
storeCode
;
private
String
clerkId
;
private
String
clerkName
;
private
String
clerkCode
;
/**
* 1正常 0删除
*/
private
Integer
status
;
private
Date
createTime
;
private
Date
updateTime
;
/**
* 是否上限1是0否
*/
private
Integer
overFlag
;
public
Long
getRelationId
()
{
return
relationId
;
}
public
void
setRelationId
(
Long
relationId
)
{
this
.
relationId
=
relationId
;
}
public
Long
getHmId
()
{
return
hmId
;
}
public
void
setHmId
(
Long
hmId
)
{
this
.
hmId
=
hmId
;
}
public
String
getWxUserId
()
{
return
wxUserId
;
}
public
void
setWxUserId
(
String
wxUserId
)
{
this
.
wxUserId
=
wxUserId
;
}
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
}
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
this
.
wxEnterpriseId
=
wxEnterpriseId
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getStoreId
()
{
return
storeId
;
}
public
void
setStoreId
(
String
storeId
)
{
this
.
storeId
=
storeId
;
}
public
String
getStoreName
()
{
return
storeName
;
}
public
void
setStoreName
(
String
storeName
)
{
this
.
storeName
=
storeName
;
}
public
String
getStoreCode
()
{
return
storeCode
;
}
public
void
setStoreCode
(
String
storeCode
)
{
this
.
storeCode
=
storeCode
;
}
public
String
getClerkId
()
{
return
clerkId
;
}
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
String
getClerkName
()
{
return
clerkName
;
}
public
void
setClerkName
(
String
clerkName
)
{
this
.
clerkName
=
clerkName
;
}
public
String
getClerkCode
()
{
return
clerkCode
;
}
public
void
setClerkCode
(
String
clerkCode
)
{
this
.
clerkCode
=
clerkCode
;
}
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
;
}
public
Integer
getOverFlag
()
{
return
overFlag
;
}
public
void
setOverFlag
(
Integer
overFlag
)
{
this
.
overFlag
=
overFlag
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/entity/hm/TabHaobanHmQrcode.java
0 → 100644
View file @
6e3d4497
package
com
.
gic
.
haoban
.
manage
.
service
.
entity
.
hm
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 活码(TabHaobanHmQrcode)实体类
*
* @author mozhu
* @since 2022-07-04 15:42:20
*/
public
class
TabHaobanHmQrcode
implements
Serializable
{
private
static
final
long
serialVersionUID
=
887910678030827375L
;
private
Long
hbId
;
private
String
hmCode
;
/**
* 1单人 2多人
*/
private
Integer
hmType
;
private
String
wxEnterpriseId
;
private
String
enterpriseId
;
private
String
name
;
private
String
creatorId
;
private
String
creatorName
;
private
String
modifierId
;
private
String
modifierName
;
private
Date
createTime
;
private
Date
updateTime
;
/**
* 会员活动标签
*/
private
String
memberLabelId
;
/**
* 1自动通过 0否
*/
private
Integer
passFlag
;
private
String
welcomeId
;
/**
* 0删除 1正常 2作废 3待生效
*/
private
Integer
statusFlag
;
/**
* 当日已加好友数
*/
private
Integer
addNum
;
/**
* 是否达上线 1是0否
*/
private
Integer
overFlag
;
/**
* 微信联系我id
*/
private
String
wxConfigId
;
/**
* 微信联系我二维码
*/
private
String
wxQrcode
;
private
String
wxUserId
;
private
String
storeId
;
private
String
storeName
;
private
String
storeCode
;
private
String
clerkId
;
private
String
clerkName
;
private
String
clerkCode
;
/**
* 多人活码人数
*/
private
Integer
hmUserNum
;
/**
* 活码分组
*/
private
Long
hmGroupId
;
public
Long
getHbId
()
{
return
hbId
;
}
public
void
setHbId
(
Long
hbId
)
{
this
.
hbId
=
hbId
;
}
public
String
getHmCode
()
{
return
hmCode
;
}
public
void
setHmCode
(
String
hmCode
)
{
this
.
hmCode
=
hmCode
;
}
public
Integer
getHmType
()
{
return
hmType
;
}
public
void
setHmType
(
Integer
hmType
)
{
this
.
hmType
=
hmType
;
}
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
}
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
this
.
wxEnterpriseId
=
wxEnterpriseId
;
}
public
String
getEnterpriseId
()
{
return
enterpriseId
;
}
public
void
setEnterpriseId
(
String
enterpriseId
)
{
this
.
enterpriseId
=
enterpriseId
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getCreatorId
()
{
return
creatorId
;
}
public
void
setCreatorId
(
String
creatorId
)
{
this
.
creatorId
=
creatorId
;
}
public
String
getCreatorName
()
{
return
creatorName
;
}
public
void
setCreatorName
(
String
creatorName
)
{
this
.
creatorName
=
creatorName
;
}
public
String
getModifierId
()
{
return
modifierId
;
}
public
void
setModifierId
(
String
modifierId
)
{
this
.
modifierId
=
modifierId
;
}
public
String
getModifierName
()
{
return
modifierName
;
}
public
void
setModifierName
(
String
modifierName
)
{
this
.
modifierName
=
modifierName
;
}
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
String
getMemberLabelId
()
{
return
memberLabelId
;
}
public
void
setMemberLabelId
(
String
memberLabelId
)
{
this
.
memberLabelId
=
memberLabelId
;
}
public
Integer
getPassFlag
()
{
return
passFlag
;
}
public
void
setPassFlag
(
Integer
passFlag
)
{
this
.
passFlag
=
passFlag
;
}
public
String
getWelcomeId
()
{
return
welcomeId
;
}
public
void
setWelcomeId
(
String
welcomeId
)
{
this
.
welcomeId
=
welcomeId
;
}
public
Integer
getStatusFlag
()
{
return
statusFlag
;
}
public
void
setStatusFlag
(
Integer
statusFlag
)
{
this
.
statusFlag
=
statusFlag
;
}
public
Integer
getAddNum
()
{
return
addNum
;
}
public
void
setAddNum
(
Integer
addNum
)
{
this
.
addNum
=
addNum
;
}
public
Integer
getOverFlag
()
{
return
overFlag
;
}
public
void
setOverFlag
(
Integer
overFlag
)
{
this
.
overFlag
=
overFlag
;
}
public
String
getWxConfigId
()
{
return
wxConfigId
;
}
public
void
setWxConfigId
(
String
wxConfigId
)
{
this
.
wxConfigId
=
wxConfigId
;
}
public
String
getWxQrcode
()
{
return
wxQrcode
;
}
public
void
setWxQrcode
(
String
wxQrcode
)
{
this
.
wxQrcode
=
wxQrcode
;
}
public
String
getWxUserId
()
{
return
wxUserId
;
}
public
void
setWxUserId
(
String
wxUserId
)
{
this
.
wxUserId
=
wxUserId
;
}
public
String
getStoreId
()
{
return
storeId
;
}
public
void
setStoreId
(
String
storeId
)
{
this
.
storeId
=
storeId
;
}
public
String
getStoreName
()
{
return
storeName
;
}
public
void
setStoreName
(
String
storeName
)
{
this
.
storeName
=
storeName
;
}
public
String
getStoreCode
()
{
return
storeCode
;
}
public
void
setStoreCode
(
String
storeCode
)
{
this
.
storeCode
=
storeCode
;
}
public
String
getClerkId
()
{
return
clerkId
;
}
public
void
setClerkId
(
String
clerkId
)
{
this
.
clerkId
=
clerkId
;
}
public
String
getClerkName
()
{
return
clerkName
;
}
public
void
setClerkName
(
String
clerkName
)
{
this
.
clerkName
=
clerkName
;
}
public
String
getClerkCode
()
{
return
clerkCode
;
}
public
void
setClerkCode
(
String
clerkCode
)
{
this
.
clerkCode
=
clerkCode
;
}
public
Integer
getHmUserNum
()
{
return
hmUserNum
;
}
public
void
setHmUserNum
(
Integer
hmUserNum
)
{
this
.
hmUserNum
=
hmUserNum
;
}
public
Long
getHmGroupId
()
{
return
hmGroupId
;
}
public
void
setHmGroupId
(
Long
hmGroupId
)
{
this
.
hmGroupId
=
hmGroupId
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/TabHaobanHmClerkRelationService.java
0 → 100644
View file @
6e3d4497
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
hm
;
import
com.gic.haoban.manage.service.entity.hm.TabHaobanHmClerkRelation
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageRequest
;
/**
* 多人活码(TabHaobanHmClerkRelation)表服务接口
*
* @author mozhu
* @since 2022-07-04 15:42:20
*/
public
interface
TabHaobanHmClerkRelationService
{
/**
* 通过ID查询单条数据
*
* @param relationId 主键
* @return 实例对象
*/
TabHaobanHmClerkRelation
queryById
(
Long
relationId
);
/**
* 分页查询
*
* @param tabHaobanHmClerkRelation 筛选条件
* @param pageRequest 分页对象
* @return 查询结果
*/
Page
<
TabHaobanHmClerkRelation
>
queryByPage
(
TabHaobanHmClerkRelation
tabHaobanHmClerkRelation
,
PageRequest
pageRequest
);
/**
* 新增数据
*
* @param tabHaobanHmClerkRelation 实例对象
* @return 实例对象
*/
TabHaobanHmClerkRelation
insert
(
TabHaobanHmClerkRelation
tabHaobanHmClerkRelation
);
/**
* 修改数据
*
* @param tabHaobanHmClerkRelation 实例对象
* @return 实例对象
*/
TabHaobanHmClerkRelation
update
(
TabHaobanHmClerkRelation
tabHaobanHmClerkRelation
);
/**
* 通过主键删除数据
*
* @param relationId 主键
* @return 是否成功
*/
boolean
deleteById
(
Long
relationId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/TabHaobanHmQrcodeService.java
0 → 100644
View file @
6e3d4497
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
hm
;
import
com.gic.haoban.manage.service.entity.hm.TabHaobanHmQrcode
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageRequest
;
/**
* 活码(TabHaobanHmQrcode)表服务接口
*
* @author mozhu
* @since 2022-07-04 15:42:20
*/
public
interface
TabHaobanHmQrcodeService
{
/**
* 通过ID查询单条数据
*
* @param hbId 主键
* @return 实例对象
*/
TabHaobanHmQrcode
queryById
(
Long
hbId
);
/**
* 分页查询
*
* @param tabHaobanHmQrcode 筛选条件
* @param pageRequest 分页对象
* @return 查询结果
*/
Page
<
TabHaobanHmQrcode
>
queryByPage
(
TabHaobanHmQrcode
tabHaobanHmQrcode
,
PageRequest
pageRequest
);
/**
* 新增数据
*
* @param tabHaobanHmQrcode 实例对象
* @return 实例对象
*/
TabHaobanHmQrcode
insert
(
TabHaobanHmQrcode
tabHaobanHmQrcode
);
/**
* 修改数据
*
* @param tabHaobanHmQrcode 实例对象
* @return 实例对象
*/
TabHaobanHmQrcode
update
(
TabHaobanHmQrcode
tabHaobanHmQrcode
);
/**
* 通过主键删除数据
*
* @param hbId 主键
* @return 是否成功
*/
boolean
deleteById
(
Long
hbId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/TabHaobanHmClerkRelationServiceImpl.java
0 → 100644
View file @
6e3d4497
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
hm
.
impl
;
import
com.gic.haoban.manage.service.dao.mapper.hm.TabHaobanHmClerkRelationMapper
;
import
com.gic.haoban.manage.service.entity.hm.TabHaobanHmClerkRelation
;
import
com.gic.haoban.manage.service.service.hm.TabHaobanHmClerkRelationService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.stereotype.Service
;
/**
* 多人活码(TabHaobanHmClerkRelation)表服务实现类
*
* @author mozhu
* @since 2022-07-04 15:42:20
*/
@Service
(
"tabHaobanHmClerkRelationService"
)
public
class
TabHaobanHmClerkRelationServiceImpl
implements
TabHaobanHmClerkRelationService
{
@Autowired
private
TabHaobanHmClerkRelationMapper
tabHaobanHmClerkRelationMapper
;
/**
* 通过ID查询单条数据
*
* @param relationId 主键
* @return 实例对象
*/
@Override
public
TabHaobanHmClerkRelation
queryById
(
Long
relationId
)
{
return
this
.
tabHaobanHmClerkRelationMapper
.
queryById
(
relationId
);
}
/**
* 分页查询
*
* @param tabHaobanHmClerkRelation 筛选条件
* @param pageRequest 分页对象
* @return 查询结果
*/
@Override
public
Page
<
TabHaobanHmClerkRelation
>
queryByPage
(
TabHaobanHmClerkRelation
tabHaobanHmClerkRelation
,
PageRequest
pageRequest
)
{
long
total
=
this
.
tabHaobanHmClerkRelationMapper
.
count
(
tabHaobanHmClerkRelation
);
return
new
PageImpl
<>(
this
.
tabHaobanHmClerkRelationMapper
.
queryAllByLimit
(
tabHaobanHmClerkRelation
,
pageRequest
),
pageRequest
,
total
);
}
/**
* 新增数据
*
* @param tabHaobanHmClerkRelation 实例对象
* @return 实例对象
*/
@Override
public
TabHaobanHmClerkRelation
insert
(
TabHaobanHmClerkRelation
tabHaobanHmClerkRelation
)
{
this
.
tabHaobanHmClerkRelationMapper
.
insert
(
tabHaobanHmClerkRelation
);
return
tabHaobanHmClerkRelation
;
}
/**
* 修改数据
*
* @param tabHaobanHmClerkRelation 实例对象
* @return 实例对象
*/
@Override
public
TabHaobanHmClerkRelation
update
(
TabHaobanHmClerkRelation
tabHaobanHmClerkRelation
)
{
this
.
tabHaobanHmClerkRelationMapper
.
update
(
tabHaobanHmClerkRelation
);
return
this
.
queryById
(
tabHaobanHmClerkRelation
.
getRelationId
());
}
/**
* 通过主键删除数据
*
* @param relationId 主键
* @return 是否成功
*/
@Override
public
boolean
deleteById
(
Long
relationId
)
{
return
this
.
tabHaobanHmClerkRelationMapper
.
deleteById
(
relationId
)
>
0
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/TabHaobanHmQrcodeServiceImpl.java
0 → 100644
View file @
6e3d4497
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
hm
.
impl
;
import
com.gic.haoban.manage.service.dao.mapper.hm.TabHaobanHmQrcodeMapper
;
import
com.gic.haoban.manage.service.entity.hm.TabHaobanHmQrcode
;
import
com.gic.haoban.manage.service.service.hm.TabHaobanHmQrcodeService
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageImpl
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
/**
* 活码(TabHaobanHmQrcode)表服务实现类
*
* @author mozhu
* @since 2022-07-04 15:42:20
*/
@Service
(
"tabHaobanHmQrcodeService"
)
public
class
TabHaobanHmQrcodeServiceImpl
implements
TabHaobanHmQrcodeService
{
@Resource
private
TabHaobanHmQrcodeMapper
tabHaobanHmQrcodeMapper
;
/**
* 通过ID查询单条数据
*
* @param hbId 主键
* @return 实例对象
*/
@Override
public
TabHaobanHmQrcode
queryById
(
Long
hbId
)
{
return
this
.
tabHaobanHmQrcodeMapper
.
queryById
(
hbId
);
}
/**
* 分页查询
*
* @param tabHaobanHmQrcode 筛选条件
* @param pageRequest 分页对象
* @return 查询结果
*/
@Override
public
Page
<
TabHaobanHmQrcode
>
queryByPage
(
TabHaobanHmQrcode
tabHaobanHmQrcode
,
PageRequest
pageRequest
)
{
long
total
=
this
.
tabHaobanHmQrcodeMapper
.
count
(
tabHaobanHmQrcode
);
return
new
PageImpl
<>(
this
.
tabHaobanHmQrcodeMapper
.
queryAllByLimit
(
tabHaobanHmQrcode
,
pageRequest
),
pageRequest
,
total
);
}
/**
* 新增数据
*
* @param tabHaobanHmQrcode 实例对象
* @return 实例对象
*/
@Override
public
TabHaobanHmQrcode
insert
(
TabHaobanHmQrcode
tabHaobanHmQrcode
)
{
this
.
tabHaobanHmQrcodeMapper
.
insert
(
tabHaobanHmQrcode
);
return
tabHaobanHmQrcode
;
}
/**
* 修改数据
*
* @param tabHaobanHmQrcode 实例对象
* @return 实例对象
*/
@Override
public
TabHaobanHmQrcode
update
(
TabHaobanHmQrcode
tabHaobanHmQrcode
)
{
this
.
tabHaobanHmQrcodeMapper
.
update
(
tabHaobanHmQrcode
);
return
this
.
queryById
(
tabHaobanHmQrcode
.
getHbId
());
}
/**
* 通过主键删除数据
*
* @param hbId 主键
* @return 是否成功
*/
@Override
public
boolean
deleteById
(
Long
hbId
)
{
return
this
.
tabHaobanHmQrcodeMapper
.
deleteById
(
hbId
)
>
0
;
}
}
haoban-manage3-service/src/main/resources/mapper/hm/TabHaobanHmClerkRelationMapper.xml
0 → 100644
View file @
6e3d4497
<?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.haoban.manage.service.dao.mapper.hm.TabHaobanHmClerkRelationMapper"
>
<resultMap
type=
"com.gic.haoban.manage.service.entity.hm.TabHaobanHmClerkRelation"
id=
"TabHaobanHmClerkRelationMap"
>
<result
property=
"relationId"
column=
"relation_id"
jdbcType=
"INTEGER"
/>
<result
property=
"hmId"
column=
"hm_id"
jdbcType=
"INTEGER"
/>
<result
property=
"wxUserId"
column=
"wx_user_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"wxEnterpriseId"
column=
"wx_enterprise_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"enterpriseId"
column=
"enterprise_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"storeId"
column=
"store_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"storeName"
column=
"store_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"storeCode"
column=
"store_code"
jdbcType=
"VARCHAR"
/>
<result
property=
"clerkId"
column=
"clerk_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"clerkName"
column=
"clerk_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"clerkCode"
column=
"clerk_code"
jdbcType=
"VARCHAR"
/>
<result
property=
"status"
column=
"status"
jdbcType=
"INTEGER"
/>
<result
property=
"createTime"
column=
"create_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"updateTime"
column=
"update_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"overFlag"
column=
"over_flag"
jdbcType=
"INTEGER"
/>
</resultMap>
<!--查询单个-->
<select
id=
"queryById"
resultMap=
"TabHaobanHmClerkRelationMap"
>
select relation_id,
hm_id,
wx_user_id,
wx_enterprise_id,
enterprise_id,
store_id,
store_name,
store_code,
clerk_id,
clerk_name,
clerk_code,
status,
create_time,
update_time,
over_flag
from tab_haoban_hm_clerk_relation
where relation_id = #{relationId}
</select>
<!--查询指定行数据-->
<select
id=
"queryAllByLimit"
resultMap=
"TabHaobanHmClerkRelationMap"
>
select
relation_id, hm_id, wx_user_id, wx_enterprise_id, enterprise_id, store_id, store_name, store_code, clerk_id,
clerk_name, clerk_code, status, create_time, update_time, over_flag
from tab_haoban_hm_clerk_relation
<where>
<if
test=
"relationId != null"
>
and relation_id = #{relationId}
</if>
<if
test=
"hmId != null"
>
and hm_id = #{hmId}
</if>
<if
test=
"wxUserId != null and wxUserId != ''"
>
and wx_user_id = #{wxUserId}
</if>
<if
test=
"wxEnterpriseId != null and wxEnterpriseId != ''"
>
and wx_enterprise_id = #{wxEnterpriseId}
</if>
<if
test=
"enterpriseId != null and enterpriseId != ''"
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"storeId != null and storeId != ''"
>
and store_id = #{storeId}
</if>
<if
test=
"storeName != null and storeName != ''"
>
and store_name = #{storeName}
</if>
<if
test=
"storeCode != null and storeCode != ''"
>
and store_code = #{storeCode}
</if>
<if
test=
"clerkId != null and clerkId != ''"
>
and clerk_id = #{clerkId}
</if>
<if
test=
"clerkName != null and clerkName != ''"
>
and clerk_name = #{clerkName}
</if>
<if
test=
"clerkCode != null and clerkCode != ''"
>
and clerk_code = #{clerkCode}
</if>
<if
test=
"status != null"
>
and status = #{status}
</if>
<if
test=
"createTime != null"
>
and create_time = #{createTime}
</if>
<if
test=
"updateTime != null"
>
and update_time = #{updateTime}
</if>
<if
test=
"overFlag != null"
>
and over_flag = #{overFlag}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--统计总行数-->
<select
id=
"count"
resultType=
"java.lang.Long"
>
select count(1)
from tab_haoban_hm_clerk_relation
<where>
<if
test=
"relationId != null"
>
and relation_id = #{relationId}
</if>
<if
test=
"hmId != null"
>
and hm_id = #{hmId}
</if>
<if
test=
"wxUserId != null and wxUserId != ''"
>
and wx_user_id = #{wxUserId}
</if>
<if
test=
"wxEnterpriseId != null and wxEnterpriseId != ''"
>
and wx_enterprise_id = #{wxEnterpriseId}
</if>
<if
test=
"enterpriseId != null and enterpriseId != ''"
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"storeId != null and storeId != ''"
>
and store_id = #{storeId}
</if>
<if
test=
"storeName != null and storeName != ''"
>
and store_name = #{storeName}
</if>
<if
test=
"storeCode != null and storeCode != ''"
>
and store_code = #{storeCode}
</if>
<if
test=
"clerkId != null and clerkId != ''"
>
and clerk_id = #{clerkId}
</if>
<if
test=
"clerkName != null and clerkName != ''"
>
and clerk_name = #{clerkName}
</if>
<if
test=
"clerkCode != null and clerkCode != ''"
>
and clerk_code = #{clerkCode}
</if>
<if
test=
"status != null"
>
and status = #{status}
</if>
<if
test=
"createTime != null"
>
and create_time = #{createTime}
</if>
<if
test=
"updateTime != null"
>
and update_time = #{updateTime}
</if>
<if
test=
"overFlag != null"
>
and over_flag = #{overFlag}
</if>
</where>
</select>
<!--新增所有列-->
<insert
id=
"insert"
keyProperty=
"relationId"
useGeneratedKeys=
"true"
>
insert into tab_haoban_hm_clerk_relation(hm_id, wx_user_id, wx_enterprise_id, enterprise_id, store_id,
store_name, store_code, clerk_id, clerk_name, clerk_code, status,
create_time, update_time, over_flag)
values (#{hmId}, #{wxUserId}, #{wxEnterpriseId}, #{enterpriseId}, #{storeId}, #{storeName}, #{storeCode},
#{clerkId}, #{clerkName}, #{clerkCode}, #{status}, #{createTime}, #{updateTime}, #{overFlag})
</insert>
<insert
id=
"insertBatch"
keyProperty=
"relationId"
useGeneratedKeys=
"true"
>
insert into tab_haoban_hm_clerk_relation(hm_id, wx_user_id, wx_enterprise_id, enterprise_id, store_id,
store_name, store_code, clerk_id, clerk_name, clerk_code, status, create_time, update_time, over_flag)
values
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
(#{entity.hmId}, #{entity.wxUserId}, #{entity.wxEnterpriseId}, #{entity.enterpriseId}, #{entity.storeId},
#{entity.storeName}, #{entity.storeCode}, #{entity.clerkId}, #{entity.clerkName}, #{entity.clerkCode},
#{entity.status}, #{entity.createTime}, #{entity.updateTime}, #{entity.overFlag})
</foreach>
</insert>
<insert
id=
"insertOrUpdateBatch"
keyProperty=
"relationId"
useGeneratedKeys=
"true"
>
insert into tab_haoban_hm_clerk_relation(hm_id, wx_user_id, wx_enterprise_id, enterprise_id, store_id,
store_name, store_code, clerk_id, clerk_name, clerk_code, status, create_time, update_time, over_flag)
values
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
(#{entity.hmId}, #{entity.wxUserId}, #{entity.wxEnterpriseId}, #{entity.enterpriseId}, #{entity.storeId},
#{entity.storeName}, #{entity.storeCode}, #{entity.clerkId}, #{entity.clerkName}, #{entity.clerkCode},
#{entity.status}, #{entity.createTime}, #{entity.updateTime}, #{entity.overFlag})
</foreach>
on duplicate key update
hm_id = values(hm_id),
wx_user_id = values(wx_user_id),
wx_enterprise_id = values(wx_enterprise_id),
enterprise_id = values(enterprise_id),
store_id = values(store_id),
store_name = values(store_name),
store_code = values(store_code),
clerk_id = values(clerk_id),
clerk_name = values(clerk_name),
clerk_code = values(clerk_code),
status = values(status),
create_time = values(create_time),
update_time = values(update_time),
over_flag = values(over_flag)
</insert>
<!--通过主键修改数据-->
<update
id=
"update"
>
update tab_haoban_hm_clerk_relation
<set>
<if
test=
"hmId != null"
>
hm_id = #{hmId},
</if>
<if
test=
"wxUserId != null and wxUserId != ''"
>
wx_user_id = #{wxUserId},
</if>
<if
test=
"wxEnterpriseId != null and wxEnterpriseId != ''"
>
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if
test=
"enterpriseId != null and enterpriseId != ''"
>
enterprise_id = #{enterpriseId},
</if>
<if
test=
"storeId != null and storeId != ''"
>
store_id = #{storeId},
</if>
<if
test=
"storeName != null and storeName != ''"
>
store_name = #{storeName},
</if>
<if
test=
"storeCode != null and storeCode != ''"
>
store_code = #{storeCode},
</if>
<if
test=
"clerkId != null and clerkId != ''"
>
clerk_id = #{clerkId},
</if>
<if
test=
"clerkName != null and clerkName != ''"
>
clerk_name = #{clerkName},
</if>
<if
test=
"clerkCode != null and clerkCode != ''"
>
clerk_code = #{clerkCode},
</if>
<if
test=
"status != null"
>
status = #{status},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"overFlag != null"
>
over_flag = #{overFlag},
</if>
</set>
where relation_id = #{relationId}
</update>
<!--通过主键删除-->
<delete
id=
"deleteById"
>
delete
from tab_haoban_hm_clerk_relation
where relation_id = #{relationId}
</delete>
</mapper>
haoban-manage3-service/src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
0 → 100644
View file @
6e3d4497
<?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.haoban.manage.service.dao.mapper.hm.TabHaobanHmQrcodeMapper"
>
<resultMap
type=
"com.gic.haoban.manage.service.entity.hm.TabHaobanHmQrcode"
id=
"TabHaobanHmQrcodeMap"
>
<result
property=
"hbId"
column=
"hb_id"
jdbcType=
"INTEGER"
/>
<result
property=
"hmCode"
column=
"hm_code"
jdbcType=
"VARCHAR"
/>
<result
property=
"hmType"
column=
"hm_type"
jdbcType=
"INTEGER"
/>
<result
property=
"wxEnterpriseId"
column=
"wx_enterprise_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"enterpriseId"
column=
"enterprise_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"name"
column=
"name"
jdbcType=
"VARCHAR"
/>
<result
property=
"creatorId"
column=
"creator_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"creatorName"
column=
"creator_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"modifierId"
column=
"modifier_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"modifierName"
column=
"modifier_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"createTime"
column=
"create_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"updateTime"
column=
"update_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"memberLabelId"
column=
"member_label_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"passFlag"
column=
"pass_flag"
jdbcType=
"INTEGER"
/>
<result
property=
"welcomeId"
column=
"welcome_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"statusFlag"
column=
"status_flag"
jdbcType=
"INTEGER"
/>
<result
property=
"addNum"
column=
"add_num"
jdbcType=
"INTEGER"
/>
<result
property=
"overFlag"
column=
"over_flag"
jdbcType=
"INTEGER"
/>
<result
property=
"wxConfigId"
column=
"wx_config_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"wxQrcode"
column=
"wx_qrcode"
jdbcType=
"VARCHAR"
/>
<result
property=
"wxUserId"
column=
"wx_user_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"storeId"
column=
"store_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"storeName"
column=
"store_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"storeCode"
column=
"store_code"
jdbcType=
"VARCHAR"
/>
<result
property=
"clerkId"
column=
"clerk_id"
jdbcType=
"VARCHAR"
/>
<result
property=
"clerkName"
column=
"clerk_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"clerkCode"
column=
"clerk_code"
jdbcType=
"VARCHAR"
/>
<result
property=
"hmUserNum"
column=
"hm_user_num"
jdbcType=
"INTEGER"
/>
<result
property=
"hmGroupId"
column=
"hm_group_id"
jdbcType=
"INTEGER"
/>
</resultMap>
<!--查询单个-->
<select
id=
"queryById"
resultMap=
"TabHaobanHmQrcodeMap"
>
select hb_id,
hm_code,
hm_type,
wx_enterprise_id,
enterprise_id,
name,
creator_id,
creator_name,
modifier_id,
modifier_name,
create_time,
update_time,
member_label_id,
pass_flag,
welcome_id,
status_flag,
add_num,
over_flag,
wx_config_id,
wx_qrcode,
wx_user_id,
store_id,
store_name,
store_code,
clerk_id,
clerk_name,
clerk_code,
hm_user_num,
hm_group_id
from tab_haoban_hm_qrcode
where hb_id = #{hbId}
</select>
<!--查询指定行数据-->
<select
id=
"queryAllByLimit"
resultMap=
"TabHaobanHmQrcodeMap"
>
select
hb_id, hm_code, hm_type, wx_enterprise_id, enterprise_id, name, creator_id, creator_name, modifier_id,
modifier_name, create_time, update_time, member_label_id, pass_flag, welcome_id, status_flag, add_num,
over_flag, wx_config_id, wx_qrcode, wx_user_id, store_id, store_name, store_code, clerk_id, clerk_name,
clerk_code, hm_user_num, hm_group_id
from tab_haoban_hm_qrcode
<where>
<if
test=
"hbId != null"
>
and hb_id = #{hbId}
</if>
<if
test=
"hmCode != null and hmCode != ''"
>
and hm_code = #{hmCode}
</if>
<if
test=
"hmType != null"
>
and hm_type = #{hmType}
</if>
<if
test=
"wxEnterpriseId != null and wxEnterpriseId != ''"
>
and wx_enterprise_id = #{wxEnterpriseId}
</if>
<if
test=
"enterpriseId != null and enterpriseId != ''"
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"name != null and name != ''"
>
and name = #{name}
</if>
<if
test=
"creatorId != null and creatorId != ''"
>
and creator_id = #{creatorId}
</if>
<if
test=
"creatorName != null and creatorName != ''"
>
and creator_name = #{creatorName}
</if>
<if
test=
"modifierId != null and modifierId != ''"
>
and modifier_id = #{modifierId}
</if>
<if
test=
"modifierName != null and modifierName != ''"
>
and modifier_name = #{modifierName}
</if>
<if
test=
"createTime != null"
>
and create_time = #{createTime}
</if>
<if
test=
"updateTime != null"
>
and update_time = #{updateTime}
</if>
<if
test=
"memberLabelId != null and memberLabelId != ''"
>
and member_label_id = #{memberLabelId}
</if>
<if
test=
"passFlag != null"
>
and pass_flag = #{passFlag}
</if>
<if
test=
"welcomeId != null and welcomeId != ''"
>
and welcome_id = #{welcomeId}
</if>
<if
test=
"statusFlag != null"
>
and status_flag = #{statusFlag}
</if>
<if
test=
"addNum != null"
>
and add_num = #{addNum}
</if>
<if
test=
"overFlag != null"
>
and over_flag = #{overFlag}
</if>
<if
test=
"wxConfigId != null and wxConfigId != ''"
>
and wx_config_id = #{wxConfigId}
</if>
<if
test=
"wxQrcode != null and wxQrcode != ''"
>
and wx_qrcode = #{wxQrcode}
</if>
<if
test=
"wxUserId != null and wxUserId != ''"
>
and wx_user_id = #{wxUserId}
</if>
<if
test=
"storeId != null and storeId != ''"
>
and store_id = #{storeId}
</if>
<if
test=
"storeName != null and storeName != ''"
>
and store_name = #{storeName}
</if>
<if
test=
"storeCode != null and storeCode != ''"
>
and store_code = #{storeCode}
</if>
<if
test=
"clerkId != null and clerkId != ''"
>
and clerk_id = #{clerkId}
</if>
<if
test=
"clerkName != null and clerkName != ''"
>
and clerk_name = #{clerkName}
</if>
<if
test=
"clerkCode != null and clerkCode != ''"
>
and clerk_code = #{clerkCode}
</if>
<if
test=
"hmUserNum != null"
>
and hm_user_num = #{hmUserNum}
</if>
<if
test=
"hmGroupId != null"
>
and hm_group_id = #{hmGroupId}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--统计总行数-->
<select
id=
"count"
resultType=
"java.lang.Long"
>
select count(1)
from tab_haoban_hm_qrcode
<where>
<if
test=
"hbId != null"
>
and hb_id = #{hbId}
</if>
<if
test=
"hmCode != null and hmCode != ''"
>
and hm_code = #{hmCode}
</if>
<if
test=
"hmType != null"
>
and hm_type = #{hmType}
</if>
<if
test=
"wxEnterpriseId != null and wxEnterpriseId != ''"
>
and wx_enterprise_id = #{wxEnterpriseId}
</if>
<if
test=
"enterpriseId != null and enterpriseId != ''"
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"name != null and name != ''"
>
and name = #{name}
</if>
<if
test=
"creatorId != null and creatorId != ''"
>
and creator_id = #{creatorId}
</if>
<if
test=
"creatorName != null and creatorName != ''"
>
and creator_name = #{creatorName}
</if>
<if
test=
"modifierId != null and modifierId != ''"
>
and modifier_id = #{modifierId}
</if>
<if
test=
"modifierName != null and modifierName != ''"
>
and modifier_name = #{modifierName}
</if>
<if
test=
"createTime != null"
>
and create_time = #{createTime}
</if>
<if
test=
"updateTime != null"
>
and update_time = #{updateTime}
</if>
<if
test=
"memberLabelId != null and memberLabelId != ''"
>
and member_label_id = #{memberLabelId}
</if>
<if
test=
"passFlag != null"
>
and pass_flag = #{passFlag}
</if>
<if
test=
"welcomeId != null and welcomeId != ''"
>
and welcome_id = #{welcomeId}
</if>
<if
test=
"statusFlag != null"
>
and status_flag = #{statusFlag}
</if>
<if
test=
"addNum != null"
>
and add_num = #{addNum}
</if>
<if
test=
"overFlag != null"
>
and over_flag = #{overFlag}
</if>
<if
test=
"wxConfigId != null and wxConfigId != ''"
>
and wx_config_id = #{wxConfigId}
</if>
<if
test=
"wxQrcode != null and wxQrcode != ''"
>
and wx_qrcode = #{wxQrcode}
</if>
<if
test=
"wxUserId != null and wxUserId != ''"
>
and wx_user_id = #{wxUserId}
</if>
<if
test=
"storeId != null and storeId != ''"
>
and store_id = #{storeId}
</if>
<if
test=
"storeName != null and storeName != ''"
>
and store_name = #{storeName}
</if>
<if
test=
"storeCode != null and storeCode != ''"
>
and store_code = #{storeCode}
</if>
<if
test=
"clerkId != null and clerkId != ''"
>
and clerk_id = #{clerkId}
</if>
<if
test=
"clerkName != null and clerkName != ''"
>
and clerk_name = #{clerkName}
</if>
<if
test=
"clerkCode != null and clerkCode != ''"
>
and clerk_code = #{clerkCode}
</if>
<if
test=
"hmUserNum != null"
>
and hm_user_num = #{hmUserNum}
</if>
<if
test=
"hmGroupId != null"
>
and hm_group_id = #{hmGroupId}
</if>
</where>
</select>
<!--新增所有列-->
<insert
id=
"insert"
keyProperty=
"hbId"
useGeneratedKeys=
"true"
>
insert into tab_haoban_hm_qrcode(hm_code, hm_type, wx_enterprise_id, enterprise_id, name, creator_id,
creator_name, modifier_id, modifier_name, create_time, update_time,
member_label_id, pass_flag, welcome_id, status_flag, add_num, over_flag,
wx_config_id, wx_qrcode, wx_user_id, store_id, store_name, store_code,
clerk_id, clerk_name, clerk_code, hm_user_num, hm_group_id)
values (#{hmCode}, #{hmType}, #{wxEnterpriseId}, #{enterpriseId}, #{name}, #{creatorId}, #{creatorName},
#{modifierId}, #{modifierName}, #{createTime}, #{updateTime}, #{memberLabelId}, #{passFlag},
#{welcomeId}, #{statusFlag}, #{addNum}, #{overFlag}, #{wxConfigId}, #{wxQrcode}, #{wxUserId},
#{storeId}, #{storeName}, #{storeCode}, #{clerkId}, #{clerkName}, #{clerkCode}, #{hmUserNum},
#{hmGroupId})
</insert>
<insert
id=
"insertBatch"
keyProperty=
"hbId"
useGeneratedKeys=
"true"
>
insert into tab_haoban_hm_qrcode(hm_code, hm_type, wx_enterprise_id, enterprise_id, name, creator_id,
creator_name, modifier_id, modifier_name, create_time, update_time, member_label_id, pass_flag, welcome_id,
status_flag, add_num, over_flag, wx_config_id, wx_qrcode, wx_user_id, store_id, store_name, store_code,
clerk_id, clerk_name, clerk_code, hm_user_num, hm_group_id)
values
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
(#{entity.hmCode}, #{entity.hmType}, #{entity.wxEnterpriseId}, #{entity.enterpriseId}, #{entity.name},
#{entity.creatorId}, #{entity.creatorName}, #{entity.modifierId}, #{entity.modifierName},
#{entity.createTime}, #{entity.updateTime}, #{entity.memberLabelId}, #{entity.passFlag},
#{entity.welcomeId}, #{entity.statusFlag}, #{entity.addNum}, #{entity.overFlag}, #{entity.wxConfigId},
#{entity.wxQrcode}, #{entity.wxUserId}, #{entity.storeId}, #{entity.storeName}, #{entity.storeCode},
#{entity.clerkId}, #{entity.clerkName}, #{entity.clerkCode}, #{entity.hmUserNum}, #{entity.hmGroupId})
</foreach>
</insert>
<insert
id=
"insertOrUpdateBatch"
keyProperty=
"hbId"
useGeneratedKeys=
"true"
>
insert into tab_haoban_hm_qrcode(hm_code, hm_type, wx_enterprise_id, enterprise_id, name, creator_id,
creator_name, modifier_id, modifier_name, create_time, update_time, member_label_id, pass_flag, welcome_id,
status_flag, add_num, over_flag, wx_config_id, wx_qrcode, wx_user_id, store_id, store_name, store_code,
clerk_id, clerk_name, clerk_code, hm_user_num, hm_group_id)
values
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
(#{entity.hmCode}, #{entity.hmType}, #{entity.wxEnterpriseId}, #{entity.enterpriseId}, #{entity.name},
#{entity.creatorId}, #{entity.creatorName}, #{entity.modifierId}, #{entity.modifierName},
#{entity.createTime}, #{entity.updateTime}, #{entity.memberLabelId}, #{entity.passFlag},
#{entity.welcomeId}, #{entity.statusFlag}, #{entity.addNum}, #{entity.overFlag}, #{entity.wxConfigId},
#{entity.wxQrcode}, #{entity.wxUserId}, #{entity.storeId}, #{entity.storeName}, #{entity.storeCode},
#{entity.clerkId}, #{entity.clerkName}, #{entity.clerkCode}, #{entity.hmUserNum}, #{entity.hmGroupId})
</foreach>
on duplicate key update
hm_code = values(hm_code),
hm_type = values(hm_type),
wx_enterprise_id = values(wx_enterprise_id),
enterprise_id = values(enterprise_id),
name = values(name),
creator_id = values(creator_id),
creator_name = values(creator_name),
modifier_id = values(modifier_id),
modifier_name = values(modifier_name),
create_time = values(create_time),
update_time = values(update_time),
member_label_id = values(member_label_id),
pass_flag = values(pass_flag),
welcome_id = values(welcome_id),
status_flag = values(status_flag),
add_num = values(add_num),
over_flag = values(over_flag),
wx_config_id = values(wx_config_id),
wx_qrcode = values(wx_qrcode),
wx_user_id = values(wx_user_id),
store_id = values(store_id),
store_name = values(store_name),
store_code = values(store_code),
clerk_id = values(clerk_id),
clerk_name = values(clerk_name),
clerk_code = values(clerk_code),
hm_user_num = values(hm_user_num),
hm_group_id = values(hm_group_id)
</insert>
<!--通过主键修改数据-->
<update
id=
"update"
>
update tab_haoban_hm_qrcode
<set>
<if
test=
"hmCode != null and hmCode != ''"
>
hm_code = #{hmCode},
</if>
<if
test=
"hmType != null"
>
hm_type = #{hmType},
</if>
<if
test=
"wxEnterpriseId != null and wxEnterpriseId != ''"
>
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if
test=
"enterpriseId != null and enterpriseId != ''"
>
enterprise_id = #{enterpriseId},
</if>
<if
test=
"name != null and name != ''"
>
name = #{name},
</if>
<if
test=
"creatorId != null and creatorId != ''"
>
creator_id = #{creatorId},
</if>
<if
test=
"creatorName != null and creatorName != ''"
>
creator_name = #{creatorName},
</if>
<if
test=
"modifierId != null and modifierId != ''"
>
modifier_id = #{modifierId},
</if>
<if
test=
"modifierName != null and modifierName != ''"
>
modifier_name = #{modifierName},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"memberLabelId != null and memberLabelId != ''"
>
member_label_id = #{memberLabelId},
</if>
<if
test=
"passFlag != null"
>
pass_flag = #{passFlag},
</if>
<if
test=
"welcomeId != null and welcomeId != ''"
>
welcome_id = #{welcomeId},
</if>
<if
test=
"statusFlag != null"
>
status_flag = #{statusFlag},
</if>
<if
test=
"addNum != null"
>
add_num = #{addNum},
</if>
<if
test=
"overFlag != null"
>
over_flag = #{overFlag},
</if>
<if
test=
"wxConfigId != null and wxConfigId != ''"
>
wx_config_id = #{wxConfigId},
</if>
<if
test=
"wxQrcode != null and wxQrcode != ''"
>
wx_qrcode = #{wxQrcode},
</if>
<if
test=
"wxUserId != null and wxUserId != ''"
>
wx_user_id = #{wxUserId},
</if>
<if
test=
"storeId != null and storeId != ''"
>
store_id = #{storeId},
</if>
<if
test=
"storeName != null and storeName != ''"
>
store_name = #{storeName},
</if>
<if
test=
"storeCode != null and storeCode != ''"
>
store_code = #{storeCode},
</if>
<if
test=
"clerkId != null and clerkId != ''"
>
clerk_id = #{clerkId},
</if>
<if
test=
"clerkName != null and clerkName != ''"
>
clerk_name = #{clerkName},
</if>
<if
test=
"clerkCode != null and clerkCode != ''"
>
clerk_code = #{clerkCode},
</if>
<if
test=
"hmUserNum != null"
>
hm_user_num = #{hmUserNum},
</if>
<if
test=
"hmGroupId != null"
>
hm_group_id = #{hmGroupId},
</if>
</set>
where hb_id = #{hbId}
</update>
<!--通过主键删除-->
<delete
id=
"deleteById"
>
delete
from tab_haoban_hm_qrcode
where hb_id = #{hbId}
</delete>
</mapper>
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/HmClerkRelationController.java
0 → 100644
View file @
6e3d4497
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 多人活码(TabHaobanHmClerkRelation)表控制层
*
* @author mozhu
* @since 2022-07-04 15:42:20
*/
@RestController
@RequestMapping
(
"tabHaobanHmClerkRelation"
)
public
class
HmClerkRelationController
{
}
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/HmQrcodeController.java
0 → 100644
View file @
6e3d4497
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 活码(TabHaobanHmQrcode)表控制层
*
* @author mozhu
* @since 2022-07-04 15:42:20
*/
@RestController
@RequestMapping
(
"tabHaobanHmQrcode"
)
public
class
HmQrcodeController
{
}
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