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
638e7a16
Commit
638e7a16
authored
Mar 11, 2021
by
竹天卫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
禅道bug修改
parent
dd6c4d25
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
EquipmentScrapMapper.xml
...se/sc/cement/business/mapper/xml/EquipmentScrapMapper.xml
+2
-1
EquipmentScrapVo.java
...cn/wise/sc/cement/business/model/vo/EquipmentScrapVo.java
+3
-0
SupplierServiceImpl.java
.../sc/cement/business/service/impl/SupplierServiceImpl.java
+6
-0
No files found.
cement-business/src/main/java/cn/wise/sc/cement/business/mapper/xml/EquipmentScrapMapper.xml
View file @
638e7a16
...
...
@@ -21,9 +21,10 @@
<select
id=
"getPage"
resultType=
"cn.wise.sc.cement.business.model.vo.EquipmentScrapVo"
>
SELECT es.*,
e.name as equipmentName, e.code as code, e.brand as brand, e.model as model, e.purchase_date as purchaseDate,
e.assets_value as assetsValue
e.assets_value as assetsValue
, su.name as userName
FROM equipment_scrap es
left join equipment e on e.id = es.equipment_id
left join sys_user su on su.id = es.user_id
<include
refid=
"where"
/>
ORDER BY es.create_time ASC
</select>
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/model/vo/EquipmentScrapVo.java
View file @
638e7a16
...
...
@@ -46,6 +46,9 @@ public class EquipmentScrapVo {
@ApiModelProperty
(
"申请人id"
)
private
Integer
userId
;
@ApiModelProperty
(
"申请人姓名"
)
private
Integer
userName
;
@ApiModelProperty
(
"报废原因"
)
private
String
scrapReason
;
...
...
cement-business/src/main/java/cn/wise/sc/cement/business/service/impl/SupplierServiceImpl.java
View file @
638e7a16
...
...
@@ -73,6 +73,9 @@ public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier> i
if
(
StringUtils
.
isEmpty
(
query
.
getName
()))
{
return
BaseResponse
.
errorMsg
(
"供应商名称不能为空!"
);
}
if
(
query
.
getContactsPhone
().
length
()
>
11
)
{
return
BaseResponse
.
errorMsg
(
"联系人电话长度过长!"
);
}
QueryWrapper
<
Supplier
>
qw
=
new
QueryWrapper
<>();
qw
.
eq
(
"name"
,
query
.
getName
());
int
count
=
supplierMapper
.
selectCount
(
qw
);
...
...
@@ -97,6 +100,9 @@ public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier> i
if
(
StringUtils
.
isEmpty
(
query
.
getName
()))
{
return
BaseResponse
.
errorMsg
(
"供应商名称不能为空!"
);
}
if
(
query
.
getContactsPhone
().
length
()
>
11
)
{
return
BaseResponse
.
errorMsg
(
"联系人电话长度过长!"
);
}
QueryWrapper
<
Supplier
>
qw
=
new
QueryWrapper
<>();
qw
.
eq
(
"name"
,
query
.
getName
());
qw
.
ne
(
"id"
,
query
.
getId
());
...
...
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