Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
Overview
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
huluobin
bailuntec-cost
Commits
1995bf45
Commit
1995bf45
authored
Oct 27, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5b4e0ae2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
0 deletions
+38
-0
CostTemplateColController.java
...st/controller/costtemplate/CostTemplateColController.java
+7
-0
ICostTemplateBaseColService.java
...ther/module/cost/service/ICostTemplateBaseColService.java
+9
-0
ICostTemplateColService.java
...lt/other/module/cost/service/ICostTemplateColService.java
+9
-0
CostTemplateBaseColServiceImpl.java
...ice/impl/costtemplate/CostTemplateBaseColServiceImpl.java
+6
-0
CostTemplateColServiceImpl.java
...service/impl/costtemplate/CostTemplateColServiceImpl.java
+7
-0
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/costtemplate/CostTemplateColController.java
View file @
1995bf45
...
...
@@ -56,4 +56,11 @@ public class CostTemplateColController {
return
CostResult
.
success
(
resp
);
}
@ApiOperation
(
"/根据模版字段获取字段详情"
)
@PostMapping
(
"/queryById"
)
public
CostResult
<
CostTemplateCol
>
queryById
(
@RequestParam
Integer
id
)
{
CostTemplateCol
resp
=
costTemplateColService
.
queryById
(
id
);
return
CostResult
.
success
(
resp
);
}
}
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/ICostTemplateBaseColService.java
View file @
1995bf45
...
...
@@ -74,4 +74,13 @@ public interface ICostTemplateBaseColService extends IService<CostTemplateBaseCo
* @param costTemplateColList req
*/
void
setCostTemplateBaseCol
(
List
<
CostTemplateCol
>
costTemplateColList
);
/**
* <p>
* 补全聚合
* </p>
*
* @param costTemplateCol req
*/
void
setCostTemplateBaseCol
(
CostTemplateCol
costTemplateCol
);
}
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/ICostTemplateColService.java
View file @
1995bf45
...
...
@@ -72,4 +72,13 @@ public interface ICostTemplateColService extends IService<CostTemplateCol> {
* @return res
*/
List
<
CostTemplateCol
>
queryList
(
CostTemplateColApiReq
.
QueryListReq
req
);
/**
* <p>
* 根据模版字段获取字段详情
* </p>
* @param id id
* @return desc
*/
CostTemplateCol
queryById
(
Integer
id
);
}
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costtemplate/CostTemplateBaseColServiceImpl.java
View file @
1995bf45
...
...
@@ -68,4 +68,10 @@ public class CostTemplateBaseColServiceImpl extends ServiceImpl<CostTemplateBase
costTemplateColList
.
forEach
(
costTemplateCol
->
costTemplateCol
.
setCostTemplateBaseCol
(
costTemplateBaseColMap
.
get
(
costTemplateCol
.
getCostTemplateBaseColId
())));
}
}
@Override
public
void
setCostTemplateBaseCol
(
CostTemplateCol
costTemplateCol
)
{
CostTemplateBaseCol
costTemplateBaseCol
=
this
.
getById
(
costTemplateCol
.
getCostTemplateBaseColId
());
costTemplateCol
.
setCostTemplateBaseCol
(
costTemplateBaseCol
);
}
}
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costtemplate/CostTemplateColServiceImpl.java
View file @
1995bf45
...
...
@@ -125,4 +125,11 @@ public class CostTemplateColServiceImpl extends ServiceImpl<CostTemplateColMappe
.
collect
(
Collectors
.
toList
());
}
@Override
public
CostTemplateCol
queryById
(
Integer
id
)
{
CostTemplateCol
costTemplateCol
=
this
.
getById
(
id
);
costTemplateBaseColService
.
setCostTemplateBaseCol
(
costTemplateCol
);
return
costTemplateCol
;
}
}
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