Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
吴迪
gs1-office-web-sit
Commits
db41daad
Commit
db41daad
authored
Dec 13, 2021
by
唐功亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】 管理员查看 实名认证业务审核
parent
c6ab85a1
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
217 additions
and
24 deletions
+217
-24
BarcodeController.java
...o/office/modules/manage/controller/BarcodeController.java
+26
-21
LogLoginController.java
.../office/modules/manage/controller/LogLoginController.java
+1
-1
MemberController.java
...io/office/modules/manage/controller/MemberController.java
+1
-1
TycpdmFirmController.java
...ffice/modules/manage/controller/TycpdmFirmController.java
+18
-1
TycpdmFirmDao.java
...main/java/io/office/modules/manage/dao/TycpdmFirmDao.java
+2
-0
TycpdmFirmService.java
...a/io/office/modules/manage/service/TycpdmFirmService.java
+3
-0
LogLoginServiceImpl.java
...fice/modules/manage/service/impl/LogLoginServiceImpl.java
+7
-0
MemberServiceImpl.java
...office/modules/manage/service/impl/MemberServiceImpl.java
+1
-0
TycpdmFirmServiceImpl.java
...ce/modules/manage/service/impl/TycpdmFirmServiceImpl.java
+32
-0
TycpdmFirmChangeDao.xml
src/main/resources/mapper/manage/TycpdmFirmChangeDao.xml
+59
-0
TycpdmFirmDao.xml
src/main/resources/mapper/manage/TycpdmFirmDao.xml
+67
-0
No files found.
src/main/java/io/office/modules/manage/controller/BarcodeController.java
View file @
db41daad
package
io
.
office
.
modules
.
manage
.
controller
;
import
com.github.mbhk.barcode4j.Configuration
;
/*
import com.github.mbhk.barcode4j.Configuration;
import io.office.modules.app.annotation.Login;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
...
...
@@ -23,7 +23,11 @@ import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.logging.Level;
import
java.util.logging.Logger
;
import java.util.logging.Logger;*/
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 生成一维码方法
*
...
...
@@ -34,36 +38,37 @@ import java.util.logging.Logger;
@RestController
@RequestMapping
(
"/barcodegeneration"
)
public
class
BarcodeController
{
private
final
Log
logger
=
LogFactory
.
getLog
(
getClass
());
//TODO tgl jar包报错 找张云飞
/*private final Log logger = LogFactory.getLog(getClass());
public Log getLogger() {
return logger;
}
/** Parameter name for the message */
*//** Parameter name for the message *//*
public static final String BARCODE_MSG = "msg";
/** Parameter name for the barcode type */
*//** Parameter name for the barcode type *//*
public static final String BARCODE_TYPE = "type";
/** Parameter name for the barcode height */
*//** Parameter name for the barcode height *//*
public static final String BARCODE_HEIGHT = "height";
/** Parameter name for the module width */
*//** Parameter name for the module width *//*
public static final String BARCODE_MODULE_WIDTH = "mw";
/** Parameter name for the wide factor */
*//** Parameter name for the wide factor *//*
public static final String BARCODE_WIDE_FACTOR = "wf";
/** Parameter name for the quiet zone */
*//** Parameter name for the quiet zone *//*
public static final String BARCODE_QUIET_ZONE = "qz";
/** Parameter name for the human-readable placement */
*//** Parameter name for the human-readable placement *//*
public static final String BARCODE_HUMAN_READABLE_POS = "hrp";
/** Parameter name for the output format */
*//** Parameter name for the output format *//*
public static final String BARCODE_FORMAT = "fmt";
/** Parameter name for the image resolution (for bitmaps) */
*//** Parameter name for the image resolution (for bitmaps) *//*
public static final String BARCODE_IMAGE_RESOLUTION = "res";
/** Parameter name for the grayscale or b/w image (for bitmaps) */
*//** Parameter name for the grayscale or b/w image (for bitmaps) *//*
public static final String BARCODE_IMAGE_GRAYSCALE = "gray";
/** Parameter name for the font size of the human readable display */
*//** Parameter name for the font size of the human readable display *//*
public static final String BARCODE_HUMAN_READABLE_SIZE = "hrsize";
/** Parameter name for the font name of the human readable display */
*//** Parameter name for the font name of the human readable display *//*
public static final String BARCODE_HUMAN_READABLE_FONT = "hrfont";
/** Parameter name for the pattern to format the human readable message */
*//** Parameter name for the pattern to format the human readable message *//*
public static final String BARCODE_HUMAN_READABLE_PATTERN = "hrpattern";
private static final String ERROR_WHILE_GENERATING_BARCODE = "Error while generating barcode";
...
...
@@ -155,13 +160,13 @@ public class BarcodeController {
}
/**
*/
/**
* Check the request for the desired output format.
*
* @param request
* the request to use
* @return MIME type of the desired output format.
*/
*/
/*
protected String determineFormat(HttpServletRequest request) {
String format = request.getParameter(BARCODE_FORMAT);
format = MimeTypes.expandFormat(format);
...
...
@@ -171,14 +176,14 @@ public class BarcodeController {
return format;
}
/**
*/
/**
* Build an Configuration object from the request.
*
* @param request
* the request to use
* @return the newly built COnfiguration object
*
*/
*/
/*
protected Configuration buildCfg(HttpServletRequest request) {
// Get type
String type = request.getParameter(BARCODE_TYPE);
...
...
@@ -227,5 +232,5 @@ public class BarcodeController {
}
return cfg;
}
}
*/
}
src/main/java/io/office/modules/manage/controller/LogLoginController.java
View file @
db41daad
...
...
@@ -56,7 +56,7 @@ public class LogLoginController {
if(!captcha){
return R.error("验证码不正确");
}*/
return
R
.
ok
().
put
(
"
loginInfo
"
,
logLoginService
.
login
(
params
,
request
,
response
));
return
R
.
ok
().
put
(
"
data
"
,
logLoginService
.
login
(
params
,
request
,
response
));
}
/**
...
...
src/main/java/io/office/modules/manage/controller/MemberController.java
View file @
db41daad
...
...
@@ -89,7 +89,7 @@ public class MemberController {
public
R
info
(
@PathVariable
(
"id"
)
Integer
id
){
MemberEntity
member
=
memberService
.
getById
(
id
);
return
R
.
ok
().
put
(
"
member
"
,
member
);
return
R
.
ok
().
put
(
"
data
"
,
member
);
}
/**
...
...
src/main/java/io/office/modules/manage/controller/TycpdmFirmController.java
View file @
db41daad
...
...
@@ -5,6 +5,8 @@ import java.util.Map;
import
io.office.common.exception.RRException
;
import
io.office.modules.app.annotation.Login
;
import
io.office.modules.sys.controller.AbstractController
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
...
...
@@ -29,7 +31,7 @@ import io.office.common.utils.R;
*/
@RestController
@RequestMapping
(
"/tycpdmfirm"
)
public
class
TycpdmFirmController
{
public
class
TycpdmFirmController
extends
AbstractController
{
@Autowired
private
TycpdmFirmService
tycpdmFirmService
;
...
...
@@ -110,4 +112,19 @@ public class TycpdmFirmController {
return
R
.
ok
();
}
/**
* 查询企业实名认证各个状态的数量(中心管理员查询所有,分中心查询)
*/
@RequestMapping
(
"/api/findTycpdmFirmLogoutFlagCount"
)
// @RequiresPermissions("manage:tycpdmfirm:delete")
public
R
findTycpdmFirmLogoutFlagCount
(){
Integer
id
=
getUserId
().
intValue
();
if
(
id
==
null
){
return
R
.
error
(
"用户信息有误"
);
}
SysUserEntity
user
=
getUser
();
Map
<
String
,
Integer
>
map
=
tycpdmFirmService
.
findTycpdmFirmLogoutFlagCount
(
user
);
return
R
.
ok
().
put
(
"data"
,
map
);
}
}
src/main/java/io/office/modules/manage/dao/TycpdmFirmDao.java
View file @
db41daad
...
...
@@ -17,4 +17,6 @@ import org.springframework.data.repository.query.Param;
public
interface
TycpdmFirmDao
extends
BaseMapper
<
TycpdmFirmEntity
>
{
@Select
(
"select * from tycpdm_firm where base_user=#{userName}"
)
TycpdmFirmEntity
findUserName
(
@Param
(
"userName"
)
String
userName
);
Integer
findTycpdmFirmLogoutFlagCountALL
(
@Param
(
"levels"
)
Integer
levels
);
}
src/main/java/io/office/modules/manage/service/TycpdmFirmService.java
View file @
db41daad
...
...
@@ -3,6 +3,7 @@ package io.office.modules.manage.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
io.office.common.utils.PageUtils
;
import
io.office.modules.manage.entity.TycpdmFirmEntity
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
java.util.Map
;
...
...
@@ -18,5 +19,7 @@ public interface TycpdmFirmService extends IService<TycpdmFirmEntity> {
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
TycpdmFirmEntity
findUserName
(
String
userName
);
Map
<
String
,
Integer
>
findTycpdmFirmLogoutFlagCount
(
SysUserEntity
userEntity
);
}
src/main/java/io/office/modules/manage/service/impl/LogLoginServiceImpl.java
View file @
db41daad
...
...
@@ -9,6 +9,7 @@ import io.office.modules.manage.entity.MemberEntity;
import
io.office.modules.manage.utils.MD5Util
;
import
io.office.modules.manage.vo.request.DomesticCodeVo
;
import
io.office.modules.sys.service.SysCaptchaService
;
import
io.office.modules.sys.service.SysUserTokenService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -40,6 +41,9 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity
@Autowired
private
MemberDao
memberDao
;
@Autowired
private
SysUserTokenService
sysUserTokenService
;
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
IPage
<
LogLoginEntity
>
page
=
this
.
page
(
...
...
@@ -120,6 +124,9 @@ public class LogLoginServiceImpl extends ServiceImpl<LogLoginDao, LogLoginEntity
jsonObject
.
put
(
"isQY"
,
isQY
);
jsonObject
.
put
(
"isXT"
,
isXT
);
jsonObject
.
put
(
"id"
,
id
);
R
token
=
sysUserTokenService
.
createToken
(
id
);
//将token信息存入 数据库
Object
token1
=
token
.
get
(
"token"
);
jsonObject
.
put
(
"token"
,
token1
);
return
jsonObject
;
}
...
...
src/main/java/io/office/modules/manage/service/impl/MemberServiceImpl.java
View file @
db41daad
...
...
@@ -140,6 +140,7 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
@Override
public
void
updatephone
(
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
//TODO tgl (接口未完成) 记录表:timescode_chPhone timescode_chPhone_ip 5分钟有效 每天3次 同IP10次
String
id
=
params
.
get
(
"id"
)
==
null
?
""
:
String
.
valueOf
(
params
.
get
(
"id"
));
//用户ID
String
phone
=
params
.
get
(
"phone"
)
==
null
?
""
:
String
.
valueOf
(
params
.
get
(
"phone"
));
//手机号码
String
verification
=
params
.
get
(
"verification"
)
==
null
?
""
:
String
.
valueOf
(
params
.
get
(
"verification"
));
//验证码
...
...
src/main/java/io/office/modules/manage/service/impl/TycpdmFirmServiceImpl.java
View file @
db41daad
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
import
io.office.common.exception.RRException
;
import
io.office.modules.manage.dao.MemberDao
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.HashMap
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
...
@@ -20,6 +25,9 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
@Autowired
private
TycpdmFirmDao
tycpdmFirmDao
;
@Autowired
private
MemberDao
memberDao
;
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
IPage
<
TycpdmFirmEntity
>
page
=
this
.
page
(
...
...
@@ -35,4 +43,27 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
return
tycpdmFirmDao
.
findUserName
(
userName
);
}
@Override
public
Map
<
String
,
Integer
>
findTycpdmFirmLogoutFlagCount
(
SysUserEntity
userEntity
)
{
HashMap
map
=
new
HashMap
<>();
String
username
=
userEntity
.
getUsername
();
//获取管理员是 中心管理员还是分中心管理员
Integer
levels
=
memberDao
.
selectCode_agen
(
username
);
//用户权限 空.代表普通用户 0.代表中心管理员,1.代表校验管理员 其他4位.代表分中心管理员
if
(
levels
==
0
){
}
else
if
(
levels
==
null
){
throw
new
RRException
(
"无权访问"
);
}
else
if
(
levels
==
1
){
throw
new
RRException
(
"无权访问"
);
}
else
if
(
String
.
valueOf
(
levels
).
length
()==
4
){
levels
=-
99
;
}
else
{
throw
new
RRException
(
"无权访问"
);
}
Integer
countAll
=
tycpdmFirmDao
.
findTycpdmFirmLogoutFlagCountALL
(
levels
);
//查询 申请总数
map
.
put
(
"countAll"
,
countAll
);
return
map
;
}
}
\ No newline at end of file
src/main/resources/mapper/manage/TycpdmFirmChangeDao.xml
0 → 100644
View file @
db41daad
<?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=
"io.office.modules.manage.dao.TycpdmFirmChangeDao"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"io.office.modules.manage.entity.TycpdmFirmChangeEntity"
id=
"tycpdmFirmChangeMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"fId"
column=
"f_id"
/>
<result
property=
"firmname"
column=
"firmName"
/>
<result
property=
"firmname1"
column=
"firmName1"
/>
<result
property=
"registeraddress"
column=
"registerAddress"
/>
<result
property=
"registeraddress1"
column=
"registerAddress1"
/>
<result
property=
"address"
column=
"address"
/>
<result
property=
"address1"
column=
"address1"
/>
<result
property=
"postcode"
column=
"postcode"
/>
<result
property=
"postcode1"
column=
"postcode1"
/>
<result
property=
"contactman"
column=
"contactman"
/>
<result
property=
"contactmanctqh"
column=
"contactmanCtqh"
/>
<result
property=
"contactmantele"
column=
"contactmanTele"
/>
<result
property=
"contactmanmp"
column=
"contactmanMp"
/>
<result
property=
"contactmanfax"
column=
"contactmanFax"
/>
<result
property=
"contactmanemail"
column=
"contactmanEmail"
/>
<result
property=
"contactmansfz"
column=
"contactmanSfz"
/>
<result
property=
"contactmansfzFile"
column=
"contactmanSfz_file"
/>
<result
property=
"useddesc"
column=
"usedDesc"
/>
<result
property=
"certificatecode"
column=
"certificateCode"
/>
<result
property=
"political"
column=
"political"
/>
<result
property=
"registerprincipal"
column=
"registerPrincipal"
/>
<result
property=
"cointype"
column=
"coinType"
/>
<result
property=
"firmtype"
column=
"firmType"
/>
<result
property=
"dm"
column=
"dm"
/>
<result
property=
"tjdm"
column=
"TJDm"
/>
<result
property=
"firmcode"
column=
"firmCode"
/>
<result
property=
"leader"
column=
"leader"
/>
<result
property=
"leadertele"
column=
"leaderTele"
/>
<result
property=
"leaderhandset"
column=
"leaderHandset"
/>
<result
property=
"leadersfzFile"
column=
"leaderSfz_file"
/>
<result
property=
"netstation"
column=
"netStation"
/>
<result
property=
"wishusednum"
column=
"wishusedNum"
/>
<result
property=
"receiveflag"
column=
"receiveflag"
/>
<result
property=
"memo"
column=
"memo"
/>
<result
property=
"firmcodefile"
column=
"firmCodeFile"
/>
<result
property=
"firmbusinesslicensefile"
column=
"firmBusinessLicenseFile"
/>
<result
property=
"branchcode"
column=
"branchCode"
/>
<result
property=
"dbdcode"
column=
"dbdCode"
/>
<result
property=
"loginDate"
column=
"login_date"
/>
<result
property=
"logoutFlag"
column=
"logout_flag"
/>
<result
property=
"baseUser"
column=
"base_user"
/>
<result
property=
"approveDate"
column=
"approve_date"
/>
<result
property=
"firmArchivesfile"
column=
"firm_archivesFile"
/>
<result
property=
"approveContent"
column=
"approve_content"
/>
<result
property=
"auditor"
column=
"auditor"
/>
<result
property=
"servicetype"
column=
"serviceType"
/>
</resultMap>
</mapper>
\ No newline at end of file
src/main/resources/mapper/manage/TycpdmFirmDao.xml
0 → 100644
View file @
db41daad
<?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=
"io.office.modules.manage.dao.TycpdmFirmDao"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"io.office.modules.manage.entity.TycpdmFirmEntity"
id=
"tycpdmFirmMap"
>
<result
property=
"fId"
column=
"f_id"
/>
<result
property=
"firmname"
column=
"firmName"
/>
<result
property=
"firmname1"
column=
"firmName1"
/>
<result
property=
"registeraddress"
column=
"registerAddress"
/>
<result
property=
"registeraddress1"
column=
"registerAddress1"
/>
<result
property=
"address"
column=
"address"
/>
<result
property=
"address1"
column=
"address1"
/>
<result
property=
"postcode"
column=
"postcode"
/>
<result
property=
"postcode1"
column=
"postcode1"
/>
<result
property=
"contactman"
column=
"contactman"
/>
<result
property=
"contactmanctqh"
column=
"contactmanCtqh"
/>
<result
property=
"contactmantele"
column=
"contactmanTele"
/>
<result
property=
"contactmanmp"
column=
"contactmanMp"
/>
<result
property=
"contactmanfax"
column=
"contactmanFax"
/>
<result
property=
"contactmanemail"
column=
"contactmanEmail"
/>
<result
property=
"contactmansfz"
column=
"contactmanSfz"
/>
<result
property=
"contactmansfzFile"
column=
"contactmanSfz_file"
/>
<result
property=
"useddesc"
column=
"usedDesc"
/>
<result
property=
"certificatecode"
column=
"certificateCode"
/>
<result
property=
"political"
column=
"political"
/>
<result
property=
"registerprincipal"
column=
"registerPrincipal"
/>
<result
property=
"cointype"
column=
"coinType"
/>
<result
property=
"firmtype"
column=
"firmType"
/>
<result
property=
"dm"
column=
"dm"
/>
<result
property=
"tjdm"
column=
"TJDm"
/>
<result
property=
"firmcode"
column=
"firmCode"
/>
<result
property=
"leader"
column=
"leader"
/>
<result
property=
"leadertele"
column=
"leaderTele"
/>
<result
property=
"leaderhandset"
column=
"leaderHandset"
/>
<result
property=
"leadersfzFile"
column=
"leaderSfz_file"
/>
<result
property=
"netstation"
column=
"netStation"
/>
<result
property=
"wishusednum"
column=
"wishusedNum"
/>
<result
property=
"receiveflag"
column=
"receiveflag"
/>
<result
property=
"memo"
column=
"memo"
/>
<result
property=
"firmcodefile"
column=
"firmCodeFile"
/>
<result
property=
"firmbusinesslicensefile"
column=
"firmBusinessLicenseFile"
/>
<result
property=
"branchcode"
column=
"branchCode"
/>
<result
property=
"dbdcode"
column=
"dbdCode"
/>
<result
property=
"loginDate"
column=
"login_date"
/>
<result
property=
"logoutFlag"
column=
"logout_flag"
/>
<result
property=
"baseUser"
column=
"base_user"
/>
<result
property=
"approveDate"
column=
"approve_date"
/>
<result
property=
"firmArchivesfile"
column=
"firm_archivesFile"
/>
<result
property=
"approveContent"
column=
"approve_content"
/>
<result
property=
"auditor"
column=
"auditor"
/>
<result
property=
"servicetype"
column=
"serviceType"
/>
</resultMap>
<select
id=
"findTycpdmFirmLogoutFlagCountALL"
parameterType=
"java.lang.Integer"
>
select count(*) from tycpdm_firm a left join tycpdm_user_service b on a.f_id=b.f_id
where branchcode='5305'
where 1=1
<if
test=
"levels ==-99"
>
and branchcode=#{levels}
</if>
and logout_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