Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
513d0686
Commit
513d0686
authored
Mar 10, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新交接单 交接单详单实体
parent
b0320bbe
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
69 deletions
+52
-69
ReadExcelApi.java
src/main/java/com/yxproject/start/api/ReadExcelApi.java
+3
-1
ReadXmlApi.java
src/main/java/com/yxproject/start/api/ReadXmlApi.java
+7
-5
DetailReceiptListEntity.java
...a/com/yxproject/start/entity/DetailReceiptListEntity.java
+2
-27
ReceiptListEntity.java
...in/java/com/yxproject/start/entity/ReceiptListEntity.java
+40
-36
No files found.
src/main/java/com/yxproject/start/api/ReadExcelApi.java
View file @
513d0686
...
...
@@ -75,7 +75,8 @@ public class ReadExcelApi {
MultipartHttpServletRequest
multiRequest
=
(
MultipartHttpServletRequest
)
requ
;
Iterator
<
String
>
iter
=
multiRequest
.
getFileNames
();
while
(
iter
.
hasNext
())
{
MultipartFile
item
=
multiRequest
.
getFile
(
iter
.
next
());
List
<
MultipartFile
>
fileRows
=
multiRequest
.
getFiles
(
iter
.
next
().
toString
());
for
(
MultipartFile
item
:
fileRows
){
try
{
// 如果fileitem中封装的是普通输入项的数据
// 如果fileitem中封装的是上传文件
...
...
@@ -158,6 +159,7 @@ public class ReadExcelApi {
}
}
}
}
}
catch
(
Exception
e
){
}
finally
{
...
...
src/main/java/com/yxproject/start/api/ReadXmlApi.java
View file @
513d0686
...
...
@@ -29,10 +29,7 @@ import javax.ws.rs.core.MediaType;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.UnsupportedEncodingException
;
import
java.util.HashMap
;
import
java.util.Iterator
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
@RestController
@RequestMapping
(
"importXML"
)
...
...
@@ -77,12 +74,14 @@ public class ReadXmlApi {
MultipartHttpServletRequest
multiRequest
=
(
MultipartHttpServletRequest
)
requ
;
Iterator
<
String
>
iter
=
multiRequest
.
getFileNames
();
while
(
iter
.
hasNext
())
{
MultipartFile
item
=
multiRequest
.
getFile
(
iter
.
next
());
List
<
MultipartFile
>
fileRows
=
multiRequest
.
getFiles
(
iter
.
next
().
toString
());
for
(
MultipartFile
item:
fileRows
)
{
try
{
// 如果fileitem中封装的是普通输入项的数据
// 如果fileitem中封装的是上传文件
// 得到上传的文件名称
filename
=
item
.
getName
();
System
.
out
.
println
(
filename
+
"==============="
);
if
(
filename
==
null
||
filename
.
trim
().
equals
(
""
))
{
continue
;
}
...
...
@@ -110,6 +109,9 @@ public class ReadXmlApi {
}
}
}
}
// item
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
yxresp
.
outPutError
(
"FileUploadException"
,
"文件上传发生异常:"
+
e
.
getMessage
());
...
...
src/main/java/com/yxproject/start/entity/DetailReceiptListEntity.java
View file @
513d0686
package
com
.
yxproject
.
start
.
entity
;
import
javax.persistence.*
;
import
java.sql.Time
;
import
java.util.Objects
;
/**
* @auther zhangyusheng
* 2019/3/
9 14:53
* 2019/3/
10 14:52
*/
@Entity
@Table
(
name
=
"DETAIL_RECEIPT_LIST"
,
schema
=
"YINGXIN"
,
catalog
=
""
)
...
...
@@ -17,8 +16,6 @@ public class DetailReceiptListEntity {
private
String
name
;
private
String
policeCode
;
private
String
cardId
;
private
Time
printUninstallMark
;
private
Time
eQualityMark
;
private
String
note
;
private
String
signGovt
;
...
...
@@ -82,26 +79,6 @@ public class DetailReceiptListEntity {
this
.
cardId
=
cardId
;
}
@Basic
@Column
(
name
=
"PRINT_UNINSTALL_MARK"
)
public
Time
getPrintUninstallMark
()
{
return
printUninstallMark
;
}
public
void
setPrintUninstallMark
(
Time
printUninstallMark
)
{
this
.
printUninstallMark
=
printUninstallMark
;
}
@Basic
@Column
(
name
=
"E_QUALITY_MARK"
)
public
Time
geteQualityMark
()
{
return
eQualityMark
;
}
public
void
seteQualityMark
(
Time
eQualityMark
)
{
this
.
eQualityMark
=
eQualityMark
;
}
@Basic
@Column
(
name
=
"NOTE"
)
public
String
getNote
()
{
...
...
@@ -133,14 +110,12 @@ public class DetailReceiptListEntity {
Objects
.
equals
(
name
,
that
.
name
)
&&
Objects
.
equals
(
policeCode
,
that
.
policeCode
)
&&
Objects
.
equals
(
cardId
,
that
.
cardId
)
&&
Objects
.
equals
(
printUninstallMark
,
that
.
printUninstallMark
)
&&
Objects
.
equals
(
eQualityMark
,
that
.
eQualityMark
)
&&
Objects
.
equals
(
note
,
that
.
note
)
&&
Objects
.
equals
(
signGovt
,
that
.
signGovt
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
id
,
uploadNo
,
acceptNo
,
name
,
policeCode
,
cardId
,
printUninstallMark
,
eQualityMark
,
note
,
signGovt
);
return
Objects
.
hash
(
id
,
uploadNo
,
acceptNo
,
name
,
policeCode
,
cardId
,
note
,
signGovt
);
}
}
src/main/java/com/yxproject/start/entity/ReceiptListEntity.java
View file @
513d0686
...
...
@@ -4,17 +4,21 @@ import javax.persistence.*;
import
java.sql.Time
;
import
java.util.Objects
;
/**
* @auther zhangyusheng
* 2019/3/10 14:52
*/
@Entity
@Table
(
name
=
"RECEIPT_LIST"
,
schema
=
"YINGXIN"
,
catalog
=
""
)
public
class
ReceiptListEntity
{
private
long
id
;
private
Long
taskId
;
private
Time
save
Date
;
private
String
qrCode
;
private
Time
receipt
Date
;
private
String
policeCode
;
private
Long
finishCount
;
private
Long
inStorageCount
;
private
Long
outStorageCount
;
private
String
no
te
;
private
Time
checkDate
;
private
String
checkName
;
private
Long
sta
te
;
@Id
@Column
(
name
=
"ID"
)
...
...
@@ -27,23 +31,23 @@ public class ReceiptListEntity {
}
@Basic
@Column
(
name
=
"
TASK_ID
"
)
public
Long
getTaskId
()
{
return
taskId
;
@Column
(
name
=
"
QR_CODE
"
)
public
String
getQrCode
()
{
return
qrCode
;
}
public
void
set
TaskId
(
Long
taskId
)
{
this
.
taskId
=
taskId
;
public
void
set
QrCode
(
String
qrCode
)
{
this
.
qrCode
=
qrCode
;
}
@Basic
@Column
(
name
=
"
SAVE
_DATE"
)
public
Time
get
Save
Date
()
{
return
save
Date
;
@Column
(
name
=
"
RECEIPT
_DATE"
)
public
Time
get
Receipt
Date
()
{
return
receipt
Date
;
}
public
void
set
SaveDate
(
Time
save
Date
)
{
this
.
saveDate
=
save
Date
;
public
void
set
ReceiptDate
(
Time
receipt
Date
)
{
this
.
receiptDate
=
receipt
Date
;
}
@Basic
...
...
@@ -67,33 +71,33 @@ public class ReceiptListEntity {
}
@Basic
@Column
(
name
=
"
IN_STORAGE_COUNT
"
)
public
Long
getInStorageCount
()
{
return
inStorageCount
;
@Column
(
name
=
"
CHECK_DATE
"
)
public
Time
getCheckDate
()
{
return
checkDate
;
}
public
void
set
InStorageCount
(
Long
inStorageCount
)
{
this
.
inStorageCount
=
inStorageCount
;
public
void
set
CheckDate
(
Time
checkDate
)
{
this
.
checkDate
=
checkDate
;
}
@Basic
@Column
(
name
=
"
OUT_STORAGE_COUNT
"
)
public
Long
getOutStorageCount
()
{
return
outStorageCount
;
@Column
(
name
=
"
CHECK_NAME
"
)
public
String
getCheckName
()
{
return
checkName
;
}
public
void
set
OutStorageCount
(
Long
outStorageCount
)
{
this
.
outStorageCount
=
outStorageCount
;
public
void
set
CheckName
(
String
checkName
)
{
this
.
checkName
=
checkName
;
}
@Basic
@Column
(
name
=
"
NO
TE"
)
public
String
getNo
te
()
{
return
no
te
;
@Column
(
name
=
"
STA
TE"
)
public
Long
getSta
te
()
{
return
sta
te
;
}
public
void
set
Note
(
String
no
te
)
{
this
.
note
=
no
te
;
public
void
set
State
(
Long
sta
te
)
{
this
.
state
=
sta
te
;
}
@Override
...
...
@@ -102,17 +106,17 @@ public class ReceiptListEntity {
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
return
false
;
ReceiptListEntity
that
=
(
ReceiptListEntity
)
o
;
return
id
==
that
.
id
&&
Objects
.
equals
(
taskId
,
that
.
taskId
)
&&
Objects
.
equals
(
saveDate
,
that
.
save
Date
)
&&
Objects
.
equals
(
qrCode
,
that
.
qrCode
)
&&
Objects
.
equals
(
receiptDate
,
that
.
receipt
Date
)
&&
Objects
.
equals
(
policeCode
,
that
.
policeCode
)
&&
Objects
.
equals
(
finishCount
,
that
.
finishCount
)
&&
Objects
.
equals
(
inStorageCount
,
that
.
inStorageCount
)
&&
Objects
.
equals
(
outStorageCount
,
that
.
outStorageCount
)
&&
Objects
.
equals
(
note
,
that
.
no
te
);
Objects
.
equals
(
checkDate
,
that
.
checkDate
)
&&
Objects
.
equals
(
checkName
,
that
.
checkName
)
&&
Objects
.
equals
(
state
,
that
.
sta
te
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
id
,
taskId
,
saveDate
,
policeCode
,
finishCount
,
inStorageCount
,
outStorageCount
,
no
te
);
return
Objects
.
hash
(
id
,
qrCode
,
receiptDate
,
policeCode
,
finishCount
,
checkDate
,
checkName
,
sta
te
);
}
}
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