Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
tianjin-cement
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
竹天卫
tianjin-cement
Commits
ab3363cb
Commit
ab3363cb
authored
Oct 22, 2020
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
委托优化
parent
a38e06d8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
11 deletions
+16
-11
EntrustController.java
...wise/sc/cement/business/controller/EntrustController.java
+4
-3
EntrustMapper.xml
...a/cn/wise/sc/cement/business/mapper/xml/EntrustMapper.xml
+3
-0
IEntrustService.java
...a/cn/wise/sc/cement/business/service/IEntrustService.java
+1
-1
EntrustServiceImpl.java
...e/sc/cement/business/service/impl/EntrustServiceImpl.java
+2
-1
WeiXinService.java
...n/wise/sc/cement/business/service/impl/WeiXinService.java
+4
-4
application.yml
cement-business/src/main/resources/application.yml
+2
-2
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/controller/EntrustController.java
View file @
ab3363cb
...
@@ -53,13 +53,14 @@ public class EntrustController {
...
@@ -53,13 +53,14 @@ public class EntrustController {
"7校核中,8校核完成)"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
"7校核中,8校核完成)"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"clientId"
,
value
=
"委托单位id"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"clientId"
,
value
=
"委托单位id"
,
paramType
=
"query"
,
dataType
=
"Integer"
),
@ApiImplicitParam
(
name
=
"projectName"
,
value
=
"项目名称"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"projectName"
,
value
=
"项目名称"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"projectCode"
,
value
=
"项目编号"
,
paramType
=
"query"
,
dataType
=
"String"
)
@ApiImplicitParam
(
name
=
"projectCode"
,
value
=
"项目编号"
,
paramType
=
"query"
,
dataType
=
"String"
),
@ApiImplicitParam
(
name
=
"isUrgent"
,
value
=
"(1加急,0不加急)"
,
paramType
=
"query"
,
dataType
=
"Integer"
)
})
})
@GetMapping
(
"/getPage"
)
@GetMapping
(
"/getPage"
)
public
BaseResponse
getPage
(
PageQuery
pageQuery
,
String
startDate
,
String
endDate
,
Integer
status
,
public
BaseResponse
getPage
(
PageQuery
pageQuery
,
String
startDate
,
String
endDate
,
Integer
status
,
Integer
clientId
,
String
projectName
,
String
projectCode
)
{
Integer
clientId
,
String
projectName
,
String
projectCode
,
Integer
isUrgent
)
{
try
{
try
{
return
entrustService
.
getPage
(
pageQuery
,
startDate
,
endDate
,
status
,
clientId
,
projectName
,
projectCode
);
return
entrustService
.
getPage
(
pageQuery
,
startDate
,
endDate
,
status
,
clientId
,
projectName
,
projectCode
,
isUrgent
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
debug
(
"委托分页列表{}"
,
e
);
log
.
debug
(
"委托分页列表{}"
,
e
);
}
}
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/mapper/xml/EntrustMapper.xml
View file @
ab3363cb
...
@@ -29,6 +29,9 @@
...
@@ -29,6 +29,9 @@
<if
test=
"params.projectType != null and params.projectType != ''"
>
<if
test=
"params.projectType != null and params.projectType != ''"
>
and e.project_type = #{params.projectType}
and e.project_type = #{params.projectType}
</if>
</if>
<if
test=
"params.isUrgent != null"
>
and e.is_urgent = #{params.isUrgent}
</if>
</where>
</where>
</sql>
</sql>
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/IEntrustService.java
View file @
ab3363cb
...
@@ -29,7 +29,7 @@ import java.util.Map;
...
@@ -29,7 +29,7 @@ import java.util.Map;
public
interface
IEntrustService
extends
IService
<
Entrust
>
{
public
interface
IEntrustService
extends
IService
<
Entrust
>
{
BaseResponse
<
IPage
<
EntrustVo
>>
getPage
(
PageQuery
pageQuery
,
String
startDate
,
String
endDate
,
Integer
status
,
BaseResponse
<
IPage
<
EntrustVo
>>
getPage
(
PageQuery
pageQuery
,
String
startDate
,
String
endDate
,
Integer
status
,
Integer
clientId
,
String
projectName
,
String
projectCode
);
Integer
clientId
,
String
projectName
,
String
projectCode
,
Integer
isUrgent
);
BaseResponse
<
String
>
setTopping
(
Integer
id
);
BaseResponse
<
String
>
setTopping
(
Integer
id
);
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/EntrustServiceImpl.java
View file @
ab3363cb
...
@@ -124,7 +124,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
...
@@ -124,7 +124,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
*/
*/
@Override
@Override
public
BaseResponse
<
IPage
<
EntrustVo
>>
getPage
(
PageQuery
pageQuery
,
String
startDate
,
String
endDate
,
Integer
status
,
public
BaseResponse
<
IPage
<
EntrustVo
>>
getPage
(
PageQuery
pageQuery
,
String
startDate
,
String
endDate
,
Integer
status
,
Integer
clientId
,
String
projectName
,
String
projectCode
)
{
Integer
clientId
,
String
projectName
,
String
projectCode
,
Integer
isUrgent
)
{
LoginUser
loginUser
=
userService
.
getLoginUser
();
LoginUser
loginUser
=
userService
.
getLoginUser
();
if
(
loginUser
==
null
)
{
if
(
loginUser
==
null
)
{
return
BaseResponse
.
errorMsg
(
"请登录账号"
);
return
BaseResponse
.
errorMsg
(
"请登录账号"
);
...
@@ -136,6 +136,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
...
@@ -136,6 +136,7 @@ public class EntrustServiceImpl extends ServiceImpl<EntrustMapper, Entrust> impl
params
.
put
(
"clientId"
,
clientId
);
params
.
put
(
"clientId"
,
clientId
);
params
.
put
(
"projectName"
,
projectName
);
params
.
put
(
"projectName"
,
projectName
);
params
.
put
(
"projectCode"
,
projectCode
);
params
.
put
(
"projectCode"
,
projectCode
);
params
.
put
(
"isUrgent"
,
isUrgent
);
Integer
approvalId
=
sysApprovalMapper
.
getApprovalId
(
"委托评审"
);
Integer
approvalId
=
sysApprovalMapper
.
getApprovalId
(
"委托评审"
);
if
(
approvalId
==
null
)
{
if
(
approvalId
==
null
)
{
return
BaseResponse
.
errorMsg
(
"委托评审信息错误"
);
return
BaseResponse
.
errorMsg
(
"委托评审信息错误"
);
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/WeiXinService.java
View file @
ab3363cb
...
@@ -49,7 +49,7 @@ public class WeiXinService {
...
@@ -49,7 +49,7 @@ public class WeiXinService {
System
.
out
.
println
(
"==================code==================="
);
System
.
out
.
println
(
"==================code==================="
);
System
.
out
.
println
(
code
);
System
.
out
.
println
(
code
);
try
{
try
{
/*
String accessToken = null;
String
accessToken
=
null
;
if
(
type
.
equals
(
"PC"
)){
if
(
type
.
equals
(
"PC"
)){
accessToken
=
getAccessToken
();
accessToken
=
getAccessToken
();
}
else
if
(
type
.
equals
(
"APP"
)){
}
else
if
(
type
.
equals
(
"APP"
)){
...
@@ -66,10 +66,10 @@ public class WeiXinService {
...
@@ -66,10 +66,10 @@ public class WeiXinService {
String
UserId
=
jsonObject
.
getString
(
"UserId"
);
String
UserId
=
jsonObject
.
getString
(
"UserId"
);
System
.
out
.
println
(
"==================UserId==================="
);
System
.
out
.
println
(
"==================UserId==================="
);
System
.
out
.
println
(
UserId
);
System
.
out
.
println
(
UserId
);
JSONObject userJson = getUser(accessToken, UserId);
*/
JSONObject
userJson
=
getUser
(
accessToken
,
UserId
);
QueryWrapper
<
SysUser
>
wrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
SysUser
>
wrapper
=
new
QueryWrapper
<>();
//
wrapper.eq("phone", userJson.get("mobile"));
wrapper
.
eq
(
"phone"
,
userJson
.
get
(
"mobile"
));
wrapper
.
eq
(
"phone"
,
code
);
//暂时用手机号代替code
//
wrapper.eq("phone", code); //暂时用手机号代替code
SysUser
sysUser
=
userService
.
getOne
(
wrapper
);
SysUser
sysUser
=
userService
.
getOne
(
wrapper
);
if
(
sysUser
==
null
){
if
(
sysUser
==
null
){
return
BaseResponse
.
errorMsg
(
"非系统用户不允许登录!"
);
return
BaseResponse
.
errorMsg
(
"非系统用户不允许登录!"
);
...
...
cement-business/src/main/resources/application.yml
View file @
ab3363cb
...
@@ -8,8 +8,8 @@ spring:
...
@@ -8,8 +8,8 @@ spring:
active
:
dev
active
:
dev
datasource
:
datasource
:
# 192.168.110.85 admin!@#123
# 192.168.110.85 admin!@#123
url
:
jdbc:mysql://192.168.110.85:3306/sinoma_tcdri?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
#
url: jdbc:mysql://192.168.110.85:3306/sinoma_tcdri?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
#
url: jdbc:mysql://81.68.92.175:3306/sinoma_tcdri?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
url
:
jdbc:mysql://81.68.92.175:3306/sinoma_tcdri?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&useSSL=false
username
:
root
username
:
root
password
:
admin!@#123
password
:
admin!@#123
driverClassName
:
com.mysql.cj.jdbc.Driver
driverClassName
:
com.mysql.cj.jdbc.Driver
...
...
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