Commit e91ea3bc by 翁国栋

运营后台--

三轮车号码验证
parent 29684e9e
...@@ -285,6 +285,7 @@ public class InsureContorll { ...@@ -285,6 +285,7 @@ public class InsureContorll {
insureUser.setInsuredNo(y.getZjNum()); insureUser.setInsuredNo(y.getZjNum());
insureUser.setInsuredEContact(y.getName()); insureUser.setInsuredEContact(y.getName());
insureUser.setApplicantEmployeeList(url); insureUser.setApplicantEmployeeList(url);
insureUser.setTricycleFrameNumber(insureDto.getTricycleFrameNumber());
if (dataMap.get("errcode").toString().equals("suc")) { if (dataMap.get("errcode").toString().equals("suc")) {
insureUser.setInsureStatus(1); insureUser.setInsureStatus(1);
insureUser.setStatus("1"); insureUser.setStatus("1");
...@@ -405,7 +406,7 @@ public class InsureContorll { ...@@ -405,7 +406,7 @@ public class InsureContorll {
} }
Integer price = getPrice(insureDto.getBenefitBasicPlan(),insureDto.getBenefitOccupationCategory()); Integer price = getPrice(insureDto.getBenefitBasicPlan(),insureDto.getBenefitOccupationCategory());
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
String url = creaXSSFWorkbook1(insureDto.getUserIds(), insureDto.getPolicyDateStart(),price); String url = creaXSSFWorkbook1(insureDto.getUserIds(), insureDto.getPolicyDateStart(),price,insureDto.getTricycleFrameNumber());
log.info("保全增员文件地址", url); log.info("保全增员文件地址", url);
DateTimeFormatter dtf2 = DateTimeFormatter.ofPattern("yyyyMMddHHmmss"); DateTimeFormatter dtf2 = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
Map bodyMap = Maps.newHashMap(); Map bodyMap = Maps.newHashMap();
...@@ -448,6 +449,7 @@ public class InsureContorll { ...@@ -448,6 +449,7 @@ public class InsureContorll {
.insuredMobile(y.getPhone()) .insuredMobile(y.getPhone())
.benefitOccupationCategory(insureDto.getBenefitOccupationCategory()) .benefitOccupationCategory(insureDto.getBenefitOccupationCategory())
.insuredNo(y.getZjNum()) .insuredNo(y.getZjNum())
.tricycleFrameNumber(insureDto.getTricycleFrameNumber())
.insuredEContact(y.getName()) .insuredEContact(y.getName())
.applyType(1) .applyType(1)
.applicantEmployeeList(data.get("file_url").toString()) .applicantEmployeeList(data.get("file_url").toString())
...@@ -472,7 +474,7 @@ public class InsureContorll { ...@@ -472,7 +474,7 @@ public class InsureContorll {
* @param ids * @param ids
* @return * @return
*/ */
public String creaXSSFWorkbook1(String[] ids, String date,Integer price) { public String creaXSSFWorkbook1(String[] ids, String date,Integer price,String tricycleFrameNumber) {
if (ids.length <= 0) { if (ids.length <= 0) {
return "error"; return "error";
} }
...@@ -480,7 +482,7 @@ public class InsureContorll { ...@@ -480,7 +482,7 @@ public class InsureContorll {
List<YgglMainEmp> ygglMainEmpList = ygglMainEmpMapper.selectListByIds(ids); List<YgglMainEmp> ygglMainEmpList = ygglMainEmpMapper.selectListByIds(ids);
List list = Lists.newArrayList(); List list = Lists.newArrayList();
for (YgglMainEmp y : ygglMainEmpList) { for (YgglMainEmp y : ygglMainEmpList) {
String[] arr = new String[]{String.valueOf(y.getId()), y.getName(), "身份证", y.getZjNum(), InsuranceEnum.getEnum(price).getName(), date, "深圳名邦人力资源管理有限公司", "无", InsuranceEnum.getEnum(price).getType()}; String[] arr = new String[]{String.valueOf(y.getId()), y.getName(), "身份证", y.getZjNum(), InsuranceEnum.getEnum(price).getName(), date, "深圳名邦人力资源管理有限公司", StringUtils.isNullOrEmpty(tricycleFrameNumber)?"无":tricycleFrameNumber, InsuranceEnum.getEnum(price).getType()};
list.add(arr); list.add(arr);
} }
String[] rowName = new String[]{"ID", "name", "ID_type", "ID_number", "Scheme_name", "Date_start", "Branch", "Tricycle_frame_number", "benefit_occupation_category"}; String[] rowName = new String[]{"ID", "name", "ID_type", "ID_number", "Scheme_name", "Date_start", "Branch", "Tricycle_frame_number", "benefit_occupation_category"};
...@@ -579,7 +581,7 @@ public class InsureContorll { ...@@ -579,7 +581,7 @@ public class InsureContorll {
} }
Integer price = getPrice(insureDto.getBenefitBasicPlan(),insureDto.getBenefitOccupationCategory()); Integer price = getPrice(insureDto.getBenefitBasicPlan(),insureDto.getBenefitOccupationCategory());
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
String url = creaXSSFWorkbook2(insureDto.getUserIds(), insureDto.getPolicyDateStart(),oldUser,insureDto.getBenefitOccupationCategory()); String url = creaXSSFWorkbook2(insureDto.getUserIds(), insureDto.getPolicyDateStart(),oldUser,insureDto.getBenefitOccupationCategory(),insureDto.getTricycleFrameNumber());
log.info("保全替换文件地址", url); log.info("保全替换文件地址", url);
DateTimeFormatter dtf2 = DateTimeFormatter.ofPattern("yyyyMMddHHmmss"); DateTimeFormatter dtf2 = DateTimeFormatter.ofPattern("yyyyMMddHHmmss");
Map bodyMap = Maps.newHashMap(); Map bodyMap = Maps.newHashMap();
...@@ -622,6 +624,7 @@ public class InsureContorll { ...@@ -622,6 +624,7 @@ public class InsureContorll {
.insuredMobile(y.getPhone()) .insuredMobile(y.getPhone())
.benefitOccupationCategory(insureDto.getBenefitOccupationCategory()) .benefitOccupationCategory(insureDto.getBenefitOccupationCategory())
.insuredNo(y.getZjNum()) .insuredNo(y.getZjNum())
.tricycleFrameNumber(insureDto.getTricycleFrameNumber())
.insuredEContact(y.getName()) .insuredEContact(y.getName())
.applicantEmployeeList(data.get("file_url").toString()) .applicantEmployeeList(data.get("file_url").toString())
.policyDateStart(dtf3.parse(insureDto.getPolicyDateStart())) .policyDateStart(dtf3.parse(insureDto.getPolicyDateStart()))
...@@ -650,7 +653,7 @@ public class InsureContorll { ...@@ -650,7 +653,7 @@ public class InsureContorll {
* @param ids * @param ids
* @return * @return
*/ */
public String creaXSSFWorkbook2(String[] ids,String date,String[] oldIds,String type) { public String creaXSSFWorkbook2(String[] ids,String date,String[] oldIds,String type,String tricycleFrameNumber) {
if (ids.length <= 0||oldIds.length<=0) { if (ids.length <= 0||oldIds.length<=0) {
return "error"; return "error";
} }
...@@ -670,7 +673,7 @@ public class InsureContorll { ...@@ -670,7 +673,7 @@ public class InsureContorll {
newList.get(i).getName(), newList.get(i).getName(),
"身份证", "身份证",
newList.get(i).getZjNum(), newList.get(i).getZjNum(),
"","","","","","","无","1",type.equals("63119")?"A类":type.equals("63120")?"B类":"C类"}; "","","","","","",StringUtils.isNullOrEmpty(tricycleFrameNumber)?"无":tricycleFrameNumber,"1",type.equals("63119")?"A类":type.equals("63120")?"B类":"C类"};
list.add(arr); list.add(arr);
} }
String[] rowName = new String[]{"ID", "name", "ID_type", "ID_number", "Update_date", "replace_name", "replace_ID_type", String[] rowName = new String[]{"ID", "name", "ID_type", "ID_number", "Update_date", "replace_name", "replace_ID_type",
......
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