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
03955ad1
Commit
03955ad1
authored
Feb 02, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
激活统计
parent
9065bb9c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
45 deletions
+11
-45
WxEnterpriseActiveDataApiService.java
.../manage/api/service/WxEnterpriseActiveDataApiService.java
+0
-2
TabHaobanWxEnterpriseActiveDataMapper.java
...ice/dao/mapper/TabHaobanWxEnterpriseActiveDataMapper.java
+0
-2
WxEnterpriseActiveDataService.java
...manage/service/service/WxEnterpriseActiveDataService.java
+0
-4
WxEnterpriseActiveDataServiceImpl.java
...rvice/service/impl/WxEnterpriseActiveDataServiceImpl.java
+1
-10
WxEnterpriseActiveDataApiServiceImpl.java
...ervice/out/impl/WxEnterpriseActiveDataApiServiceImpl.java
+10
-18
TabHaobanWxEnterpriseActiveDataMapper.xml
...esources/mapper/TabHaobanWxEnterpriseActiveDataMapper.xml
+0
-9
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/WxEnterpriseActiveDataApiService.java
View file @
03955ad1
...
...
@@ -17,8 +17,6 @@ public interface WxEnterpriseActiveDataApiService {
*/
ServiceResponse
<
Integer
>
saveOrUpdate
(
String
wxEnterpriseId
);
ServiceResponse
<
StaffActiveDataDTO
>
getWxEnterpriseActiveDataById
(
String
id
);
ServiceResponse
<
StaffActiveDataDTO
>
getWxEnterpriseActiveDataByWxEnterpriseId
(
String
wxEnterpriseId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanWxEnterpriseActiveDataMapper.java
View file @
03955ad1
...
...
@@ -14,8 +14,6 @@ public interface TabHaobanWxEnterpriseActiveDataMapper {
int
insert
(
TabHaobanWxEnterpriseActiveData
tabHaobanWxEnterpriseActiveData
);
TabHaobanWxEnterpriseActiveData
getWxEnterpriseActiveDataById
(
@Param
(
"id"
)
String
id
);
TabHaobanWxEnterpriseActiveData
getWxEnterpriseActiveDataByWxEnterpriseId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
int
updateActiveDataByWxEnterpriseId
(
TabHaobanWxEnterpriseActiveData
activeData
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/WxEnterpriseActiveDataService.java
View file @
03955ad1
...
...
@@ -16,9 +16,5 @@ public interface WxEnterpriseActiveDataService {
*/
Integer
saveOrUpdate
(
String
wxEnterpriseId
);
StaffActiveDataDTO
getWxEnterpriseActiveDataById
(
String
id
);
StaffActiveDataDTO
getWxEnterpriseActiveDataByWxEnterpriseId
(
String
wxEnterpriseId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseActiveDataServiceImpl.java
View file @
03955ad1
...
...
@@ -101,16 +101,7 @@ public class WxEnterpriseActiveDataServiceImpl implements WxEnterpriseActiveData
}
@Override
public
StaffActiveDataDTO
getWxEnterpriseActiveDataById
(
String
id
)
{
if
(
StrUtil
.
isBlank
(
id
))
return
null
;
return
EntityUtil
.
changeEntityByJSON
(
StaffActiveDataDTO
.
class
,
tabHaobanWxEnterpriseActiveDataMapper
.
getWxEnterpriseActiveDataById
(
id
));
}
@Override
public
StaffActiveDataDTO
getWxEnterpriseActiveDataByWxEnterpriseId
(
String
wxEnterpriseId
)
{
if
(
StrUtil
.
isBlank
(
wxEnterpriseId
))
return
null
;
return
EntityUtil
.
changeEntityByJSON
(
StaffActiveDataDTO
.
class
,
tabHaobanWxEnterpriseActiveDataMapper
.
getWxEnterpriseActiveDataById
(
wxEnterpriseId
));
return
EntityUtil
.
changeEntityByJSON
(
StaffActiveDataDTO
.
class
,
tabHaobanWxEnterpriseActiveDataMapper
.
getWxEnterpriseActiveDataByWxEnterpriseId
(
wxEnterpriseId
));
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseActiveDataApiServiceImpl.java
View file @
03955ad1
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
;
import
cn.hutool.core.util.ObjectUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.StaffActiveDataDTO
;
import
com.gic.haoban.manage.api.service.WxEnterpriseActiveDataApiService
;
import
com.gic.haoban.manage.service.service.WxEnterpriseActiveDataService
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
cn.hutool.core.util.ObjectUtil
;
/**
* @description:
...
...
@@ -17,7 +17,6 @@ import org.springframework.stereotype.Service;
*/
@Service
public
class
WxEnterpriseActiveDataApiServiceImpl
implements
WxEnterpriseActiveDataApiService
{
private
static
final
Logger
log
=
LogManager
.
getLogger
(
WxEnterpriseApiServiceImpl
.
class
);
@Autowired
private
WxEnterpriseActiveDataService
wxEnterpriseActiveDataService
;
...
...
@@ -27,20 +26,13 @@ public class WxEnterpriseActiveDataApiServiceImpl implements WxEnterpriseActiveD
}
@Override
public
ServiceResponse
<
StaffActiveDataDTO
>
getWxEnterpriseActiveDataById
(
String
id
)
{
StaffActiveDataDTO
staffActiveDataDTO
=
wxEnterpriseActiveDataService
.
getWxEnterpriseActiveDataById
(
id
);
if
(
ObjectUtil
.
isNotNull
(
staffActiveDataDTO
))
return
ServiceResponse
.
success
(
staffActiveDataDTO
);
else
return
ServiceResponse
.
failure
(
"9999"
,
"id不存在"
);
}
@Override
public
ServiceResponse
<
StaffActiveDataDTO
>
getWxEnterpriseActiveDataByWxEnterpriseId
(
String
wxEnterpriseId
)
{
StaffActiveDataDTO
staffActiveDataDTO
=
wxEnterpriseActiveDataService
.
getWxEnterpriseActiveDataByWxEnterpriseId
(
wxEnterpriseId
);
if
(
ObjectUtil
.
isNotNull
(
staffActiveDataDTO
))
if
(
ObjectUtil
.
isNotNull
(
staffActiveDataDTO
))
{
return
ServiceResponse
.
success
(
staffActiveDataDTO
);
else
return
ServiceResponse
.
failure
(
"9999"
,
"wxEnterpriseId不存在"
);
}
else
{
StaffActiveDataDTO
dto
=
new
StaffActiveDataDTO
()
;
return
ServiceResponse
.
success
(
dto
)
;
}
}
}
haoban-manage3-service/src/main/resources/mapper/TabHaobanWxEnterpriseActiveDataMapper.xml
View file @
03955ad1
...
...
@@ -21,10 +21,6 @@
#{transfer,jdbcType=INTEGER},#{activated,jdbcType=INTEGER},#{expired,jdbcType=INTEGER},now(),0)
</insert>
<select
id=
"getWxEnterpriseActiveDataById"
resultMap=
"BaseResultMap"
>
select * from tab_haoban_wx_enterprise_active_data where id=#{id} and delete_flag=0
</select>
<select
id=
"getWxEnterpriseActiveDataByWxEnterpriseId"
resultMap=
"BaseResultMap"
>
select * from tab_haoban_wx_enterprise_active_data where wx_enterprise_id=#{wxEnterpriseId} and delete_flag=0
</select>
...
...
@@ -55,8 +51,4 @@
where wx_enterprise_id=#{wxEnterpriseId}
</update>
</mapper>
\ No newline at end of file
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