Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
a4961482
Commit
a4961482
authored
Jun 14, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加材料排序
parent
c277a591
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
sample-form-manager/src/main/java/com/mortals/xhx/module/sample/web/SampleBillController.java
...m/mortals/xhx/module/sample/web/SampleBillController.java
+6
-1
No files found.
sample-form-manager/src/main/java/com/mortals/xhx/module/sample/web/SampleBillController.java
View file @
a4961482
...
...
@@ -10,6 +10,7 @@ import com.mortals.xhx.common.key.RedisKey;
import
com.mortals.xhx.module.device.model.DeviceEntity
;
import
com.mortals.xhx.module.device.model.DeviceQuery
;
import
com.mortals.xhx.module.device.service.DeviceService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -43,6 +44,7 @@ import static com.mortals.framework.ap.SysConstains.*;
*/
@RestController
@RequestMapping
(
"sample/bill"
)
@Slf4j
public
class
SampleBillController
extends
BaseCRUDJsonBodyMappingController
<
SampleBillService
,
SampleBillEntity
,
Long
>
{
@Autowired
...
...
@@ -76,8 +78,11 @@ public class SampleBillController extends BaseCRUDJsonBodyMappingController<Samp
public
String
save
(
@RequestBody
SampleBillEntity
entity
)
{
if
(
ObjectUtils
.
isEmpty
(
entity
.
getDeviceName
())
&&
!
ObjectUtils
.
isEmpty
(
entity
.
getDeviceCode
()))
{
DeviceEntity
deviceEntity
=
deviceService
.
selectOne
(
new
DeviceQuery
().
deviceCode
(
entity
.
getDeviceCode
()));
if
(!
ObjectUtils
.
isEmpty
(
deviceEntity
)){
entity
.
setDeviceName
(
deviceEntity
.
getDeviceName
());
}
}
entity
.
setMatterFullName
(
entity
.
getMatterName
());
entity
.
setMaterialFullName
(
entity
.
getMaterialName
());
...
...
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