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
QianQiXiang
haoban-manage3.0
Commits
d62658d3
Commit
d62658d3
authored
Feb 17, 2020
by
huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运维登录
parent
f5a356d1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
367 additions
and
1 deletions
+367
-1
YwWxEnterpriseDTO.java
...java/com/gic/haoban/manage/api/dto/YwWxEnterpriseDTO.java
+322
-0
WxEnterpriseApiService.java
...gic/haoban/manage/api/service/WxEnterpriseApiService.java
+9
-1
WxEnterpriseMapper.java
.../haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
+5
-0
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+20
-0
WxEnterpriseMapper.xml
...-service/src/main/resources/mapper/WxEnterpriseMapper.xml
+11
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/YwWxEnterpriseDTO.java
0 → 100644
View file @
d62658d3
package
com
.
gic
.
haoban
.
manage
.
api
.
dto
;
import
java.io.Serializable
;
import
java.util.Date
;
public
class
YwWxEnterpriseDTO
implements
Serializable
{
private
String
wxEnterpriseId
;
private
String
corpid
;
private
String
permanentCode
;
private
String
corpName
;
private
String
corpType
;
private
String
corpSquareLogoUrl
;
private
String
corpUserMax
;
private
String
corpFullName
;
private
String
subjectType
;
private
Date
verifiedEndTime
;
private
String
corpWxqrcode
;
private
String
corpScale
;
private
String
corpIndustry
;
private
String
corpSubIndustry
;
private
String
location
;
private
String
authInfo
;
private
String
agent
;
private
String
agentid
;
private
String
appid
;
private
String
name
;
private
String
squareLogoUrl
;
private
String
roundLogoUrl
;
private
Integer
level
;
private
Integer
bindFlag
;
private
Integer
statusFlag
;
private
Date
createTime
;
private
Date
updateTime
;
//gic通讯录助手
private
String
gicContactHelper
;
//订购状态
private
String
buyStatus
;
//订购时间
private
Date
buyDate
;
//版本号
private
String
version
;
private
static
final
long
serialVersionUID
=
1L
;
public
String
getGicContactHelper
()
{
return
gicContactHelper
;
}
public
void
setGicContactHelper
(
String
gicContactHelper
)
{
this
.
gicContactHelper
=
gicContactHelper
;
}
public
String
getBuyStatus
()
{
return
buyStatus
;
}
public
void
setBuyStatus
(
String
buyStatus
)
{
this
.
buyStatus
=
buyStatus
;
}
public
Date
getBuyDate
()
{
return
buyDate
;
}
public
void
setBuyDate
(
Date
buyDate
)
{
this
.
buyDate
=
buyDate
;
}
public
String
getVersion
()
{
return
version
;
}
public
void
setVersion
(
String
version
)
{
this
.
version
=
version
;
}
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
}
public
void
setWxEnterpriseId
(
String
wxEnterpriseId
)
{
this
.
wxEnterpriseId
=
wxEnterpriseId
==
null
?
null
:
wxEnterpriseId
.
trim
();
}
public
String
getCorpid
()
{
return
corpid
;
}
public
void
setCorpid
(
String
corpid
)
{
this
.
corpid
=
corpid
==
null
?
null
:
corpid
.
trim
();
}
public
String
getPermanentCode
()
{
return
permanentCode
;
}
public
void
setPermanentCode
(
String
permanentCode
)
{
this
.
permanentCode
=
permanentCode
==
null
?
null
:
permanentCode
.
trim
();
}
public
String
getCorpName
()
{
return
corpName
;
}
public
void
setCorpName
(
String
corpName
)
{
this
.
corpName
=
corpName
==
null
?
null
:
corpName
.
trim
();
}
public
String
getCorpType
()
{
return
corpType
;
}
public
void
setCorpType
(
String
corpType
)
{
this
.
corpType
=
corpType
==
null
?
null
:
corpType
.
trim
();
}
public
String
getCorpSquareLogoUrl
()
{
return
corpSquareLogoUrl
;
}
public
void
setCorpSquareLogoUrl
(
String
corpSquareLogoUrl
)
{
this
.
corpSquareLogoUrl
=
corpSquareLogoUrl
==
null
?
null
:
corpSquareLogoUrl
.
trim
();
}
public
String
getCorpUserMax
()
{
return
corpUserMax
;
}
public
void
setCorpUserMax
(
String
corpUserMax
)
{
this
.
corpUserMax
=
corpUserMax
==
null
?
null
:
corpUserMax
.
trim
();
}
public
String
getCorpFullName
()
{
return
corpFullName
;
}
public
void
setCorpFullName
(
String
corpFullName
)
{
this
.
corpFullName
=
corpFullName
==
null
?
null
:
corpFullName
.
trim
();
}
public
String
getSubjectType
()
{
return
subjectType
;
}
public
void
setSubjectType
(
String
subjectType
)
{
this
.
subjectType
=
subjectType
==
null
?
null
:
subjectType
.
trim
();
}
public
Date
getVerifiedEndTime
()
{
return
verifiedEndTime
;
}
public
void
setVerifiedEndTime
(
Date
verifiedEndTime
)
{
this
.
verifiedEndTime
=
verifiedEndTime
;
}
public
String
getCorpWxqrcode
()
{
return
corpWxqrcode
;
}
public
void
setCorpWxqrcode
(
String
corpWxqrcode
)
{
this
.
corpWxqrcode
=
corpWxqrcode
==
null
?
null
:
corpWxqrcode
.
trim
();
}
public
String
getCorpScale
()
{
return
corpScale
;
}
public
void
setCorpScale
(
String
corpScale
)
{
this
.
corpScale
=
corpScale
==
null
?
null
:
corpScale
.
trim
();
}
public
String
getCorpIndustry
()
{
return
corpIndustry
;
}
public
void
setCorpIndustry
(
String
corpIndustry
)
{
this
.
corpIndustry
=
corpIndustry
==
null
?
null
:
corpIndustry
.
trim
();
}
public
String
getCorpSubIndustry
()
{
return
corpSubIndustry
;
}
public
void
setCorpSubIndustry
(
String
corpSubIndustry
)
{
this
.
corpSubIndustry
=
corpSubIndustry
==
null
?
null
:
corpSubIndustry
.
trim
();
}
public
String
getLocation
()
{
return
location
;
}
public
void
setLocation
(
String
location
)
{
this
.
location
=
location
==
null
?
null
:
location
.
trim
();
}
public
String
getAuthInfo
()
{
return
authInfo
;
}
public
void
setAuthInfo
(
String
authInfo
)
{
this
.
authInfo
=
authInfo
==
null
?
null
:
authInfo
.
trim
();
}
public
String
getAgent
()
{
return
agent
;
}
public
void
setAgent
(
String
agent
)
{
this
.
agent
=
agent
==
null
?
null
:
agent
.
trim
();
}
public
String
getAgentid
()
{
return
agentid
;
}
public
void
setAgentid
(
String
agentid
)
{
this
.
agentid
=
agentid
==
null
?
null
:
agentid
.
trim
();
}
public
String
getAppid
()
{
return
appid
;
}
public
void
setAppid
(
String
appid
)
{
this
.
appid
=
appid
==
null
?
null
:
appid
.
trim
();
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
==
null
?
null
:
name
.
trim
();
}
public
String
getSquareLogoUrl
()
{
return
squareLogoUrl
;
}
public
void
setSquareLogoUrl
(
String
squareLogoUrl
)
{
this
.
squareLogoUrl
=
squareLogoUrl
==
null
?
null
:
squareLogoUrl
.
trim
();
}
public
String
getRoundLogoUrl
()
{
return
roundLogoUrl
;
}
public
void
setRoundLogoUrl
(
String
roundLogoUrl
)
{
this
.
roundLogoUrl
=
roundLogoUrl
==
null
?
null
:
roundLogoUrl
.
trim
();
}
public
Integer
getLevel
()
{
return
level
;
}
public
void
setLevel
(
Integer
level
)
{
this
.
level
=
level
;
}
public
Integer
getBindFlag
()
{
return
bindFlag
;
}
public
void
setBindFlag
(
Integer
bindFlag
)
{
this
.
bindFlag
=
bindFlag
;
}
public
Integer
getStatusFlag
()
{
return
statusFlag
;
}
public
void
setStatusFlag
(
Integer
statusFlag
)
{
this
.
statusFlag
=
statusFlag
;
}
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
;
}
}
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/WxEnterpriseApiService.java
View file @
d62658d3
package
com
.
gic
.
haoban
.
manage
.
api
.
service
;
import
java.util.List
;
import
com.gic.haoban.manage.api.dto.QywxCorpInfoSimpleDTO
;
import
com.gic.haoban.manage.api.dto.WxEnterpriseDTO
;
import
com.gic.haoban.manage.api.dto.YwWxEnterpriseDTO
;
public
interface
WxEnterpriseApiService
{
...
...
@@ -9,5 +13,9 @@ public interface WxEnterpriseApiService {
* @param dto
*/
void
callbackReviceEnterprise
(
QywxCorpInfoSimpleDTO
dto
);
/**
* 运维后台获取微信企业id列表
* @return
*/
List
<
YwWxEnterpriseDTO
>
list
();
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
View file @
d62658d3
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
;
import
java.util.List
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise
;
public
interface
WxEnterpriseMapper
{
...
...
@@ -14,4 +16,6 @@ public interface WxEnterpriseMapper {
int
updateByPrimaryKeySelective
(
TabHaobanWxEnterprise
record
);
int
updateByPrimaryKey
(
TabHaobanWxEnterprise
record
);
List
<
TabHaobanWxEnterprise
>
list
();
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
d62658d3
package
com
.
gic
.
haoban
.
manage
.
service
.
service
.
out
.
impl
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.haoban.manage.api.dto.QywxCorpInfoSimpleDTO
;
import
com.gic.haoban.manage.api.dto.WxEnterpriseDTO
;
import
com.gic.haoban.manage.api.dto.YwWxEnterpriseDTO
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.WxEnterpriseApiService
;
import
com.gic.haoban.manage.service.dao.mapper.WxEnterpriseMapper
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise
;
import
com.gic.haoban.manage.service.service.WxEnterpriseService
;
@Service
...
...
@@ -17,6 +25,8 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
private
WxEnterpriseService
wxEnterpriseService
;
@Autowired
private
StaffApiService
staffApiService
;
@Autowired
private
WxEnterpriseMapper
wxEnterpriseMapper
;
@Override
public
void
callbackReviceEnterprise
(
QywxCorpInfoSimpleDTO
dto
)
{
...
...
@@ -28,6 +38,16 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
}
@Override
public
List
<
YwWxEnterpriseDTO
>
list
()
{
List
<
TabHaobanWxEnterprise
>
list
=
wxEnterpriseMapper
.
list
();
if
(
CollectionUtil
.
isEmpty
(
list
)){
return
new
ArrayList
<
YwWxEnterpriseDTO
>();
}
List
<
YwWxEnterpriseDTO
>
resultList
=
EntityUtil
.
changeEntityListByJSON
(
YwWxEnterpriseDTO
.
class
,
list
);
return
resultList
;
}
...
...
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseMapper.xml
View file @
d62658d3
...
...
@@ -351,4 +351,14 @@
update_time = #{updateTime,jdbcType=TIMESTAMP}
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
</update>
<select
id=
"list"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_wx_enterprise
where status_flag = 1
</select>
</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