Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
registration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
13
Issues
13
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
丁伟
registration
Commits
f2328eb8
Commit
f2328eb8
authored
Jul 04, 2021
by
丁伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、解决部分bug
parent
d3a72e14
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
80 additions
and
41 deletions
+80
-41
src/main/java/org/ccpit/base/metadataManage/MetadataService.java
+0
-1
src/main/java/org/ccpit/business/registerManage/RegisterController.java
+1
-4
src/main/java/org/ccpit/business/registerManage/RegisterInfo.java
+3
-3
src/main/java/org/ccpit/business/registerManage/RegisterService.java
+44
-24
src/main/java/org/ccpit/business/registerManage/SubjectInfo.java
+3
-3
src/main/sql/init.sql
+0
-0
src/main/sql/update.sql
+7
-6
src/main/sql/update_20210702.sql
+7
-0
src/main/webapp/WEB-INF/jsp/business/registerInfoListPage.jsp
+9
-0
src/main/webapp/resource/admin/metadataManage/dataType.json
+4
-0
src/main/webapp/resource/business/registration.js
+2
-0
No files found.
src/main/java/org/ccpit/base/metadataManage/MetadataService.java
View file @
f2328eb8
...
...
@@ -182,7 +182,6 @@ public class MetadataService {
map
.
put
(
"dataName"
,
metadata
.
getDataName
());
map
.
put
(
"dataType"
,
metadata
.
getDataType
());
map
.
put
(
"description"
,
metadata
.
getDescription
());
map
.
put
(
"description"
,
metadata
.
getDescription
());
map
.
put
(
"languageType"
,
"english"
.
equals
(
metadata
.
getLanguageType
())?
"英文"
:
"中文"
);
return
map
;
}
...
...
src/main/java/org/ccpit/business/registerManage/RegisterController.java
View file @
f2328eb8
...
...
@@ -11,10 +11,7 @@ package org.ccpit.business.registerManage;
import
java.io.IOException
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
...
...
src/main/java/org/ccpit/business/registerManage/RegisterInfo.java
View file @
f2328eb8
...
...
@@ -260,7 +260,7 @@ public class RegisterInfo implements Serializable {
/**
* 发票开具时间
*/
private
String
taxIssue
;
private
Integer
taxIssue
;
/**
* 发票内容
*/
...
...
@@ -662,11 +662,11 @@ public class RegisterInfo implements Serializable {
this
.
img3
=
img3
;
}
public
String
getTaxIssue
()
{
public
Integer
getTaxIssue
()
{
return
taxIssue
;
}
public
void
setTaxIssue
(
String
taxIssue
)
{
public
void
setTaxIssue
(
Integer
taxIssue
)
{
this
.
taxIssue
=
taxIssue
;
}
...
...
src/main/java/org/ccpit/business/registerManage/RegisterService.java
View file @
f2328eb8
...
...
@@ -13,11 +13,7 @@ import java.io.OutputStream;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Method
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
javax.annotation.Resource
;
import
javax.transaction.Transactional
;
...
...
@@ -62,6 +58,7 @@ public class RegisterService {
List
<
Metadata
>
invoiceTypeM
=
null
;
List
<
Metadata
>
subjectM
=
null
;
List
<
Metadata
>
appreciationTaxType
=
null
;
List
<
Metadata
>
taxIssue
=
null
;
public
void
initMetadata
()
{
registerStatusM
=
metadataService
.
getMetadatasByType2
(
"status"
);
// 报名状态
...
...
@@ -69,6 +66,7 @@ public class RegisterService {
invoiceTypeM
=
metadataService
.
getMetadatasByType2
(
"invoiceType"
);
// 发票类型
subjectM
=
metadataService
.
getMetadatasByType2
(
"subject"
);
// 考试科目
appreciationTaxType
=
metadataService
.
getMetadatasByType2
(
"appreciationTaxType"
);
// 增值税发票
taxIssue
=
metadataService
.
getMetadatasByType2
(
"taxIssue"
);
// 发票开具时间
}
@Resource
...
...
@@ -150,7 +148,7 @@ public class RegisterService {
sb
.
append
(
" and registerStatus='"
+
status
+
"'"
);
}
List
<
SubjectInfo
>
subjectInfos
=
subjectInfoDao
.
query
(
sb
.
toString
());
List
<
RegisterInfo
>
registerInfos
=
new
ArrayList
<
RegisterInfo
>();
List
<
RegisterInfo
>
registerInfos
=
new
ArrayList
<>();
String
hql
=
""
;
if
(
phase
!=
null
&&
phase
!=
0
){
hql
=
"from RegisterInfo where phase.id = '"
+
phase
+
"'"
;
...
...
@@ -162,20 +160,42 @@ public class RegisterService {
long
registerInfo_id
=
s_info
.
getRegisterInfo_id
();
for
(
RegisterInfo
r_info
:
registerInfoList
)
{
if
(
registerInfo_id
==
r_info
.
getId
())
{
r_info
.
setSubject
(
s_info
.
getSubject
());
r_info
.
setRegisterStatus
(
s_info
.
getRegisterStatus
());
r_info
.
setAppreciationTaxType
(
s_info
.
getAppreciationTaxType
());
r_info
.
setInvoiceType
(
s_info
.
getInvoiceType
());
r_info
.
setInvoiceTitle
(
s_info
.
getInvoiceTitle
());
r_info
.
setTaxpayerNum
(
s_info
.
getTaxpayerNum
());
r_info
.
setAddressName
(
s_info
.
getAddressName
());
r_info
.
setTelephone
(
s_info
.
getTelephone
());
r_info
.
setBankAddress
(
s_info
.
getBankAddress
());
r_info
.
setBankAccount
(
s_info
.
getBankAccount
());
r_info
.
setImg1
(
s_info
.
getImg1
());
r_info
.
setTaxIssue
(
s_info
.
getTaxIssue
());
r_info
.
setPayTime
(
s_info
.
getPayTime
());
registerInfos
.
add
(
r_info
);
RegisterInfo
n_info
=
new
RegisterInfo
();
n_info
.
setId
(
s_info
.
getId
());
n_info
.
setSubject
(
s_info
.
getSubject
());
n_info
.
setRegisterStatus
(
s_info
.
getRegisterStatus
());
n_info
.
setAppreciationTaxType
(
s_info
.
getAppreciationTaxType
());
n_info
.
setInvoiceType
(
s_info
.
getInvoiceType
());
n_info
.
setInvoiceTitle
(
s_info
.
getInvoiceTitle
());
n_info
.
setTaxpayerNum
(
s_info
.
getTaxpayerNum
());
n_info
.
setAddressName
(
s_info
.
getAddressName
());
n_info
.
setTelephone
(
s_info
.
getTelephone
());
n_info
.
setBankAddress
(
s_info
.
getBankAddress
());
n_info
.
setBankAccount
(
s_info
.
getBankAccount
());
// n_info.setImg1(s_info.getImg1());
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 {
map
.
put
(
"email"
,
RegisterInfo
.
getEmail
());
map
.
put
(
"company"
,
RegisterInfo
.
getCompany
());
map
.
put
(
"invoiceInfo"
,
RegisterInfo
.
getInvoiceInfo
());
map
.
put
(
"invoiceType"
,
TypeUtils
.
translateData
(
"invoiceType"
,
RegisterInfo
.
getInvoiceType
()));
//
map.put("invoiceType",
//
TypeUtils.translateData("invoiceType", RegisterInfo.getInvoiceType()));
map
.
put
(
"subject"
,
TypeUtils
.
translateData
(
"subject"
,
RegisterInfo
.
getSubject
()));
map
.
put
(
"registerStatus"
,
TypeUtils
.
translateData
(
"registerStatus"
,
...
...
@@ -305,10 +325,10 @@ public class RegisterService {
public
Map
<
String
,
String
>
initProsHeader
()
{
Map
<
String
,
String
>
mapProsHeader
=
new
HashMap
<
String
,
String
>();
String
[]
enPros
=
{
"id"
,
"submitTime"
,
"city"
,
"name"
,
"password"
,
"gender"
,
"birthday"
,
"telphone"
,
"mobileTel"
,
"email"
,
"company"
,
"address"
,
"
appreciationTaxType"
,
"taxIssu
e"
,
"invoiceTitle"
,
"invoiceInfo"
,
"taxpayerNum"
,
"addressName"
,
"telephone"
,
"bankAddress"
,
"bankAccount"
,
"title"
,
"dateOfBirth"
,
"gender_en"
,
"name_en"
,
"name_en_last"
,
"company_en"
,
"address_en"
,
"
taxIssue"
,
"appreciationTaxTyp
e"
,
"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"
,
"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"
,
"考试科目"
,
"考试科目"
,
"报名状态"
,
"排序号"
,
"是否删除"
,
"创建人"
,
"创建时间"
,
"修改人"
,
"修改时间"
};
for
(
int
i
=
0
;
i
<
enPros
.
length
;
i
++)
{
...
...
src/main/java/org/ccpit/business/registerManage/SubjectInfo.java
View file @
f2328eb8
...
...
@@ -85,7 +85,7 @@ public class SubjectInfo implements Serializable {
/**
* 发票开具时间
*/
private
String
taxIssue
;
private
Integer
taxIssue
;
/**
* 备注
*/
...
...
@@ -224,11 +224,11 @@ public class SubjectInfo implements Serializable {
this
.
img3
=
img3
;
}
public
String
getTaxIssue
()
{
public
Integer
getTaxIssue
()
{
return
taxIssue
;
}
public
void
setTaxIssue
(
String
taxIssue
)
{
public
void
setTaxIssue
(
Integer
taxIssue
)
{
this
.
taxIssue
=
taxIssue
;
}
...
...
src/main/sql/init.sql
View file @
f2328eb8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main/sql/update.sql
View file @
f2328eb8
/* create by dingwei 20210
617
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 */
/* create by dingwei 20210
702
start */
alter
table
reg_registerinfo
modify
taxIssue
Integer
;
alter
table
reg_subjectinfo
modify
taxIssue
Integer
;
/* create by dingwei 20210702 end */
select
id
,
name
,
whetherDelete
from
reg_registerinfo
where
taxpayerNum
=
'9142'
;
\ No newline at end of file
src/main/sql/update_20210702.sql
0 → 100644
View file @
f2328eb8
/* 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 */
src/main/webapp/WEB-INF/jsp/business/registerInfoListPage.jsp
View file @
f2328eb8
...
...
@@ -248,6 +248,15 @@
<div
class=
"ele-select"
>
<input
type=
"checkbox"
checked=
"checked"
>
</div>
<div
class=
"ele-name"
val=
"taxIssue"
>
发票开具时间
</div>
<div
class=
"ele"
>
<a
class=
"up"
>
↑
</a><a
class=
"down"
>
↓
</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"
>
<a
class=
"up"
>
↑
</a><a
class=
"down"
>
↓
</a>
...
...
src/main/webapp/resource/admin/metadataManage/dataType.json
View file @
f2328eb8
...
...
@@ -31,4 +31,7 @@
},{
"id"
:
"engender"
,
"text"
:
"性别(英)"
},{
"id"
:
"taxIssue"
,
"text"
:
"发票开出时间"
}]
\ No newline at end of file
src/main/webapp/resource/business/registration.js
View file @
f2328eb8
...
...
@@ -344,6 +344,7 @@ function initInputWidth(){
$
(
"#standby1Id"
).
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_en_lastId"
).
attr
(
"style"
,
"width:"
+
fixShortWidth
()
+
"px"
);
$
(
"#postId"
).
attr
(
"style"
,
"width:"
+
fixShortWidth
()
+
"px"
);
...
...
@@ -365,6 +366,7 @@ function initInputWidth(){
$
(
"#bankAccountId"
).
attr
(
"style"
,
"width:"
+
fixShortWidth
()
+
"px"
);
$
(
"#dcNumberId"
).
attr
(
"style"
,
"width:"
+
fixShortWidth
()
+
"px"
);
$
(
"#countryId"
).
attr
(
"style"
,
"width:"
+
fixShortWidth
()
+
"px"
);
$
(
"#invoiceInfoId"
).
attr
(
"style"
,
"width:"
+
fixShortWidth
()
+
"px"
);
$
(
"#invoiceTitle_Id"
).
attr
(
"style"
,
"width:"
+
fixShortWidth
()
+
"px"
);
$
(
"#addressName_Id"
).
attr
(
"style"
,
"width:"
+
fixShortWidth
()
+
"px"
);
...
...
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