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
51e25aea
Commit
51e25aea
authored
Oct 23, 2020
by
mengbali153
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
非标产值申请
parent
25b50a5e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
9 deletions
+10
-9
NonStandardApplyController.java
...ement/business/controller/NonStandardApplyController.java
+3
-3
NonStandardApplyMapper.java
...ise/sc/cement/business/mapper/NonStandardApplyMapper.java
+1
-1
NonStandardApplyMapper.xml
.../sc/cement/business/mapper/xml/NonStandardApplyMapper.xml
+1
-0
INonStandardApplyService.java
.../sc/cement/business/service/INonStandardApplyService.java
+1
-1
NonStandardApplyServiceImpl.java
...nt/business/service/impl/NonStandardApplyServiceImpl.java
+4
-4
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/controller/NonStandardApplyController.java
View file @
51e25aea
...
@@ -59,11 +59,11 @@ public class NonStandardApplyController {
...
@@ -59,11 +59,11 @@ public class NonStandardApplyController {
return
BaseResponse
.
errorMsg
(
"失败!"
);
return
BaseResponse
.
errorMsg
(
"失败!"
);
}
}
@ApiOperation
(
value
=
"获取
所有
非标产值申请"
)
@ApiOperation
(
value
=
"获取
当前用户所有的
非标产值申请"
)
@GetMapping
(
"/getList"
)
@GetMapping
(
"/getList"
)
public
BaseResponse
getList
()
{
public
BaseResponse
getList
(
Integer
userId
)
{
try
{
try
{
return
iNonStandardApplyService
.
getList
();
return
iNonStandardApplyService
.
getList
(
userId
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
debug
(
"获取所有的非标产值申请{}"
,
e
);
log
.
debug
(
"获取所有的非标产值申请{}"
,
e
);
}
}
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/mapper/NonStandardApplyMapper.java
View file @
51e25aea
...
@@ -24,7 +24,7 @@ public interface NonStandardApplyMapper extends BaseMapper<NonStandardApply> {
...
@@ -24,7 +24,7 @@ public interface NonStandardApplyMapper extends BaseMapper<NonStandardApply> {
List
<
NonStandardApplyVo
>
getById
(
@Param
(
"params"
)
Map
<
String
,
Object
>
params
);
List
<
NonStandardApplyVo
>
getById
(
@Param
(
"params"
)
Map
<
String
,
Object
>
params
);
List
<
NonStandardApplyVo
>
getList
(
QueryWrapper
<
NonStandardApply
>
qw
);
List
<
NonStandardApplyVo
>
getList
(
@Param
(
"params"
)
Map
<
String
,
Object
>
params
);
List
<
Map
<
String
,
Object
>>
exportList
(
@Param
(
"params"
)
Map
<
String
,
Object
>
params
);
List
<
Map
<
String
,
Object
>>
exportList
(
@Param
(
"params"
)
Map
<
String
,
Object
>
params
);
}
}
cement-business/src/main/java/cn/wise/sc/cement/business/mapper/xml/NonStandardApplyMapper.xml
View file @
51e25aea
...
@@ -28,6 +28,7 @@
...
@@ -28,6 +28,7 @@
select na.*,su.name as name,su.username as account
select na.*,su.name as name,su.username as account
from nonstandard_apply na
from nonstandard_apply na
LEFT JOIN sys_user su ON su.id = na.user_id
LEFT JOIN sys_user su ON su.id = na.user_id
<include
refid=
"where"
/>
order by na.id asc
order by na.id asc
</select>
</select>
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/INonStandardApplyService.java
View file @
51e25aea
...
@@ -34,7 +34,7 @@ public interface INonStandardApplyService extends IService<NonStandardApply> {
...
@@ -34,7 +34,7 @@ public interface INonStandardApplyService extends IService<NonStandardApply> {
*
*
* @return List
* @return List
*/
*/
BaseResponse
<
List
<
NonStandardApplyVo
>>
getList
();
BaseResponse
<
List
<
NonStandardApplyVo
>>
getList
(
Integer
userId
);
/**
/**
* 通过id查询非标产值申请信息
* 通过id查询非标产值申请信息
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/NonStandardApplyServiceImpl.java
View file @
51e25aea
...
@@ -52,10 +52,10 @@ public class NonStandardApplyServiceImpl extends ServiceImpl<NonStandardApplyMap
...
@@ -52,10 +52,10 @@ public class NonStandardApplyServiceImpl extends ServiceImpl<NonStandardApplyMap
}
}
@Override
@Override
public
BaseResponse
<
List
<
NonStandardApplyVo
>>
getList
()
{
public
BaseResponse
<
List
<
NonStandardApplyVo
>>
getList
(
Integer
userId
)
{
QueryWrapper
<
NonStandardApply
>
qw
=
new
QueryWrapper
<>();
Map
<
String
,
Object
>
params
=
new
HashMap
<>();
qw
.
ge
(
"status"
,
0
);
params
.
put
(
"userId"
,
userId
);
List
<
NonStandardApplyVo
>
list
=
nonStandardApplyMapper
.
getList
(
qw
);
List
<
NonStandardApplyVo
>
list
=
nonStandardApplyMapper
.
getList
(
params
);
return
BaseResponse
.
okData
(
list
);
return
BaseResponse
.
okData
(
list
);
}
}
...
...
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