Commit 638e7a16 authored by 竹天卫's avatar 竹天卫

禅道bug修改

parent dd6c4d25
......@@ -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>
......
......@@ -46,6 +46,9 @@ public class EquipmentScrapVo {
@ApiModelProperty("申请人id")
private Integer userId;
@ApiModelProperty("申请人姓名")
private Integer userName;
@ApiModelProperty("报废原因")
private String scrapReason;
......
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment