Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
c99f1b00
Commit
c99f1b00
authored
May 21, 2020
by
彭祥礼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
学生不限量证件和大王卡证件稽核
parent
f12eb271
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
933 additions
and
11 deletions
+933
-11
common/src/main/java/com/winsun/bean/LzKpi.java
+8
-7
common/src/main/java/com/winsun/bean/StudentCard.java
+183
-0
common/src/main/java/com/winsun/mapper/StudentCardMapper.java
+16
-0
common/src/main/java/com/winsun/mapper/StudentCertUploadMapper.java
+17
-0
common/src/main/java/com/winsun/utils/EntityUtil.java
+3
-4
service-manager/src/main/java/com/winsun/controller/StudentCardVerifyController.java
+353
-0
service-manager/src/main/java/com/winsun/controller/StudentDwkVerifyController.java
+311
-0
service-manager/src/main/java/com/winsun/utils/ExcelDealUtils.java
+42
-0
No files found.
common/src/main/java/com/winsun/bean/LzKpi.java
View file @
c99f1b00
package
com
.
winsun
.
bean
;
import
com.baomidou.mybatisplus.annotations.TableField
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.IdType
;
...
...
@@ -24,27 +25,27 @@ public class LzKpi implements Serializable {
/**
*
*/
@Table
I
d
(
value
=
"report_daily"
)
@Table
Fiel
d
(
value
=
"report_daily"
)
private
Integer
reportDaily
;
/**
*
*/
@Table
I
d
(
value
=
"collective_sales"
)
@Table
Fiel
d
(
value
=
"collective_sales"
)
private
Integer
collectiveSales
;
/**
*
*/
@Table
I
d
(
value
=
"weekly_meeting"
)
@Table
Fiel
d
(
value
=
"weekly_meeting"
)
private
Integer
weeklyMeeting
;
/**
*
*/
@Table
I
d
(
value
=
"organ_training"
)
@Table
Fiel
d
(
value
=
"organ_training"
)
private
Integer
organTraining
;
/**
*
*/
@Table
I
d
(
value
=
"design_plan"
)
@Table
Fiel
d
(
value
=
"design_plan"
)
private
Integer
designPlan
;
/**
*
...
...
@@ -53,7 +54,7 @@ public class LzKpi implements Serializable {
/**
*
*/
@Table
I
d
(
value
=
"user_id"
)
@Table
Fiel
d
(
value
=
"user_id"
)
private
String
userId
;
/**
...
...
@@ -63,7 +64,7 @@ public class LzKpi implements Serializable {
/**
*
*/
@Table
I
d
(
value
=
"is_del"
)
@Table
Fiel
d
(
value
=
"is_del"
)
private
String
isDel
;
...
...
common/src/main/java/com/winsun/bean/StudentCard.java
0 → 100644
View file @
c99f1b00
package
com
.
winsun
.
bean
;
import
com.baomidou.mybatisplus.annotations.TableField
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* @Description 大王卡证件稽核
* @Author pxl
* @Date 2020-05-20
*/
@Data
@TableName
(
"yx_student_card"
)
public
class
StudentCard
implements
Serializable
{
private
static
final
long
serialVersionUID
=
4106267216672888277L
;
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
/**
* 用户姓名
*/
@TableField
(
"user_name"
)
private
String
userName
;
/**
* 订单号码
*/
@TableField
(
"order_phone"
)
private
String
orderPhone
;
/**
* 联系号码
*/
@TableField
(
"link_phone"
)
private
String
linkPhone
;
/**
* 审核人姓名
*/
@TableField
(
"audit_name"
)
private
String
auditName
;
/**
* 县分
*/
@TableField
(
"county"
)
private
String
county
;
/**
* 学校
*/
@TableField
(
"school"
)
private
String
school
;
/**
* 身份证号
*/
@TableField
(
"id_card"
)
private
String
idCard
;
/**
* 学生证封面照片
*/
@TableField
(
"student_card_url"
)
private
String
studentCardUrl
;
/**
* 学生证内页照片
*/
@TableField
(
"other_img_url1"
)
private
String
otherImgUrl1
;
/**
* 身份证照片
*/
@TableField
(
"other_img_url2"
)
private
String
otherImgUrl2
;
/**
* 补充照片
*/
@TableField
(
"other_img_url3"
)
private
String
otherImgUrl3
;
/**
* 上传时间
*/
@TableField
(
"upload_date"
)
private
Date
uploadDate
;
/**
* 是否已上传学生证照片、学校等必填信息
*/
@TableField
(
"is_full"
)
private
Integer
isFull
;
/**
* 学生证照片是否清晰
*/
@TableField
(
"is_clear"
)
private
Integer
isClear
;
/**
* 学生年龄是否25岁及以下
*/
@TableField
(
"is_under_years"
)
private
Integer
isUnderYears
;
/**
* 号码被实名人员与上传学生证用户是否一致
*/
@TableField
(
"is_student_accordance"
)
private
Integer
isStudentAccordance
;
/**
* 学生证所属学校与号码所属学校是否一致
*/
@TableField
(
"is_school_accordance"
)
private
Integer
isSchoolAccordance
;
/**
* 资料上传时间是否早于CRM系统激活时间
*/
@TableField
(
"is_upload_before_activate"
)
private
Integer
isUploadBeforeActivate
;
/**
* 办理号码是否新49元套餐号码
*/
@TableField
(
"is_combo_money49"
)
private
Integer
isComboMoney49
;
/**
* crm激活时间
*/
@TableField
(
"crn_activate_date"
)
private
Date
crnActivateDate
;
/**
* 代理商
*/
@TableField
(
"agent_businessman"
)
private
String
agentBusinessman
;
/**
* 审核状态 1:未审核 2:审核通过 3:审核不通过 4:无效
*/
@TableField
(
"audit_state"
)
private
Integer
auditState
;
/**
* 审核人
*/
@TableField
(
"operator"
)
private
String
operator
;
/**
* 审核时间
*/
@TableField
(
"audit_date"
)
private
Date
auditDate
;
/**
* 是否首次上传
*/
@TableField
(
"is_first_upload"
)
private
Integer
isFirstUpload
;
/**
* 资料首次上传时间
*/
@TableField
(
"first_upload_date"
)
private
Date
firstUploadDate
;
}
common/src/main/java/com/winsun/mapper/StudentCardMapper.java
0 → 100644
View file @
c99f1b00
package
com
.
winsun
.
mapper
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
import
com.winsun.bean.StudentCard
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Component
;
/**
* 〈大王卡证件稽核〉
* @author PXL
* @create 2020/5/20 11:43
*/
@Mapper
@Component
public
interface
StudentCardMapper
extends
BaseMapper
<
StudentCard
>
{
}
common/src/main/java/com/winsun/mapper/StudentCertUploadMapper.java
0 → 100644
View file @
c99f1b00
package
com
.
winsun
.
mapper
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
import
com.winsun.bean.StudentCertUpload
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Component
;
/**
* 〈学生不限量证件〉
*
* @author PXL
* @create 2020/5/20 11:44
*/
@Mapper
@Component
public
interface
StudentCertUploadMapper
extends
BaseMapper
<
StudentCertUpload
>
{
}
common/src/main/java/com/winsun/utils/EntityUtil.java
View file @
c99f1b00
package
com
.
winsun
.
utils
;
import
org.apache.poi.ss.formula.functions.T
;
import
org.springframework.cglib.beans.BeanMap
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
org.apache.poi.ss.formula.functions.T
;
import
org.springframework.cglib.beans.BeanMap
;
/**
* 实体类工具类
* @author dongyp
...
...
@@ -20,7 +20,6 @@ public class EntityUtil {
for
(
T
entity
:
list
)
{
resultList
.
add
(
BeanMap
.
create
(
entity
));
}
return
resultList
;
}
}
service-manager/src/main/java/com/winsun/controller/StudentCardVerifyController.java
0 → 100644
View file @
c99f1b00
package
com
.
winsun
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.enums.SqlLike
;
import
com.baomidou.mybatisplus.mapper.EntityWrapper
;
import
com.baomidou.mybatisplus.mapper.Wrapper
;
import
com.baomidou.mybatisplus.plugins.Page
;
import
com.winsun.auth.core.annotion.Permission
;
import
com.winsun.auth.core.base.controller.BaseController
;
import
com.winsun.auth.core.common.model.ResponseData
;
import
com.winsun.auth.core.shiro.ShiroUser
;
import
com.winsun.auth.core.util.DateUtil
;
import
com.winsun.auth.core.util.IOUtils
;
import
com.winsun.bean.StudentCard
;
import
com.winsun.bean.SysUser
;
import
com.winsun.mapper.StudentCardMapper
;
import
com.winsun.mapper.SysUserMapper
;
import
com.winsun.utils.ExcelDealUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.*
;
/**
* 〈学生不限量证件〉
*
* @author PXL
* @create 2020/5/20 10:19
*/
@Slf4j
@RestController
@RequestMapping
(
"/studentCardVerify"
)
public
class
StudentCardVerifyController
extends
BaseController
{
@Autowired
private
StudentCardMapper
studentCardMapper
;
@Autowired
private
SysUserMapper
sysUserMapper
;
@Autowired
@Qualifier
(
"redisStringTemplate"
)
private
RedisTemplate
redisTemplate
;
/**
* 学生不限量证件信息添加
*
* @param lzKpi 添加对象json字符串
* @return
*/
@Permission
(
menuname
=
"添加学生不限量证件信息"
,
value
=
"insert"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
String
>
insertProduct
(
@RequestParam
(
"lzKpi"
)
String
lzKpi
)
{
ShiroUser
user
=
getShiroUser
();
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
)))
{
return
ResponseData
.
error
(
"无数据权限"
);
}
HashMap
hashMap
=
JSON
.
parseObject
(
lzKpi
,
HashMap
.
class
);
Wrapper
<
SysUser
>
sysWrapper
=
new
EntityWrapper
<>();
String
account
=
hashMap
.
get
(
"account"
)+
""
;
String
substName
=
hashMap
.
get
(
"substName"
)+
""
;
sysWrapper
.
eq
(
StringUtils
.
isNotBlank
(
account
),
"account"
,
account
);
sysWrapper
.
eq
(
StringUtils
.
isNotBlank
(
substName
),
"name"
,
substName
);
List
<
SysUser
>
sysUserList
=
sysUserMapper
.
selectList
(
sysWrapper
);
if
(
sysUserList
.
size
()>
0
){
/*ManagerKpi managerKpi = new ManagerKpi();
managerKpi.setUserId(Integer.valueOf(sysUserList.get(0).getId()));
managerKpi.setMonth(hashMap.get("month")+"");
managerKpi.setRechargeNum(Integer.valueOf(hashMap.get("rechargeNum")+""));
managerKpi.setRechargeWage(Integer.valueOf(hashMap.get("rechargeWage")+""));
managerKpi.setKpi(Integer.valueOf(hashMap.get("kpi")+""));
managerKpi.setKpiWage(Integer.valueOf(hashMap.get("kpiWage")+""));
managerKpi.setWage(Integer.valueOf(hashMap.get("wage")+""));
managerKpiMapper.insert(managerKpi);*/
return
ResponseData
.
success
(
"添加成功!"
);
}
return
ResponseData
.
error
(
"账号不存在?"
);
}
/**
* 学生不限量证件删除
* @param id 需要删除的id
* @return
*/
@Permission
(
menuname
=
"删除正则信息"
,
value
=
"delete"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
String
>
deleteProduct
(
@RequestParam
(
name
=
"id"
,
required
=
false
)
String
id
,
@RequestParam
(
name
=
"isdel"
,
required
=
false
)
String
isdel
)
{
ShiroUser
user
=
getShiroUser
();
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
)))
{
return
ResponseData
.
error
(
"无数据权限"
);
}
//Wrapper wrapper = new EntityWrapper<>();
//wrapper.eq(StringUtils.isNotBlank(id),"id", id);
//Map<String, Object> dataMapping = new HashMap<>();
//dataMapping.put("is_del", isdel);
//lzKpiMapper.updateForSet(MyBatisPlusUpdateUtils.toUpdateSet(dataMapping), wrapper);
if
(
StringUtils
.
isNotBlank
(
id
)){
/*lzWageMpapper.deleteById(id);*/
return
ResponseData
.
success
(
"操作成功!"
);
}
return
ResponseData
.
error
(
"删除id不能为空!"
);
}
/**
* 修改学生不限量证件状态
* @param ids
* @param state
* @return
*/
@Permission
(
menuname
=
"修改学生不限量证件信息"
,
value
=
"update"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
String
>
updateProduct
(
@RequestParam
(
"ids"
)
String
ids
,
@RequestParam
(
"state"
)
Integer
state
)
{
ShiroUser
user
=
getShiroUser
();
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
)))
{
return
ResponseData
.
error
(
"无数据权限"
);
}
List
<
String
>
list1
=
Arrays
.
asList
(
ids
.
split
(
","
));
//[a, b, c]
List
<
Integer
>
list
=
new
ArrayList
<>();
for
(
String
s
:
list1
)
{
list
.
add
(
Integer
.
valueOf
(
s
));
}
Wrapper
<
StudentCard
>
wrapper
=
new
EntityWrapper
<>();
StudentCard
studentCard
=
new
StudentCard
();
studentCard
.
setAuditState
(
state
);
wrapper
.
in
(
"id"
,
list
);
studentCardMapper
.
update
(
studentCard
,
wrapper
);
return
ResponseData
.
success
(
"修改成功!"
);
}
/**
*
* @param ids
* @return
*/
@Permission
(
menuname
=
"查询学生不限量证件信息"
,
value
=
"queryById"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
StudentCard
>
queryById
(
@RequestParam
(
"ids"
)
String
ids
)
{
ShiroUser
user
=
getShiroUser
();
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
)))
{
return
ResponseData
.
error
(
"无数据权限"
);
}
List
<
String
>
list1
=
Arrays
.
asList
(
ids
.
split
(
","
));
//[a, b, c]
String
id
=
""
;
if
(
list1
.
size
()>
0
){
id
=
list1
.
get
(
0
);
}
else
{
return
ResponseData
.
error
(
"查询ID不能为空!!!"
);
}
Wrapper
<
StudentCard
>
studentCardWrapper
=
new
EntityWrapper
<>();
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
);
StudentCard
studentCard
=
studentCardMapper
.
selectList
(
studentCardWrapper
).
get
(
0
);
return
ResponseData
.
success
(
studentCard
,
"查询成功!"
);
}
/**
* @param userName
* @param orderPhone
* @param linkPhone
* @param auditName
* @param auditState
* @param uploadDate
* @param auditDate
* @param pageNo
* @param pageSize
* @return
*/
@Permission
(
menuname
=
"查询学生不限量证件信息"
,
value
=
"list"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
Page
<
StudentCard
>>
listProduct
(
@RequestParam
(
name
=
"userName"
,
required
=
false
)
String
userName
,
@RequestParam
(
name
=
"orderPhone"
,
required
=
false
)
String
orderPhone
,
@RequestParam
(
name
=
"linkPhone"
,
required
=
false
)
String
linkPhone
,
@RequestParam
(
name
=
"auditName"
,
required
=
false
)
String
auditName
,
@RequestParam
(
name
=
"auditState"
,
required
=
false
)
String
auditState
,
@RequestParam
(
name
=
"uploadDate"
,
required
=
false
)
String
uploadDate
,
@RequestParam
(
name
=
"auditDate"
,
required
=
false
)
String
auditDate
,
@RequestParam
(
name
=
"pageNo"
)
int
pageNo
,
@RequestParam
(
name
=
"pageSize"
)
int
pageSize
)
{
ShiroUser
user
=
getShiroUser
();
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
)))
{
return
ResponseData
.
error
(
"无数据权限"
);
}
Page
<
StudentCard
>
page
=
new
Page
<>(
pageNo
,
pageSize
);
Wrapper
<
StudentCard
>
studentCardWrapper
=
new
EntityWrapper
<>();
studentCardWrapper
.
like
(
StringUtils
.
isNotBlank
(
userName
),
"user_name"
,
userName
,
SqlLike
.
DEFAULT
);
studentCardWrapper
.
like
(
StringUtils
.
isNotBlank
(
auditName
),
"audit_name"
,
auditName
,
SqlLike
.
DEFAULT
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
orderPhone
),
"order_phone"
,
orderPhone
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
linkPhone
),
"link_phone"
,
linkPhone
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
auditState
),
"audit_state"
,
auditState
);
if
(
StringUtils
.
isNotBlank
(
uploadDate
)){
String
[]
dates
=
uploadDate
.
split
(
"\\,"
);
if
(!
uploadDate
.
equals
(
","
)){
studentCardWrapper
.
between
(
"upload_date"
,
dates
[
0
],
dates
[
1
]);
}
}
if
(
StringUtils
.
isNotBlank
(
auditDate
)){
String
[]
dates
=
auditDate
.
split
(
"\\,"
);
if
(!
auditDate
.
equals
(
","
)){
studentCardWrapper
.
between
(
"audit_date"
,
dates
[
0
],
dates
[
1
]);
}
}
List
<
StudentCard
>
studentCardList
=
studentCardMapper
.
selectList
(
studentCardWrapper
);
List
<
StudentCard
>
dataList
=
new
ArrayList
<>();
//redisTemplate.opsForValue().set(hcmap, hcmap, 60, TimeUnit.MINUTES);
if
(
studentCardList
.
size
()
<
pageSize
)
{
dataList
=
studentCardList
;
}
else
{
dataList
=
studentCardList
.
subList
((
pageNo
-
1
)*
pageSize
,
pageNo
*
pageSize
);
}
page
.
setRecords
(
dataList
);
page
.
setTotal
(
studentCardList
.
size
());
return
ResponseData
.
success
(
page
,
"查询成功!"
);
}
/**
*
* @param auditState
* @throws IOException
*/
@Permission
(
menuname
=
"导出学生不限量证件信息"
,
value
=
"excelOut"
,
method
=
RequestMethod
.
POST
)
public
void
excelOut
(
@RequestParam
(
name
=
"userName"
,
required
=
false
)
String
userName
,
@RequestParam
(
name
=
"orderPhone"
,
required
=
false
)
String
orderPhone
,
@RequestParam
(
name
=
"linkPhone"
,
required
=
false
)
String
linkPhone
,
@RequestParam
(
name
=
"auditName"
,
required
=
false
)
String
auditName
,
@RequestParam
(
name
=
"auditState"
,
required
=
false
)
String
auditState
,
@RequestParam
(
name
=
"uploadDate"
,
required
=
false
)
String
uploadDate
,
@RequestParam
(
name
=
"auditDate"
,
required
=
false
)
String
auditDate
)
throws
IOException
{
Wrapper
<
StudentCard
>
studentCardWrapper
=
new
EntityWrapper
<>();
studentCardWrapper
.
like
(
StringUtils
.
isNotBlank
(
userName
),
"user_name"
,
userName
,
SqlLike
.
DEFAULT
);
studentCardWrapper
.
like
(
StringUtils
.
isNotBlank
(
auditName
),
"audit_name"
,
auditName
,
SqlLike
.
DEFAULT
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
orderPhone
),
"order_phone"
,
orderPhone
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
linkPhone
),
"link_phone"
,
linkPhone
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
auditState
),
"audit_state"
,
auditState
);
if
(
StringUtils
.
isNotBlank
(
uploadDate
)){
String
[]
dates
=
uploadDate
.
split
(
"\\,"
);
if
(!
uploadDate
.
equals
(
","
)){
studentCardWrapper
.
between
(
"upload_date"
,
dates
[
0
],
dates
[
1
]);
}
}
if
(
StringUtils
.
isNotBlank
(
auditDate
)){
String
[]
dates
=
auditDate
.
split
(
"\\,"
);
if
(!
auditDate
.
equals
(
","
)){
studentCardWrapper
.
between
(
"audit_date"
,
dates
[
0
],
dates
[
1
]);
}
}
List
<
StudentCard
>
studentCards
=
studentCardMapper
.
selectList
(
studentCardWrapper
);
List
<
Map
<
String
,
Object
>>
list
=
new
LinkedList
<>();
for
(
StudentCard
studentCard
:
studentCards
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"userName"
,
studentCard
.
getUserName
());
map
.
put
(
"orderPhone"
,
studentCard
.
getOrderPhone
());
map
.
put
(
"linkPhone"
,
studentCard
.
getLinkPhone
());
map
.
put
(
"auditName"
,
studentCard
.
getAuditName
());
if
(
null
!=
studentCard
.
getAuditDate
()){
map
.
put
(
"auditDate"
,
DateUtil
.
formatDate
(
studentCard
.
getAuditDate
(),
"yyyy-mm-dd"
));
}
else
{
map
.
put
(
"auditDate"
,
""
);
}
Integer
state
=
studentCard
.
getAuditState
();
if
(
state
==
1
)
map
.
put
(
"auditState"
,
"未审核"
);
else
if
(
state
==
2
)
map
.
put
(
"auditState"
,
"审核通过"
);
else
if
(
state
==
3
)
map
.
put
(
"auditState"
,
"审核不通过"
);
else
if
(
state
==
4
)
map
.
put
(
"auditState"
,
"无效"
);
map
.
put
(
"county"
,
studentCard
.
getCounty
());
map
.
put
(
"school"
,
studentCard
.
getSchool
());
if
(
StringUtils
.
isNotBlank
(
studentCard
.
getIsComboMoney49
()+
""
)){
map
.
put
(
"isComboMoney49"
,
studentCard
.
getIsComboMoney49
()==
1
?
"是"
:
"否"
);
}
else
{
map
.
put
(
"isComboMoney49"
,
""
);
}
if
(
StringUtils
.
isNotBlank
(
studentCard
.
getIsFull
()+
""
)){
map
.
put
(
"isFull"
,
studentCard
.
getIsFull
()==
1
?
"是"
:
"否"
);
}
else
{
map
.
put
(
"isFull"
,
""
);
}
if
(
StringUtils
.
isNotBlank
(
studentCard
.
getIsClear
()+
""
)){
map
.
put
(
"isClear"
,
studentCard
.
getIsClear
()==
1
?
"是"
:
"否"
);
}
else
{
map
.
put
(
"isClear"
,
""
);
}
if
(
StringUtils
.
isNotBlank
(
studentCard
.
getIsUnderYears
()+
""
)){
map
.
put
(
"isUnderYears"
,
studentCard
.
getIsUnderYears
()==
1
?
"是"
:
"否"
);
}
else
{
map
.
put
(
"isUnderYears"
,
""
);
}
if
(
StringUtils
.
isNotBlank
(
studentCard
.
getIsStudentAccordance
()+
""
)){
map
.
put
(
"isStudentAccordance"
,
studentCard
.
getIsStudentAccordance
()==
1
?
"是"
:
"否"
);
}
else
{
map
.
put
(
"isStudentAccordance"
,
""
);
}
if
(
StringUtils
.
isNotBlank
(
studentCard
.
getIsSchoolAccordance
()+
""
)){
map
.
put
(
"isSchoolAccordance"
,
studentCard
.
getIsSchoolAccordance
()==
1
?
"是"
:
"否"
);
}
else
{
map
.
put
(
"isSchoolAccordance"
,
""
);
}
if
(
StringUtils
.
isNotBlank
(
studentCard
.
getIsComboMoney49
()+
""
)){
map
.
put
(
"isUploadBeforeActivate"
,
studentCard
.
getIsUploadBeforeActivate
()==
1
?
"是"
:
"否"
);
}
else
{
map
.
put
(
"isUploadBeforeActivate"
,
""
);
}
if
(
null
!=
studentCard
.
getUploadDate
()){
map
.
put
(
"uploadDate"
,
DateUtil
.
formatDate
(
studentCard
.
getUploadDate
(),
"yyyy-mm-dd"
));
}
else
{
map
.
put
(
"uploadDate"
,
""
);
}
if
(
null
!=
studentCard
.
getCrnActivateDate
()){
map
.
put
(
"crnActivateDate"
,
DateUtil
.
formatDate
(
studentCard
.
getCrnActivateDate
(),
"yyyy-mm-dd"
));
}
else
{
map
.
put
(
"crnActivateDate"
,
""
);
}
if
(
StringUtils
.
isNotBlank
(
studentCard
.
getIsFirstUpload
()+
""
)){
map
.
put
(
"isFirstUpload"
,
studentCard
.
getIsFirstUpload
()==
1
?
"是"
:
"否"
);
}
else
{
map
.
put
(
"isFirstUpload"
,
""
);
}
map
.
put
(
"agentBusinessman"
,
studentCard
.
getAgentBusinessman
());
list
.
add
(
map
);
}
List
<
Integer
>
list1
=
new
ArrayList
<>();
list1
.
add
(
2500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
2500
);
ServletOutputStream
os
=
null
;
XSSFWorkbook
workbook
=
ExcelDealUtils
.
getWorkBook2
(
ExcelDealUtils
.
studentCardExcel
(
"学生不限量证件清单"
),
list
,
list1
);
try
{
HttpServletResponse
response
=
getHttpServletResponse
();
response
.
reset
();
response
.
setCharacterEncoding
(
"UTF-8"
);
response
.
setContentType
(
"application/octet-stream"
);
os
=
response
.
getOutputStream
();
workbook
.
write
(
os
);
os
.
flush
();
}
catch
(
Exception
e
)
{
log
.
error
(
"文件出错!"
+
e
.
getMessage
(),
e
);
}
finally
{
IOUtils
.
closeQuite
(
workbook
,
os
);
}
}
}
service-manager/src/main/java/com/winsun/controller/StudentDwkVerifyController.java
0 → 100644
View file @
c99f1b00
package
com
.
winsun
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.baomidou.mybatisplus.enums.SqlLike
;
import
com.baomidou.mybatisplus.mapper.EntityWrapper
;
import
com.baomidou.mybatisplus.mapper.Wrapper
;
import
com.baomidou.mybatisplus.plugins.Page
;
import
com.winsun.auth.core.annotion.Permission
;
import
com.winsun.auth.core.base.controller.BaseController
;
import
com.winsun.auth.core.common.model.ResponseData
;
import
com.winsun.auth.core.shiro.ShiroUser
;
import
com.winsun.auth.core.util.DateUtil
;
import
com.winsun.auth.core.util.IOUtils
;
import
com.winsun.bean.StudentCertUpload
;
import
com.winsun.bean.SysUser
;
import
com.winsun.mapper.StudentCertUploadMapper
;
import
com.winsun.mapper.SysUserMapper
;
import
com.winsun.utils.ExcelDealUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.poi.xssf.usermodel.XSSFWorkbook
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.ServletOutputStream
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.*
;
/**
* 〈大王卡证件稽核〉
*
* @author PXL
* @create 2020/5/20 10:19
*/
@Slf4j
@RestController
@RequestMapping
(
"/studentDwkVerify"
)
public
class
StudentDwkVerifyController
extends
BaseController
{
@Autowired
private
StudentCertUploadMapper
studentCertUploadMapper
;
@Autowired
private
SysUserMapper
sysUserMapper
;
@Autowired
@Qualifier
(
"redisStringTemplate"
)
private
RedisTemplate
redisTemplate
;
/**
* 大王卡证件稽核信息添加
*
* @param lzKpi 添加对象json字符串
* @return
*/
@Permission
(
menuname
=
"添加大王卡证件稽核信息"
,
value
=
"insert"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
String
>
insertProduct
(
@RequestParam
(
"lzKpi"
)
String
lzKpi
)
{
ShiroUser
user
=
getShiroUser
();
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
)))
{
return
ResponseData
.
error
(
"无数据权限"
);
}
HashMap
hashMap
=
JSON
.
parseObject
(
lzKpi
,
HashMap
.
class
);
Wrapper
<
SysUser
>
sysWrapper
=
new
EntityWrapper
<>();
String
account
=
hashMap
.
get
(
"account"
).
toString
();
String
substName
=
hashMap
.
get
(
"substName"
).
toString
();
sysWrapper
.
eq
(
StringUtils
.
isNotBlank
(
account
),
"account"
,
account
);
sysWrapper
.
eq
(
StringUtils
.
isNotBlank
(
substName
),
"name"
,
substName
);
List
<
SysUser
>
sysUserList
=
sysUserMapper
.
selectList
(
sysWrapper
);
if
(
sysUserList
.
size
()>
0
){
/*ManagerKpi managerKpi = new ManagerKpi();
managerKpi.setUserId(Integer.valueOf(sysUserList.get(0).getId()));
managerKpi.setMonth(hashMap.get("month").toString());
managerKpi.setRechargeNum(Integer.valueOf(hashMap.get("rechargeNum").toString()));
managerKpi.setRechargeWage(Integer.valueOf(hashMap.get("rechargeWage").toString()));
managerKpi.setKpi(Integer.valueOf(hashMap.get("kpi").toString()));
managerKpi.setKpiWage(Integer.valueOf(hashMap.get("kpiWage").toString()));
managerKpi.setWage(Integer.valueOf(hashMap.get("wage").toString()));
managerKpiMapper.insert(managerKpi);*/
return
ResponseData
.
success
(
"添加成功!"
);
}
return
ResponseData
.
error
(
"账号不存在?"
);
}
/**
* 大王卡证件稽核删除
* @param id 需要删除的id
* @return
*/
@Permission
(
menuname
=
"删除正则信息"
,
value
=
"delete"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
String
>
deleteProduct
(
@RequestParam
(
name
=
"id"
,
required
=
false
)
String
id
,
@RequestParam
(
name
=
"isdel"
,
required
=
false
)
String
isdel
)
{
ShiroUser
user
=
getShiroUser
();
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
)))
{
return
ResponseData
.
error
(
"无数据权限"
);
}
//Wrapper wrapper = new EntityWrapper<>();
//wrapper.eq(StringUtils.isNotBlank(id),"id", id);
//Map<String, Object> dataMapping = new HashMap<>();
//dataMapping.put("is_del", isdel);
//lzKpiMapper.updateForSet(MyBatisPlusUpdateUtils.toUpdateSet(dataMapping), wrapper);
if
(
StringUtils
.
isNotBlank
(
id
)){
/*lzWageMpapper.deleteById(id);*/
return
ResponseData
.
success
(
"操作成功!"
);
}
return
ResponseData
.
error
(
"删除id不能为空!"
);
}
/**
* 修改大王卡证件稽核状态
* @param ids
* @param state
* @return
*/
@Permission
(
menuname
=
"修改大王卡证件稽核信息"
,
value
=
"update"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
String
>
updateProduct
(
@RequestParam
(
"ids"
)
String
ids
,
@RequestParam
(
"state"
)
Integer
state
)
{
ShiroUser
user
=
getShiroUser
();
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
)))
{
return
ResponseData
.
error
(
"无数据权限"
);
}
List
<
String
>
list1
=
Arrays
.
asList
(
ids
.
split
(
","
));
//[a, b, c]
List
<
Integer
>
list
=
new
ArrayList
<>();
for
(
String
s
:
list1
)
{
list
.
add
(
Integer
.
valueOf
(
s
));
}
Wrapper
<
StudentCertUpload
>
wrapper
=
new
EntityWrapper
<>();
StudentCertUpload
studentCard
=
new
StudentCertUpload
();
studentCard
.
setAuditState
(
state
);
wrapper
.
in
(
"id"
,
list
);
studentCertUploadMapper
.
update
(
studentCard
,
wrapper
);
return
ResponseData
.
success
(
"修改成功!"
);
}
/**
*
* @param userName
* @param orderPhone
* @param linkPhone
* @param auditName
* @param auditState
* @param uploadDate
* @param auditDate
* @param pageNo
* @param pageSize
* @return
*/
@Permission
(
menuname
=
"查询大王卡证件稽核信息"
,
value
=
"list"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
Page
<
StudentCertUpload
>>
listProduct
(
@RequestParam
(
name
=
"userName"
,
required
=
false
)
String
userName
,
@RequestParam
(
name
=
"orderPhone"
,
required
=
false
)
String
orderPhone
,
@RequestParam
(
name
=
"linkPhone"
,
required
=
false
)
String
linkPhone
,
@RequestParam
(
name
=
"auditName"
,
required
=
false
)
String
auditName
,
@RequestParam
(
name
=
"auditState"
,
required
=
false
)
String
auditState
,
@RequestParam
(
name
=
"uploadDate"
,
required
=
false
)
String
uploadDate
,
@RequestParam
(
name
=
"auditDate"
,
required
=
false
)
String
auditDate
,
@RequestParam
(
name
=
"pageNo"
)
int
pageNo
,
@RequestParam
(
name
=
"pageSize"
)
int
pageSize
)
{
ShiroUser
user
=
getShiroUser
();
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
)))
{
return
ResponseData
.
error
(
"无数据权限"
);
}
Page
<
StudentCertUpload
>
page
=
new
Page
<>(
pageNo
,
pageSize
);
Wrapper
<
StudentCertUpload
>
studentCardWrapper
=
new
EntityWrapper
<>();
studentCardWrapper
.
like
(
StringUtils
.
isNotBlank
(
userName
),
"user_name"
,
userName
,
SqlLike
.
DEFAULT
);
studentCardWrapper
.
like
(
StringUtils
.
isNotBlank
(
auditName
),
"audit_name"
,
auditName
,
SqlLike
.
DEFAULT
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
orderPhone
),
"order_phone"
,
orderPhone
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
linkPhone
),
"link_phone"
,
linkPhone
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
auditState
),
"audit_state"
,
auditState
);
if
(
StringUtils
.
isNotBlank
(
uploadDate
)){
String
[]
dates
=
uploadDate
.
split
(
"\\,"
);
if
(!
uploadDate
.
equals
(
","
)){
studentCardWrapper
.
between
(
"upload_date"
,
dates
[
0
],
dates
[
1
]);
}
}
if
(
StringUtils
.
isNotBlank
(
auditDate
)){
String
[]
dates
=
auditDate
.
split
(
"\\,"
);
if
(!
auditDate
.
equals
(
","
)){
studentCardWrapper
.
between
(
"audit_date"
,
dates
[
0
],
dates
[
1
]);
}
}
List
<
StudentCertUpload
>
studentCardList
=
studentCertUploadMapper
.
selectList
(
studentCardWrapper
);
List
<
StudentCertUpload
>
dataList
=
new
ArrayList
<>();
//redisTemplate.opsForValue().set(hcmap, hcmap, 60, TimeUnit.MINUTES);
if
(
studentCardList
.
size
()
<
pageSize
)
{
dataList
=
studentCardList
;
}
else
{
dataList
=
studentCardList
.
subList
((
pageNo
-
1
)*
pageSize
,
pageNo
*
pageSize
);
}
page
.
setRecords
(
dataList
);
page
.
setTotal
(
studentCardList
.
size
());
return
ResponseData
.
success
(
page
,
"查询成功!"
);
}
/**
*
* @param ids
* @return
*/
@Permission
(
menuname
=
"查询大王卡证件稽核信息"
,
value
=
"queryById"
,
method
=
RequestMethod
.
POST
)
public
ResponseData
<
StudentCertUpload
>
queryById
(
@RequestParam
(
"ids"
)
String
ids
)
{
ShiroUser
user
=
getShiroUser
();
if
(!
user
.
getRoleNames
().
stream
().
anyMatch
(
roleName
->
StringUtils
.
equalsAny
(
roleName
,
"超级管理员"
)))
{
return
ResponseData
.
error
(
"无数据权限"
);
}
List
<
String
>
list1
=
Arrays
.
asList
(
ids
.
split
(
","
));
//[a, b, c]
String
id
=
""
;
if
(
list1
.
size
()>
0
){
id
=
list1
.
get
(
0
);
}
else
{
return
ResponseData
.
error
(
"查询ID不能为空!!!"
);
}
Wrapper
<
StudentCertUpload
>
studentCardWrapper
=
new
EntityWrapper
<>();
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
id
),
"id"
,
id
);
StudentCertUpload
studentCard
=
studentCertUploadMapper
.
selectList
(
studentCardWrapper
).
get
(
0
);
return
ResponseData
.
success
(
studentCard
,
"查询成功!"
);
}
/**
*
* @param auditState
* @throws IOException
*/
@Permission
(
menuname
=
"导出大王卡证件稽核信息"
,
value
=
"excelOut"
,
method
=
RequestMethod
.
POST
)
public
void
excelOut
(
@RequestParam
(
name
=
"userName"
,
required
=
false
)
String
userName
,
@RequestParam
(
name
=
"orderPhone"
,
required
=
false
)
String
orderPhone
,
@RequestParam
(
name
=
"linkPhone"
,
required
=
false
)
String
linkPhone
,
@RequestParam
(
name
=
"auditName"
,
required
=
false
)
String
auditName
,
@RequestParam
(
name
=
"auditState"
,
required
=
false
)
String
auditState
,
@RequestParam
(
name
=
"uploadDate"
,
required
=
false
)
String
uploadDate
,
@RequestParam
(
name
=
"auditDate"
,
required
=
false
)
String
auditDate
)
throws
IOException
{
Wrapper
<
StudentCertUpload
>
studentCardWrapper
=
new
EntityWrapper
<>();
studentCardWrapper
.
like
(
StringUtils
.
isNotBlank
(
userName
),
"user_name"
,
userName
,
SqlLike
.
DEFAULT
);
studentCardWrapper
.
like
(
StringUtils
.
isNotBlank
(
auditName
),
"audit_name"
,
auditName
,
SqlLike
.
DEFAULT
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
orderPhone
),
"order_phone"
,
orderPhone
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
linkPhone
),
"link_phone"
,
linkPhone
);
studentCardWrapper
.
eq
(
StringUtils
.
isNotBlank
(
auditState
),
"audit_state"
,
auditState
);
if
(
StringUtils
.
isNotBlank
(
uploadDate
)){
String
[]
dates
=
uploadDate
.
split
(
"\\,"
);
if
(!
uploadDate
.
equals
(
","
)){
studentCardWrapper
.
between
(
"upload_date"
,
dates
[
0
],
dates
[
1
]);
}
}
if
(
StringUtils
.
isNotBlank
(
auditDate
)){
String
[]
dates
=
auditDate
.
split
(
"\\,"
);
if
(!
auditDate
.
equals
(
","
)){
studentCardWrapper
.
between
(
"audit_date"
,
dates
[
0
],
dates
[
1
]);
}
}
List
<
StudentCertUpload
>
studentCards
=
studentCertUploadMapper
.
selectList
(
studentCardWrapper
);
List
<
Map
<
String
,
Object
>>
list
=
new
LinkedList
<>();
for
(
StudentCertUpload
studentCard
:
studentCards
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"userName"
,
studentCard
.
getUserName
());
map
.
put
(
"orderPhone"
,
studentCard
.
getOrderPhone
());
map
.
put
(
"linkPhone"
,
studentCard
.
getLinkPhone
());
map
.
put
(
"auditName"
,
studentCard
.
getAuditName
());
if
(
null
!=
studentCard
.
getAuditDate
()){
map
.
put
(
"auditDate"
,
DateUtil
.
formatDate
(
studentCard
.
getAuditDate
(),
"yyyy-mm-dd"
));
}
else
{
map
.
put
(
"auditDate"
,
""
);
}
Integer
state
=
studentCard
.
getAuditState
();
if
(
state
==
1
)
map
.
put
(
"auditState"
,
"未审核"
);
else
if
(
state
==
2
)
map
.
put
(
"auditState"
,
"审核通过"
);
else
if
(
state
==
3
)
map
.
put
(
"auditState"
,
"审核不通过"
);
else
if
(
state
==
4
)
map
.
put
(
"auditState"
,
"无效"
);
if
(
null
!=
studentCard
.
getAuditDate
()){
map
.
put
(
"uploadDate"
,
DateUtil
.
formatDate
(
studentCard
.
getAuditDate
(),
"yyyy-mm-dd"
));
}
else
{
map
.
put
(
"uploadDate"
,
""
);
}
map
.
put
(
"agentBusinessman"
,
studentCard
.
getAgentBusinessman
());
list
.
add
(
map
);
}
List
<
Integer
>
list1
=
new
ArrayList
<>();
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
list1
.
add
(
4500
);
ServletOutputStream
os
=
null
;
XSSFWorkbook
workbook
=
ExcelDealUtils
.
getWorkBook2
(
ExcelDealUtils
.
studentCertExcel
(
"大王卡证件稽核清单"
),
list
,
list1
);
try
{
HttpServletResponse
response
=
getHttpServletResponse
();
response
.
reset
();
response
.
setCharacterEncoding
(
"UTF-8"
);
response
.
setContentType
(
"application/octet-stream"
);
os
=
response
.
getOutputStream
();
workbook
.
write
(
os
);
os
.
flush
();
}
catch
(
Exception
e
)
{
log
.
error
(
"文件出错!"
+
e
.
getMessage
(),
e
);
}
finally
{
IOUtils
.
closeQuite
(
workbook
,
os
);
}
}
}
service-manager/src/main/java/com/winsun/utils/ExcelDealUtils.java
View file @
c99f1b00
...
...
@@ -308,7 +308,49 @@ public class ExcelDealUtils {
Map
<
String
,
Object
>
resultMap
=
dealHeadMap
(
headMap
);
resultMap
.
put
(
"sheetName"
,
sheetName
);
return
resultMap
;
}
// 大王卡证件稽核清单导出excel表头s
public
static
Map
<
String
,
Object
>
studentCertExcel
(
String
sheetName
){
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<
String
,
Object
>();
headMap
.
put
(
"姓名"
,
"userName"
);
headMap
.
put
(
"办理号码"
,
"orderPhone"
);
headMap
.
put
(
"联系号码"
,
"linkPhone"
);
headMap
.
put
(
"审核人姓名"
,
"auditName"
);
headMap
.
put
(
"审核时间"
,
"auditDate"
);
headMap
.
put
(
"是否通过审核"
,
"auditState"
);
headMap
.
put
(
"上传时间"
,
"uploadDate"
);
headMap
.
put
(
"代理商"
,
"agentBusinessman"
);
Map
<
String
,
Object
>
resultMap
=
dealHeadMap
(
headMap
);
resultMap
.
put
(
"sheetName"
,
sheetName
);
return
resultMap
;
}
// 学生不限量证件清单导出excel表头s
public
static
Map
<
String
,
Object
>
studentCardExcel
(
String
sheetName
){
Map
<
String
,
Object
>
headMap
=
new
LinkedHashMap
<
String
,
Object
>();
headMap
.
put
(
"姓名"
,
"userName"
);
headMap
.
put
(
"办理号码"
,
"orderPhone"
);
headMap
.
put
(
"联系号码"
,
"linkPhone"
);
headMap
.
put
(
"审核人姓名"
,
"auditName"
);
headMap
.
put
(
"审核时间"
,
"auditDate"
);
headMap
.
put
(
"是否通过审核"
,
"auditState"
);
headMap
.
put
(
"县分"
,
"county"
);
headMap
.
put
(
"学校"
,
"school"
);
headMap
.
put
(
"办理号码是否新49"
,
"isComboMoney49"
);
headMap
.
put
(
"是否已上传学生证照片、学校等必填信息"
,
"isFull"
);
headMap
.
put
(
"学生证照片是否清晰"
,
"isClear"
);
headMap
.
put
(
"学生年龄是否25岁及以下"
,
"isUnderYears"
);
headMap
.
put
(
"号码被实名人员与上传学生证用户是否一致"
,
"isStudentAccordance"
);
headMap
.
put
(
"学生证所属学校与号码所属学校是否一致"
,
"isSchoolAccordance"
);
headMap
.
put
(
"资料上传时间是否早于CRM系统激活时间"
,
"isUploadBeforeActivate"
);
headMap
.
put
(
"上传时间"
,
"uploadDate"
);
headMap
.
put
(
"crm激活时间"
,
"crnActivateDate"
);
headMap
.
put
(
"是否首次上传"
,
"isFirstUpload"
);
headMap
.
put
(
"代理商"
,
"agentBusinessman"
);
Map
<
String
,
Object
>
resultMap
=
dealHeadMap
(
headMap
);
resultMap
.
put
(
"sheetName"
,
sheetName
);
return
resultMap
;
}
...
...
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