Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
com.hdp.customerservice
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘文胜
com.hdp.customerservice
Commits
9ab6492f
Commit
9ab6492f
authored
Jun 17, 2015
by
刘文胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入跨域过滤器,修改entity的属性名为驼峰命名
parent
1119ed51
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
240 additions
and
87 deletions
+240
-87
WorksController.java
...va/com/hdp/customerservice/api/admin/WorksController.java
+63
-0
DTO.java
src/main/java/com/hdp/customerservice/dto/DTO.java
+24
-0
PageDTO.java
src/main/java/com/hdp/customerservice/dto/PageDTO.java
+16
-0
CORSFilter.java
src/main/java/com/hdp/customerservice/filter/CORSFilter.java
+33
-0
HistoryEntity.java
...ain/java/com/hdp/customerservice/model/HistoryEntity.java
+19
-16
MemberEntity.java
...main/java/com/hdp/customerservice/model/MemberEntity.java
+29
-26
MemberTagEntity.java
...n/java/com/hdp/customerservice/model/MemberTagEntity.java
+8
-6
ReceptionHistoryEntity.java
...com/hdp/customerservice/model/ReceptionHistoryEntity.java
+14
-11
ReceptionSettingEntity.java
...com/hdp/customerservice/model/ReceptionSettingEntity.java
+8
-6
WorkWeightSettingEntity.java
...om/hdp/customerservice/model/WorkWeightSettingEntity.java
+8
-6
WorksEntity.java
src/main/java/com/hdp/customerservice/model/WorksEntity.java
+18
-16
No files found.
src/main/java/com/hdp/customerservice/api/admin/WorksController.java
0 → 100644
View file @
9ab6492f
/**
* @Title: WorksController.java
* @Package com.hdp.customerservice.api.admin
* @Description: TODO
* @author new12304508_163_com
* @date 2015年6月17日 下午5:01:31
* @version V1.0
*/
package
com
.
hdp
.
customerservice
.
api
.
admin
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.hdp.customerservice.dto.DTO
;
import
com.hdp.customerservice.model.WorksEntity
;
import
com.hdp.customerservice.service.WorksService
;
@Controller
@RequestMapping
(
"/admin/customerservice/worker"
)
public
class
WorksController
{
@Autowired
private
WorksService
worksService
;
@RequestMapping
(
value
=
""
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
String
save
(
@RequestBody
WorksEntity
entity
){
DTO
dto
=
DTO
.
newDTO
();
dto
.
data
=
worksService
.
save
(
entity
);
return
dto
.
toJson
();
}
@RequestMapping
(
value
=
"/pageList"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
String
pageList
(
@RequestParam
(
value
=
"pageNo"
,
defaultValue
=
"1"
,
required
=
false
)
Integer
page
,
@RequestParam
(
value
=
"pageSize"
,
defaultValue
=
"10"
,
required
=
false
)
Integer
size
){
DTO
dto
=
DTO
.
newDTO
();
dto
.
data
=
worksService
.
findPage
(
page
,
size
);
return
dto
.
toJson
();
}
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
String
getWorkById
(
@PathVariable
Long
id
){
DTO
dto
=
DTO
.
newDTO
();
dto
.
data
=
worksService
.
get
(
id
);
return
dto
.
toJson
();
}
@RequestMapping
(
value
=
"/{id}/status"
,
method
=
RequestMethod
.
PUT
)
@ResponseBody
public
String
updateStatus
(
@PathVariable
Long
id
,
Integer
status
){
DTO
dto
=
DTO
.
newDTO
();
dto
.
data
=
worksService
.
get
(
id
);
return
dto
.
toJson
();
}
}
src/main/java/com/hdp/customerservice/dto/DTO.java
0 → 100644
View file @
9ab6492f
package
com
.
hdp
.
customerservice
.
dto
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.annotation.JSONField
;
public
class
DTO
{
@JSONField
(
name
=
"errcode"
)
public
Integer
errCode
=
0
;
@JSONField
(
name
=
"errmsg"
)
public
String
errMsg
=
"success"
;
public
Object
data
;
public
static
DTO
newDTO
(){
return
new
DTO
();
}
public
String
toJson
(){
return
JSON
.
toJSONString
(
this
);
}
}
src/main/java/com/hdp/customerservice/dto/PageDTO.java
0 → 100644
View file @
9ab6492f
/**
*
*/
package
com
.
hdp
.
customerservice
.
dto
;
/**
* @author yangyw
*
*/
public
class
PageDTO
extends
DTO
{
}
src/main/java/com/hdp/customerservice/filter/CORSFilter.java
0 → 100644
View file @
9ab6492f
package
com
.
hdp
.
customerservice
.
filter
;
/**
* @Title: CORSFilter.java
* @Package com.hdp.pi.api
* @Description: TODO
* @author new12304508_163_com
* @date 2015年5月29日 下午1:38:58
* @version V1.0
*/
import
java.io.IOException
;
import
javax.servlet.Filter
;
import
javax.servlet.FilterChain
;
import
javax.servlet.FilterConfig
;
import
javax.servlet.ServletException
;
import
javax.servlet.ServletRequest
;
import
javax.servlet.ServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
org.springframework.stereotype.Component
;
@Component
public
class
CORSFilter
implements
Filter
{
public
void
doFilter
(
ServletRequest
req
,
ServletResponse
res
,
FilterChain
chain
)
throws
IOException
,
ServletException
{
HttpServletResponse
response
=
(
HttpServletResponse
)
res
;
response
.
setHeader
(
"Access-Control-Allow-Origin"
,
"*"
);
response
.
setHeader
(
"Access-Control-Allow-Methods"
,
"POST, PUT, GET, OPTIONS, DELETE"
);
response
.
setHeader
(
"Access-Control-Max-Age"
,
"7200"
);
response
.
setHeader
(
"Access-Control-Allow-Headers"
,
"Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With"
);
chain
.
doFilter
(
req
,
res
);
}
public
void
init
(
FilterConfig
filterConfig
)
{}
public
void
destroy
()
{}
}
src/main/java/com/hdp/customerservice/model/HistoryEntity.java
View file @
9ab6492f
package
com
.
hdp
.
customerservice
.
model
;
package
com
.
hdp
.
customerservice
.
model
;
import
java.util.Date
;
import
java.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
...
@@ -20,7 +23,7 @@ public class HistoryEntity implements java.io.Serializable {
...
@@ -20,7 +23,7 @@ public class HistoryEntity implements java.io.Serializable {
/** */
/** */
@Id
@Id
@Column
(
name
=
"id"
,
unique
=
true
,
nullable
=
false
,
length
=
19
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
private
Long
id
;
private
Long
id
;
/** */
/** */
...
@@ -29,11 +32,11 @@ public class HistoryEntity implements java.io.Serializable {
...
@@ -29,11 +32,11 @@ public class HistoryEntity implements java.io.Serializable {
/** */
/** */
@Column
(
name
=
"openid"
,
nullable
=
false
,
length
=
64
)
@Column
(
name
=
"openid"
,
nullable
=
false
,
length
=
64
)
private
String
open
i
d
;
private
String
open
I
d
;
/** */
/** */
@Column
(
name
=
"workid"
,
nullable
=
false
,
length
=
19
)
@Column
(
name
=
"workid"
,
nullable
=
false
,
length
=
19
)
private
Long
work
i
d
;
private
Long
work
I
d
;
/** */
/** */
@Column
(
name
=
"content"
,
nullable
=
true
,
length
=
65535
)
@Column
(
name
=
"content"
,
nullable
=
true
,
length
=
65535
)
...
@@ -57,7 +60,7 @@ public class HistoryEntity implements java.io.Serializable {
...
@@ -57,7 +60,7 @@ public class HistoryEntity implements java.io.Serializable {
/** */
/** */
@Column
(
name
=
"createat"
,
nullable
=
false
)
@Column
(
name
=
"createat"
,
nullable
=
false
)
private
Date
create
a
t
;
private
Date
create
A
t
;
/**
/**
* 获取
* 获取
...
@@ -102,8 +105,8 @@ public class HistoryEntity implements java.io.Serializable {
...
@@ -102,8 +105,8 @@ public class HistoryEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
String
getOpen
i
d
()
{
public
String
getOpen
I
d
()
{
return
this
.
open
i
d
;
return
this
.
open
I
d
;
}
}
/**
/**
...
@@ -112,8 +115,8 @@ public class HistoryEntity implements java.io.Serializable {
...
@@ -112,8 +115,8 @@ public class HistoryEntity implements java.io.Serializable {
* @param openid
* @param openid
*
*
*/
*/
public
void
setOpen
id
(
String
openi
d
)
{
public
void
setOpen
Id
(
String
openI
d
)
{
this
.
open
id
=
openi
d
;
this
.
open
Id
=
openI
d
;
}
}
/**
/**
...
@@ -121,8 +124,8 @@ public class HistoryEntity implements java.io.Serializable {
...
@@ -121,8 +124,8 @@ public class HistoryEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
Long
getWork
i
d
()
{
public
Long
getWork
I
d
()
{
return
this
.
work
i
d
;
return
this
.
work
I
d
;
}
}
/**
/**
...
@@ -131,8 +134,8 @@ public class HistoryEntity implements java.io.Serializable {
...
@@ -131,8 +134,8 @@ public class HistoryEntity implements java.io.Serializable {
* @param workid
* @param workid
*
*
*/
*/
public
void
setWork
id
(
Long
worki
d
)
{
public
void
setWork
Id
(
Long
workI
d
)
{
this
.
work
id
=
worki
d
;
this
.
work
Id
=
workI
d
;
}
}
/**
/**
...
@@ -235,8 +238,8 @@ public class HistoryEntity implements java.io.Serializable {
...
@@ -235,8 +238,8 @@ public class HistoryEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
Date
getCreate
a
t
()
{
public
Date
getCreate
A
t
()
{
return
this
.
create
a
t
;
return
this
.
create
A
t
;
}
}
/**
/**
...
@@ -245,7 +248,7 @@ public class HistoryEntity implements java.io.Serializable {
...
@@ -245,7 +248,7 @@ public class HistoryEntity implements java.io.Serializable {
* @param createat
* @param createat
*
*
*/
*/
public
void
setCreate
at
(
Date
createa
t
)
{
public
void
setCreate
At
(
Date
createA
t
)
{
this
.
create
at
=
createa
t
;
this
.
create
At
=
createA
t
;
}
}
}
}
\ No newline at end of file
src/main/java/com/hdp/customerservice/model/MemberEntity.java
View file @
9ab6492f
package
com
.
hdp
.
customerservice
.
model
;
package
com
.
hdp
.
customerservice
.
model
;
import
java.util.Date
;
import
java.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
...
@@ -20,12 +23,12 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -20,12 +23,12 @@ public class MemberEntity implements java.io.Serializable {
/** */
/** */
@Id
@Id
@Column
(
name
=
"id"
,
unique
=
true
,
nullable
=
false
,
length
=
19
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
private
Long
id
;
private
Long
id
;
/** */
/** */
@Column
(
name
=
"appid"
,
nullable
=
false
,
length
=
128
)
@Column
(
name
=
"appid"
,
nullable
=
false
,
length
=
128
)
private
String
app
i
d
;
private
String
app
I
d
;
/** */
/** */
@Column
(
name
=
"ent_code"
,
nullable
=
false
,
length
=
10
)
@Column
(
name
=
"ent_code"
,
nullable
=
false
,
length
=
10
)
...
@@ -33,15 +36,15 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -33,15 +36,15 @@ public class MemberEntity implements java.io.Serializable {
/** */
/** */
@Column
(
name
=
"openid"
,
nullable
=
false
,
length
=
32
)
@Column
(
name
=
"openid"
,
nullable
=
false
,
length
=
32
)
private
String
open
i
d
;
private
String
open
I
d
;
/** */
/** */
@Column
(
name
=
"headimg"
,
nullable
=
true
,
length
=
512
)
@Column
(
name
=
"headimg"
,
nullable
=
true
,
length
=
512
)
private
String
head
i
mg
;
private
String
head
I
mg
;
/** */
/** */
@Column
(
name
=
"nickname"
,
nullable
=
true
,
length
=
128
)
@Column
(
name
=
"nickname"
,
nullable
=
true
,
length
=
128
)
private
String
nick
n
ame
;
private
String
nick
N
ame
;
/** */
/** */
@Column
(
name
=
"country"
,
nullable
=
true
,
length
=
64
)
@Column
(
name
=
"country"
,
nullable
=
true
,
length
=
64
)
...
@@ -57,7 +60,7 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -57,7 +60,7 @@ public class MemberEntity implements java.io.Serializable {
/** */
/** */
@Column
(
name
=
"groupid"
,
nullable
=
true
,
length
=
10
)
@Column
(
name
=
"groupid"
,
nullable
=
true
,
length
=
10
)
private
Integer
group
i
d
;
private
Integer
group
I
d
;
/** */
/** */
@Column
(
name
=
"language"
,
nullable
=
true
,
length
=
32
)
@Column
(
name
=
"language"
,
nullable
=
true
,
length
=
32
)
...
@@ -99,8 +102,8 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -99,8 +102,8 @@ public class MemberEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
String
getApp
i
d
()
{
public
String
getApp
I
d
()
{
return
this
.
app
i
d
;
return
this
.
app
I
d
;
}
}
/**
/**
...
@@ -109,8 +112,8 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -109,8 +112,8 @@ public class MemberEntity implements java.io.Serializable {
* @param appid
* @param appid
*
*
*/
*/
public
void
setApp
id
(
String
appi
d
)
{
public
void
setApp
Id
(
String
appI
d
)
{
this
.
app
id
=
appi
d
;
this
.
app
Id
=
appI
d
;
}
}
/**
/**
...
@@ -137,8 +140,8 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -137,8 +140,8 @@ public class MemberEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
String
getOpen
i
d
()
{
public
String
getOpen
I
d
()
{
return
this
.
open
i
d
;
return
this
.
open
I
d
;
}
}
/**
/**
...
@@ -147,8 +150,8 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -147,8 +150,8 @@ public class MemberEntity implements java.io.Serializable {
* @param openid
* @param openid
*
*
*/
*/
public
void
setOpen
id
(
String
openi
d
)
{
public
void
setOpen
Id
(
String
openI
d
)
{
this
.
open
id
=
openi
d
;
this
.
open
Id
=
openI
d
;
}
}
/**
/**
...
@@ -156,8 +159,8 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -156,8 +159,8 @@ public class MemberEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
String
getHead
i
mg
()
{
public
String
getHead
I
mg
()
{
return
this
.
head
i
mg
;
return
this
.
head
I
mg
;
}
}
/**
/**
...
@@ -166,8 +169,8 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -166,8 +169,8 @@ public class MemberEntity implements java.io.Serializable {
* @param headimg
* @param headimg
*
*
*/
*/
public
void
setHead
img
(
String
headi
mg
)
{
public
void
setHead
Img
(
String
headI
mg
)
{
this
.
head
img
=
headi
mg
;
this
.
head
Img
=
headI
mg
;
}
}
/**
/**
...
@@ -175,8 +178,8 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -175,8 +178,8 @@ public class MemberEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
String
getNick
n
ame
()
{
public
String
getNick
N
ame
()
{
return
this
.
nick
n
ame
;
return
this
.
nick
N
ame
;
}
}
/**
/**
...
@@ -185,8 +188,8 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -185,8 +188,8 @@ public class MemberEntity implements java.io.Serializable {
* @param nickname
* @param nickname
*
*
*/
*/
public
void
setNickname
(
String
nick
n
ame
)
{
public
void
setNickname
(
String
nick
N
ame
)
{
this
.
nick
name
=
nickn
ame
;
this
.
nick
Name
=
nickN
ame
;
}
}
/**
/**
...
@@ -251,8 +254,8 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -251,8 +254,8 @@ public class MemberEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
Integer
getGroup
i
d
()
{
public
Integer
getGroup
I
d
()
{
return
this
.
group
i
d
;
return
this
.
group
I
d
;
}
}
/**
/**
...
@@ -261,8 +264,8 @@ public class MemberEntity implements java.io.Serializable {
...
@@ -261,8 +264,8 @@ public class MemberEntity implements java.io.Serializable {
* @param groupid
* @param groupid
*
*
*/
*/
public
void
setGroup
id
(
Integer
groupi
d
)
{
public
void
setGroup
Id
(
Integer
groupI
d
)
{
this
.
group
id
=
groupi
d
;
this
.
group
Id
=
groupI
d
;
}
}
/**
/**
...
...
src/main/java/com/hdp/customerservice/model/MemberTagEntity.java
View file @
9ab6492f
...
@@ -2,6 +2,8 @@ package com.hdp.customerservice.model;
...
@@ -2,6 +2,8 @@ package com.hdp.customerservice.model;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
...
@@ -19,7 +21,7 @@ public class MemberTagEntity implements java.io.Serializable {
...
@@ -19,7 +21,7 @@ public class MemberTagEntity implements java.io.Serializable {
/** */
/** */
@Id
@Id
@Column
(
name
=
"id"
,
unique
=
true
,
nullable
=
false
,
length
=
19
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
private
Long
id
;
private
Long
id
;
/** */
/** */
...
@@ -28,7 +30,7 @@ public class MemberTagEntity implements java.io.Serializable {
...
@@ -28,7 +30,7 @@ public class MemberTagEntity implements java.io.Serializable {
/** */
/** */
@Column
(
name
=
"workid"
,
nullable
=
false
,
length
=
19
)
@Column
(
name
=
"workid"
,
nullable
=
false
,
length
=
19
)
private
Long
work
i
d
;
private
Long
work
I
d
;
/** */
/** */
@Column
(
name
=
"mid"
,
nullable
=
false
,
length
=
19
)
@Column
(
name
=
"mid"
,
nullable
=
false
,
length
=
19
)
...
@@ -81,8 +83,8 @@ public class MemberTagEntity implements java.io.Serializable {
...
@@ -81,8 +83,8 @@ public class MemberTagEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
Long
getWork
i
d
()
{
public
Long
getWork
I
d
()
{
return
this
.
work
i
d
;
return
this
.
work
I
d
;
}
}
/**
/**
...
@@ -91,8 +93,8 @@ public class MemberTagEntity implements java.io.Serializable {
...
@@ -91,8 +93,8 @@ public class MemberTagEntity implements java.io.Serializable {
* @param workid
* @param workid
*
*
*/
*/
public
void
setWork
id
(
Long
worki
d
)
{
public
void
setWork
Id
(
Long
workI
d
)
{
this
.
work
id
=
worki
d
;
this
.
work
Id
=
workI
d
;
}
}
/**
/**
...
...
src/main/java/com/hdp/customerservice/model/ReceptionHistoryEntity.java
View file @
9ab6492f
package
com
.
hdp
.
customerservice
.
model
;
package
com
.
hdp
.
customerservice
.
model
;
import
java.util.Date
;
import
java.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
...
@@ -20,7 +23,7 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
...
@@ -20,7 +23,7 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
/** */
/** */
@Id
@Id
@Column
(
name
=
"id"
,
unique
=
true
,
nullable
=
false
,
length
=
19
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
private
Long
id
;
private
Long
id
;
/** */
/** */
...
@@ -29,7 +32,7 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
...
@@ -29,7 +32,7 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
/** */
/** */
@Column
(
name
=
"workid"
,
nullable
=
false
,
length
=
19
)
@Column
(
name
=
"workid"
,
nullable
=
false
,
length
=
19
)
private
Long
work
i
d
;
private
Long
work
I
d
;
/** */
/** */
@Column
(
name
=
"mid"
,
nullable
=
false
,
length
=
19
)
@Column
(
name
=
"mid"
,
nullable
=
false
,
length
=
19
)
...
@@ -49,7 +52,7 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
...
@@ -49,7 +52,7 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
/** */
/** */
@Column
(
name
=
"createat"
,
nullable
=
false
)
@Column
(
name
=
"createat"
,
nullable
=
false
)
private
Date
create
a
t
;
private
Date
create
A
t
;
/**
/**
* 获取
* 获取
...
@@ -94,8 +97,8 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
...
@@ -94,8 +97,8 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
Long
getWork
i
d
()
{
public
Long
getWork
I
d
()
{
return
this
.
work
i
d
;
return
this
.
work
I
d
;
}
}
/**
/**
...
@@ -104,8 +107,8 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
...
@@ -104,8 +107,8 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
* @param workid
* @param workid
*
*
*/
*/
public
void
setWork
id
(
Long
worki
d
)
{
public
void
setWork
Id
(
Long
workI
d
)
{
this
.
work
id
=
worki
d
;
this
.
work
Id
=
workI
d
;
}
}
/**
/**
...
@@ -189,8 +192,8 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
...
@@ -189,8 +192,8 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
Date
getCreate
a
t
()
{
public
Date
getCreate
A
t
()
{
return
this
.
create
a
t
;
return
this
.
create
A
t
;
}
}
/**
/**
...
@@ -199,7 +202,7 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
...
@@ -199,7 +202,7 @@ public class ReceptionHistoryEntity implements java.io.Serializable {
* @param createat
* @param createat
*
*
*/
*/
public
void
setCreate
at
(
Date
createa
t
)
{
public
void
setCreate
At
(
Date
createA
t
)
{
this
.
create
at
=
createa
t
;
this
.
create
At
=
createA
t
;
}
}
}
}
\ No newline at end of file
src/main/java/com/hdp/customerservice/model/ReceptionSettingEntity.java
View file @
9ab6492f
...
@@ -2,6 +2,8 @@ package com.hdp.customerservice.model;
...
@@ -2,6 +2,8 @@ package com.hdp.customerservice.model;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
...
@@ -19,7 +21,7 @@ public class ReceptionSettingEntity implements java.io.Serializable {
...
@@ -19,7 +21,7 @@ public class ReceptionSettingEntity implements java.io.Serializable {
/** */
/** */
@Id
@Id
@Column
(
name
=
"id"
,
unique
=
true
,
nullable
=
false
,
length
=
19
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
private
Long
id
;
private
Long
id
;
/** */
/** */
...
@@ -28,7 +30,7 @@ public class ReceptionSettingEntity implements java.io.Serializable {
...
@@ -28,7 +30,7 @@ public class ReceptionSettingEntity implements java.io.Serializable {
/** */
/** */
@Column
(
name
=
"workid"
,
nullable
=
false
,
length
=
19
)
@Column
(
name
=
"workid"
,
nullable
=
false
,
length
=
19
)
private
Long
work
i
d
;
private
Long
work
I
d
;
/** */
/** */
@Column
(
name
=
"mid"
,
nullable
=
false
,
length
=
19
)
@Column
(
name
=
"mid"
,
nullable
=
false
,
length
=
19
)
...
@@ -77,8 +79,8 @@ public class ReceptionSettingEntity implements java.io.Serializable {
...
@@ -77,8 +79,8 @@ public class ReceptionSettingEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
Long
getWork
i
d
()
{
public
Long
getWork
I
d
()
{
return
this
.
work
i
d
;
return
this
.
work
I
d
;
}
}
/**
/**
...
@@ -87,8 +89,8 @@ public class ReceptionSettingEntity implements java.io.Serializable {
...
@@ -87,8 +89,8 @@ public class ReceptionSettingEntity implements java.io.Serializable {
* @param workid
* @param workid
*
*
*/
*/
public
void
setWork
id
(
Long
worki
d
)
{
public
void
setWork
Id
(
Long
workI
d
)
{
this
.
work
id
=
worki
d
;
this
.
work
Id
=
workI
d
;
}
}
/**
/**
...
...
src/main/java/com/hdp/customerservice/model/WorkWeightSettingEntity.java
View file @
9ab6492f
...
@@ -2,6 +2,8 @@ package com.hdp.customerservice.model;
...
@@ -2,6 +2,8 @@ package com.hdp.customerservice.model;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
...
@@ -19,7 +21,7 @@ public class WorkWeightSettingEntity implements java.io.Serializable {
...
@@ -19,7 +21,7 @@ public class WorkWeightSettingEntity implements java.io.Serializable {
/** */
/** */
@Id
@Id
@Column
(
name
=
"id"
,
unique
=
true
,
nullable
=
false
,
length
=
19
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
private
Long
id
;
private
Long
id
;
/** */
/** */
...
@@ -28,7 +30,7 @@ public class WorkWeightSettingEntity implements java.io.Serializable {
...
@@ -28,7 +30,7 @@ public class WorkWeightSettingEntity implements java.io.Serializable {
/** */
/** */
@Column
(
name
=
"workid"
,
nullable
=
false
,
length
=
19
)
@Column
(
name
=
"workid"
,
nullable
=
false
,
length
=
19
)
private
Long
work
i
d
;
private
Long
work
I
d
;
/** */
/** */
@Column
(
name
=
"weight"
,
nullable
=
false
,
length
=
10
)
@Column
(
name
=
"weight"
,
nullable
=
false
,
length
=
10
)
...
@@ -77,8 +79,8 @@ public class WorkWeightSettingEntity implements java.io.Serializable {
...
@@ -77,8 +79,8 @@ public class WorkWeightSettingEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
Long
getWork
i
d
()
{
public
Long
getWork
I
d
()
{
return
this
.
work
i
d
;
return
this
.
work
I
d
;
}
}
/**
/**
...
@@ -87,8 +89,8 @@ public class WorkWeightSettingEntity implements java.io.Serializable {
...
@@ -87,8 +89,8 @@ public class WorkWeightSettingEntity implements java.io.Serializable {
* @param workid
* @param workid
*
*
*/
*/
public
void
setWork
id
(
Long
worki
d
)
{
public
void
setWork
Id
(
Long
workI
d
)
{
this
.
work
id
=
worki
d
;
this
.
work
Id
=
workI
d
;
}
}
/**
/**
...
...
src/main/java/com/hdp/customerservice/model/WorksEntity.java
View file @
9ab6492f
...
@@ -2,6 +2,8 @@ package com.hdp.customerservice.model;
...
@@ -2,6 +2,8 @@ package com.hdp.customerservice.model;
import
javax.persistence.Column
;
import
javax.persistence.Column
;
import
javax.persistence.Entity
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
...
@@ -19,7 +21,7 @@ public class WorksEntity implements java.io.Serializable {
...
@@ -19,7 +21,7 @@ public class WorksEntity implements java.io.Serializable {
/** */
/** */
@Id
@Id
@Column
(
name
=
"id"
,
unique
=
true
,
nullable
=
false
,
length
=
19
)
@GeneratedValue
(
strategy
=
GenerationType
.
AUTO
)
private
Long
id
;
private
Long
id
;
/** */
/** */
...
@@ -28,7 +30,7 @@ public class WorksEntity implements java.io.Serializable {
...
@@ -28,7 +30,7 @@ public class WorksEntity implements java.io.Serializable {
/** */
/** */
@Column
(
name
=
"username"
,
nullable
=
false
,
length
=
128
)
@Column
(
name
=
"username"
,
nullable
=
false
,
length
=
128
)
private
String
user
n
ame
;
private
String
user
N
ame
;
/** */
/** */
@Column
(
name
=
"pwd"
,
nullable
=
false
,
length
=
128
)
@Column
(
name
=
"pwd"
,
nullable
=
false
,
length
=
128
)
...
@@ -36,11 +38,11 @@ public class WorksEntity implements java.io.Serializable {
...
@@ -36,11 +38,11 @@ public class WorksEntity implements java.io.Serializable {
/** */
/** */
@Column
(
name
=
"nickname"
,
nullable
=
true
,
length
=
128
)
@Column
(
name
=
"nickname"
,
nullable
=
true
,
length
=
128
)
private
String
nick
n
ame
;
private
String
nick
N
ame
;
/** */
/** */
@Column
(
name
=
"headimg"
,
nullable
=
true
,
length
=
512
)
@Column
(
name
=
"headimg"
,
nullable
=
true
,
length
=
512
)
private
String
head
i
mg
;
private
String
head
I
mg
;
/** */
/** */
@Column
(
name
=
"status"
,
nullable
=
false
,
length
=
10
)
@Column
(
name
=
"status"
,
nullable
=
false
,
length
=
10
)
...
@@ -89,8 +91,8 @@ public class WorksEntity implements java.io.Serializable {
...
@@ -89,8 +91,8 @@ public class WorksEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
String
getUser
n
ame
()
{
public
String
getUser
N
ame
()
{
return
this
.
user
n
ame
;
return
this
.
user
N
ame
;
}
}
/**
/**
...
@@ -99,8 +101,8 @@ public class WorksEntity implements java.io.Serializable {
...
@@ -99,8 +101,8 @@ public class WorksEntity implements java.io.Serializable {
* @param username
* @param username
*
*
*/
*/
public
void
setUser
name
(
String
usern
ame
)
{
public
void
setUser
Name
(
String
userN
ame
)
{
this
.
user
name
=
usern
ame
;
this
.
user
Name
=
userN
ame
;
}
}
/**
/**
...
@@ -127,8 +129,8 @@ public class WorksEntity implements java.io.Serializable {
...
@@ -127,8 +129,8 @@ public class WorksEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
String
getNick
n
ame
()
{
public
String
getNick
N
ame
()
{
return
this
.
nick
n
ame
;
return
this
.
nick
N
ame
;
}
}
/**
/**
...
@@ -137,8 +139,8 @@ public class WorksEntity implements java.io.Serializable {
...
@@ -137,8 +139,8 @@ public class WorksEntity implements java.io.Serializable {
* @param nickname
* @param nickname
*
*
*/
*/
public
void
setNick
name
(
String
nickn
ame
)
{
public
void
setNick
Name
(
String
nickN
ame
)
{
this
.
nick
name
=
nickn
ame
;
this
.
nick
Name
=
nickN
ame
;
}
}
/**
/**
...
@@ -146,8 +148,8 @@ public class WorksEntity implements java.io.Serializable {
...
@@ -146,8 +148,8 @@ public class WorksEntity implements java.io.Serializable {
*
*
* @return
* @return
*/
*/
public
String
getHead
i
mg
()
{
public
String
getHead
I
mg
()
{
return
this
.
head
i
mg
;
return
this
.
head
I
mg
;
}
}
/**
/**
...
@@ -156,8 +158,8 @@ public class WorksEntity implements java.io.Serializable {
...
@@ -156,8 +158,8 @@ public class WorksEntity implements java.io.Serializable {
* @param headimg
* @param headimg
*
*
*/
*/
public
void
setHead
img
(
String
headi
mg
)
{
public
void
setHead
Img
(
String
headI
mg
)
{
this
.
head
img
=
headi
mg
;
this
.
head
Img
=
headI
mg
;
}
}
/**
/**
...
...
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