补全创建人和搜索
This commit is contained in:
+7
@@ -53,6 +53,9 @@ public class LineManagementImpl extends ServiceImpl<LineManagementMapper, LineMa
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||
LineManagement LineManagement = new LineManagement();
|
||||
BeanUtils.copyProperties(lineManagementDO,LineManagement);
|
||||
LineManagement.setCreateBy(loginUser.getUserid());
|
||||
LineManagement.setCreateByName(loginUser.getUsername());
|
||||
LineManagement.setCreateTime(new Date());
|
||||
boolean save = this.save(LineManagement);
|
||||
//客户列表补充id
|
||||
List<LineManagementCustomer> lineManagementCustomers =
|
||||
@@ -86,6 +89,7 @@ public class LineManagementImpl extends ServiceImpl<LineManagementMapper, LineMa
|
||||
*/
|
||||
@Override
|
||||
public Boolean update(LineManagementDO lineManagementDO) {
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||
LineManagement lineManagement = new LineManagement();
|
||||
BeanUtils.copyProperties(lineManagementDO,lineManagement);
|
||||
LineManagement lineManagementDB = this.getById(lineManagement.getId());
|
||||
@@ -112,6 +116,9 @@ public class LineManagementImpl extends ServiceImpl<LineManagementMapper, LineMa
|
||||
userDTO.setRouteName(lineManagementDO.getRouteName());
|
||||
userServiceFeign.updateLineManagement(userDTO);
|
||||
}
|
||||
lineManagement.setUpdateBy(loginUser.getUserid());
|
||||
lineManagement.setUpdateTime(new Date());
|
||||
lineManagement.setUpdateByName(loginUser.getUsername());
|
||||
return this.updateById(lineManagement);
|
||||
}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and a.warehouse_id = #{warehouseId}
|
||||
</if>
|
||||
<if test="warehouseName != null and warehouseName != ''">
|
||||
and (w.warehouse_name like concat('%', #{warehouseName}, '%') or a.warehouse_name like concat('%', #{warehouseName}, '%'))
|
||||
and a.warehouse_name like concat('%', #{warehouseName}, '%')
|
||||
</if>
|
||||
<!-- 线路管理字段查询 -->
|
||||
<if test="routeCode != null and routeCode != ''">
|
||||
|
||||
Reference in New Issue
Block a user