Commit f2328eb8 by 丁伟

1、解决部分bug

parent d3a72e14
...@@ -182,7 +182,6 @@ public class MetadataService { ...@@ -182,7 +182,6 @@ public class MetadataService {
map.put("dataName",metadata.getDataName()); map.put("dataName",metadata.getDataName());
map.put("dataType",metadata.getDataType()); map.put("dataType",metadata.getDataType());
map.put("description",metadata.getDescription()); map.put("description",metadata.getDescription());
map.put("description",metadata.getDescription());
map.put("languageType", "english".equals(metadata.getLanguageType())?"英文":"中文"); map.put("languageType", "english".equals(metadata.getLanguageType())?"英文":"中文");
return map; return map;
} }
......
...@@ -11,10 +11,7 @@ package org.ccpit.business.registerManage; ...@@ -11,10 +11,7 @@ package org.ccpit.business.registerManage;
import java.io.IOException; import java.io.IOException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
......
...@@ -260,7 +260,7 @@ public class RegisterInfo implements Serializable { ...@@ -260,7 +260,7 @@ public class RegisterInfo implements Serializable {
/** /**
* 发票开具时间 * 发票开具时间
*/ */
private String taxIssue; private Integer taxIssue;
/** /**
* 发票内容 * 发票内容
*/ */
...@@ -662,11 +662,11 @@ public class RegisterInfo implements Serializable { ...@@ -662,11 +662,11 @@ public class RegisterInfo implements Serializable {
this.img3 = img3; this.img3 = img3;
} }
public String getTaxIssue() { public Integer getTaxIssue() {
return taxIssue; return taxIssue;
} }
public void setTaxIssue(String taxIssue) { public void setTaxIssue(Integer taxIssue) {
this.taxIssue = taxIssue; this.taxIssue = taxIssue;
} }
......
...@@ -13,11 +13,7 @@ import java.io.OutputStream; ...@@ -13,11 +13,7 @@ import java.io.OutputStream;
import java.lang.reflect.Field; import java.lang.reflect.Field;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.*;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.transaction.Transactional; import javax.transaction.Transactional;
...@@ -62,6 +58,7 @@ public class RegisterService { ...@@ -62,6 +58,7 @@ public class RegisterService {
List<Metadata> invoiceTypeM = null; List<Metadata> invoiceTypeM = null;
List<Metadata> subjectM = null; List<Metadata> subjectM = null;
List<Metadata> appreciationTaxType = null; List<Metadata> appreciationTaxType = null;
List<Metadata> taxIssue = null;
public void initMetadata() { public void initMetadata() {
registerStatusM = metadataService.getMetadatasByType2("status");// 报名状态 registerStatusM = metadataService.getMetadatasByType2("status");// 报名状态
...@@ -69,6 +66,7 @@ public class RegisterService { ...@@ -69,6 +66,7 @@ public class RegisterService {
invoiceTypeM = metadataService.getMetadatasByType2("invoiceType");// 发票类型 invoiceTypeM = metadataService.getMetadatasByType2("invoiceType");// 发票类型
subjectM = metadataService.getMetadatasByType2("subject");// 考试科目 subjectM = metadataService.getMetadatasByType2("subject");// 考试科目
appreciationTaxType = metadataService.getMetadatasByType2("appreciationTaxType");// 增值税发票 appreciationTaxType = metadataService.getMetadatasByType2("appreciationTaxType");// 增值税发票
taxIssue = metadataService.getMetadatasByType2("taxIssue");// 发票开具时间
} }
@Resource @Resource
...@@ -150,7 +148,7 @@ public class RegisterService { ...@@ -150,7 +148,7 @@ public class RegisterService {
sb.append(" and registerStatus='"+status+"'"); sb.append(" and registerStatus='"+status+"'");
} }
List<SubjectInfo> subjectInfos = subjectInfoDao.query(sb.toString()); List<SubjectInfo> subjectInfos = subjectInfoDao.query(sb.toString());
List<RegisterInfo> registerInfos = new ArrayList<RegisterInfo>(); List<RegisterInfo> registerInfos = new ArrayList<>();
String hql = ""; String hql = "";
if(phase != null && phase != 0){ if(phase != null && phase != 0){
hql = "from RegisterInfo where phase.id = '" + phase + "'"; hql = "from RegisterInfo where phase.id = '" + phase + "'";
...@@ -162,20 +160,42 @@ public class RegisterService { ...@@ -162,20 +160,42 @@ public class RegisterService {
long registerInfo_id = s_info.getRegisterInfo_id(); long registerInfo_id = s_info.getRegisterInfo_id();
for (RegisterInfo r_info : registerInfoList) { for (RegisterInfo r_info : registerInfoList) {
if (registerInfo_id == r_info.getId()) { if (registerInfo_id == r_info.getId()) {
r_info.setSubject(s_info.getSubject()); RegisterInfo n_info = new RegisterInfo();
r_info.setRegisterStatus(s_info.getRegisterStatus()); n_info.setId(s_info.getId());
r_info.setAppreciationTaxType(s_info.getAppreciationTaxType()); n_info.setSubject(s_info.getSubject());
r_info.setInvoiceType(s_info.getInvoiceType()); n_info.setRegisterStatus(s_info.getRegisterStatus());
r_info.setInvoiceTitle(s_info.getInvoiceTitle()); n_info.setAppreciationTaxType(s_info.getAppreciationTaxType());
r_info.setTaxpayerNum(s_info.getTaxpayerNum()); n_info.setInvoiceType(s_info.getInvoiceType());
r_info.setAddressName(s_info.getAddressName()); n_info.setInvoiceTitle(s_info.getInvoiceTitle());
r_info.setTelephone(s_info.getTelephone()); n_info.setTaxpayerNum(s_info.getTaxpayerNum());
r_info.setBankAddress(s_info.getBankAddress()); n_info.setAddressName(s_info.getAddressName());
r_info.setBankAccount(s_info.getBankAccount()); n_info.setTelephone(s_info.getTelephone());
r_info.setImg1(s_info.getImg1()); n_info.setBankAddress(s_info.getBankAddress());
r_info.setTaxIssue(s_info.getTaxIssue()); n_info.setBankAccount(s_info.getBankAccount());
r_info.setPayTime(s_info.getPayTime()); // n_info.setImg1(s_info.getImg1());
registerInfos.add(r_info); n_info.setTaxIssue(s_info.getTaxIssue());
n_info.setPayTime(s_info.getPayTime());
n_info.setName(r_info.getName());
n_info.setGender(r_info.getGender());
n_info.setBirthday(r_info.getBirthday());
n_info.setTelphone(r_info.getTelphone());
n_info.setMobileTel(r_info.getMobileTel());
n_info.setEmail(r_info.getEmail());
n_info.setCompany(r_info.getCompany());
n_info.setCompany_en(r_info.getCompany_en());
n_info.setAddress(r_info.getAddress());
n_info.setTitle(r_info.getTitle());
n_info.setEmail_en(r_info.getEmail_en());
n_info.setDateOfBirth(r_info.getDateOfBirth());
n_info.setGender_en(r_info.getGender_en());
n_info.setName_en(r_info.getName_en());
n_info.setName_en_last(r_info.getName_en_last());
n_info.setAddress_en(r_info.getAddress_en());
n_info.setCountry(r_info.getCountry());
n_info.setDcNumber(r_info.getDcNumber());
n_info.setPhone(r_info.getPhone());
n_info.setSubmitTime(s_info.getSubmitTime());
registerInfos.add(n_info);
} }
} }
} }
...@@ -214,8 +234,8 @@ public class RegisterService { ...@@ -214,8 +234,8 @@ public class RegisterService {
map.put("email", RegisterInfo.getEmail()); map.put("email", RegisterInfo.getEmail());
map.put("company", RegisterInfo.getCompany()); map.put("company", RegisterInfo.getCompany());
map.put("invoiceInfo", RegisterInfo.getInvoiceInfo()); map.put("invoiceInfo", RegisterInfo.getInvoiceInfo());
map.put("invoiceType", // map.put("invoiceType",
TypeUtils.translateData("invoiceType", RegisterInfo.getInvoiceType())); // TypeUtils.translateData("invoiceType", RegisterInfo.getInvoiceType()));
map.put("subject", TypeUtils.translateData("subject", RegisterInfo.getSubject())); map.put("subject", TypeUtils.translateData("subject", RegisterInfo.getSubject()));
map.put("registerStatus", map.put("registerStatus",
TypeUtils.translateData("registerStatus", TypeUtils.translateData("registerStatus",
...@@ -305,10 +325,10 @@ public class RegisterService { ...@@ -305,10 +325,10 @@ public class RegisterService {
public Map<String, String> initProsHeader() { public Map<String, String> initProsHeader() {
Map<String, String> mapProsHeader = new HashMap<String, String>(); Map<String, String> mapProsHeader = new HashMap<String, String>();
String[] enPros = {"id", "submitTime", "city", "name", "password", "gender", "birthday", "telphone", "mobileTel", "email", "company", "address" String[] enPros = {"id", "submitTime", "city", "name", "password", "gender", "birthday", "telphone", "mobileTel", "email", "company", "address"
, "appreciationTaxType","taxIssue","invoiceTitle", "invoiceInfo", "taxpayerNum", "addressName", "telephone", "bankAddress", "bankAccount", "title", "dateOfBirth", "gender_en", "name_en", "name_en_last", "company_en", "address_en" , "taxIssue","appreciationTaxType","invoiceTitle", "invoiceInfo", "taxpayerNum", "addressName", "telephone", "bankAddress", "bankAccount", "title", "dateOfBirth", "gender_en", "name_en", "name_en_last", "company_en", "address_en"
, "country", "dcNumber", "payTime", "phone", "city_en", "subject", "subject2", "registerStatus", "sort", "whetherDelete" , "country", "dcNumber", "payTime", "phone", "city_en", "subject", "subject2", "registerStatus", "sort", "whetherDelete"
, "creator", "createTime", "modifyBy", "modifyTime"}; , "creator", "createTime", "modifyBy", "modifyTime"};
String[] cnPros = {"序号", "提交时间", "城市", "姓名", "密码", "性别", "出生日期", "电话", "手机", "EMAIL", "工作单位", "联系地址","发票开具时间","增值税发票类型", "发票抬头", "发票类型", "纳税人识别号", "公司地址", "公司电话", "开户行", "银行账号" String[] cnPros = {"序号", "提交时间", "城市", "姓名", "密码", "性别", "出生日期", "电话", "手机", "EMAIL", "工作单位", "联系地址","发票开具时间","增值税发票类型", "发票抬头", "发票内容", "纳税人识别号", "公司地址", "公司电话", "开户行", "银行账号"
, "TITLE", "DATE OF BIRTH", "GENDER", "Family NAME", "Given NAME", "COMPANY NAME", "ADDRESS", "COUNTRY", "DC/IFS NUMBER", "缴费时间", "PHONE", "CITY SELECT" , "TITLE", "DATE OF BIRTH", "GENDER", "Family NAME", "Given NAME", "COMPANY NAME", "ADDRESS", "COUNTRY", "DC/IFS NUMBER", "缴费时间", "PHONE", "CITY SELECT"
, "考试科目", "考试科目", "报名状态", "排序号", "是否删除", "创建人", "创建时间", "修改人", "修改时间"}; , "考试科目", "考试科目", "报名状态", "排序号", "是否删除", "创建人", "创建时间", "修改人", "修改时间"};
for (int i = 0; i < enPros.length; i++) { for (int i = 0; i < enPros.length; i++) {
......
...@@ -85,7 +85,7 @@ public class SubjectInfo implements Serializable { ...@@ -85,7 +85,7 @@ public class SubjectInfo implements Serializable {
/** /**
* 发票开具时间 * 发票开具时间
*/ */
private String taxIssue; private Integer taxIssue;
/** /**
* 备注 * 备注
*/ */
...@@ -224,11 +224,11 @@ public class SubjectInfo implements Serializable { ...@@ -224,11 +224,11 @@ public class SubjectInfo implements Serializable {
this.img3 = img3; this.img3 = img3;
} }
public String getTaxIssue() { public Integer getTaxIssue() {
return taxIssue; return taxIssue;
} }
public void setTaxIssue(String taxIssue) { public void setTaxIssue(Integer taxIssue) {
this.taxIssue = taxIssue; this.taxIssue = taxIssue;
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
/* create by dingwei 20210617 start */ /* create by dingwei 20210702 start */
set character set utf8; alter table reg_registerinfo modify taxIssue Integer;
update reg_subjectinfo set registerName = '邓默' where registerInfo_id = 12983; alter table reg_subjectinfo modify taxIssue Integer;
update reg_subjectinfo set registerName = '丁伟' where registerInfo_id = 12979; /* create by dingwei 20210702 end */
update reg_subjectinfo set registerName = '丁伟' where registerInfo_id = 12979;
/* create by dingwei 20210617 end */ select id,name,whetherDelete from reg_registerinfo where taxpayerNum = '9142';
\ No newline at end of file
/* create by dingwei 20210617 start */
set character set utf8;
update reg_subjectinfo set registerName = '邓默' where registerInfo_id = 12983;
update reg_subjectinfo set registerName = '丁伟' where registerInfo_id = 12979;
update reg_subjectinfo set registerName = '丁伟' where registerInfo_id = 12979;
/* create by dingwei 20210617 end */
...@@ -248,6 +248,15 @@ ...@@ -248,6 +248,15 @@
<div class="ele-select"> <div class="ele-select">
<input type="checkbox" checked="checked"> <input type="checkbox" checked="checked">
</div> </div>
<div class="ele-name" val="taxIssue">发票开具时间</div>
<div class="ele">
<a class="up">&uarr;</a><a class="down">&darr;</a>
</div>
</div>
<div class="block">
<div class="ele-select">
<input type="checkbox" checked="checked">
</div>
<div class="ele-name" val="invoiceTitle">发票抬头</div> <div class="ele-name" val="invoiceTitle">发票抬头</div>
<div class="ele"> <div class="ele">
<a class="up">&uarr;</a><a class="down">&darr;</a> <a class="up">&uarr;</a><a class="down">&darr;</a>
......
...@@ -31,4 +31,7 @@ ...@@ -31,4 +31,7 @@
},{ },{
"id":"engender", "id":"engender",
"text":"性别(英)" "text":"性别(英)"
},{
"id":"taxIssue",
"text":"发票开出时间"
}] }]
\ No newline at end of file
...@@ -344,6 +344,7 @@ function initInputWidth(){ ...@@ -344,6 +344,7 @@ function initInputWidth(){
$("#standby1Id").attr("style", "width:" + fixShortWidth() + "px"); $("#standby1Id").attr("style", "width:" + fixShortWidth() + "px");
$("#nameId").attr("style", "width:" + fixShortWidth() + "px"); $("#nameId").attr("style", "width:" + fixShortWidth() + "px");
$("#invoiceInfo_Id").attr("style", "width:" + fixShortWidth() + "px");
$("#name_enId").attr("style", "width:" + fixShortWidth() + "px"); $("#name_enId").attr("style", "width:" + fixShortWidth() + "px");
$("#name_en_lastId").attr("style", "width:" + fixShortWidth() + "px"); $("#name_en_lastId").attr("style", "width:" + fixShortWidth() + "px");
$("#postId").attr("style", "width:" + fixShortWidth() + "px"); $("#postId").attr("style", "width:" + fixShortWidth() + "px");
...@@ -365,6 +366,7 @@ function initInputWidth(){ ...@@ -365,6 +366,7 @@ function initInputWidth(){
$("#bankAccountId").attr("style", "width:" + fixShortWidth() + "px"); $("#bankAccountId").attr("style", "width:" + fixShortWidth() + "px");
$("#dcNumberId").attr("style", "width:" + fixShortWidth() + "px"); $("#dcNumberId").attr("style", "width:" + fixShortWidth() + "px");
$("#countryId").attr("style", "width:" + fixShortWidth() + "px"); $("#countryId").attr("style", "width:" + fixShortWidth() + "px");
$("#invoiceInfoId").attr("style", "width:" + fixShortWidth() + "px");
$("#invoiceTitle_Id").attr("style", "width:" + fixShortWidth() + "px"); $("#invoiceTitle_Id").attr("style", "width:" + fixShortWidth() + "px");
$("#addressName_Id").attr("style", "width:" + fixShortWidth() + "px"); $("#addressName_Id").attr("style", "width:" + fixShortWidth() + "px");
......
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