Commit c99f1b00 by 彭祥礼

学生不限量证件和大王卡证件稽核

parent f12eb271
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 {
/**
*
*/
@TableId(value = "report_daily")
@TableField(value = "report_daily")
private Integer reportDaily;
/**
*
*/
@TableId(value = "collective_sales")
@TableField(value = "collective_sales")
private Integer collectiveSales;
/**
*
*/
@TableId(value = "weekly_meeting")
@TableField(value = "weekly_meeting")
private Integer weeklyMeeting;
/**
*
*/
@TableId(value = "organ_training")
@TableField(value = "organ_training")
private Integer organTraining;
/**
*
*/
@TableId(value = "design_plan")
@TableField(value = "design_plan")
private Integer designPlan;
/**
*
......@@ -53,7 +54,7 @@ public class LzKpi implements Serializable {
/**
*
*/
@TableId(value = "user_id")
@TableField(value = "user_id")
private String userId;
/**
......@@ -63,7 +64,7 @@ public class LzKpi implements Serializable {
/**
*
*/
@TableId(value = "is_del")
@TableField(value = "is_del")
private String isDel;
......
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;
}
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> {
}
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> {
}
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;
}
}
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment