功能完善

This commit is contained in:
bns_han 2024-01-16 18:21:24 +08:00
parent a3dcf55260
commit cd2e8b32d9
5 changed files with 14 additions and 14 deletions

View File

@ -64,9 +64,9 @@ public class MaPropInfoController extends BaseController {
*/ */
@GetMapping("/lists") @GetMapping("/lists")
@ApiOperation(value = "查询资产属性列表") @ApiOperation(value = "查询资产属性列表")
public TableDataInfo list() public TableDataInfo list(String bindingName)
{ {
List<MaPropInfo> list = maPropInfoService.selectMaPropInfoLists(); List<MaPropInfo> list = maPropInfoService.selectMaPropInfoLists(bindingName);
return getDataTable(list); return getDataTable(list);
} }
/** /**
@ -75,9 +75,9 @@ public class MaPropInfoController extends BaseController {
*/ */
@ApiOperation(value = "根据类型名称查询类型") @ApiOperation(value = "根据类型名称查询类型")
@GetMapping("/getMaTypeList") @GetMapping("/getMaTypeList")
public TableDataInfo getMaTypeList(){ public TableDataInfo getMaTypeList(String typeName){
startPage(); startPage();
List<MaType> maTypeList = maPropInfoService.selectMaType(); List<MaType> maTypeList = maPropInfoService.selectMaType(typeName);
return getDataTable(maTypeList); return getDataTable(maTypeList);
} }
/** /**

View File

@ -27,7 +27,7 @@ public interface MaPropInfoMapper {
* @param * @param
* @return * @return
*/ */
List<MaPropInfo> selectMaPropSets(); List<MaPropInfo> selectMaPropSets(String bindingName);
/** /**
* 校验资产项目名称唯一性 * 校验资产项目名称唯一性
* @param propName * @param propName
@ -56,7 +56,7 @@ public interface MaPropInfoMapper {
* @return * @return
*/ */
List<MaPropSet> checkPropIdUnique(MaPropSet maPropSet); List<MaPropSet> checkPropIdUnique(MaPropSet maPropSet);
List<MaType> selectMaType(); List<MaType> selectMaType(String typeName);
/** /**
* 删除资产项目 * 删除资产项目
* @param propId * @param propId

View File

@ -25,13 +25,13 @@ public interface IMaPropInfoService {
* @param * @param
* @return * @return
*/ */
List<MaPropInfo> selectMaPropInfoLists(); List<MaPropInfo> selectMaPropInfoLists(String bindingName);
/** /**
* 查询资产属性列表 * 查询资产属性列表
* @param * @param
* @return * @return
*/ */
List<MaType> selectMaType(); List<MaType> selectMaType(String typeName);
/** /**
* 校验资产项目名称唯一性 * 校验资产项目名称唯一性
* @param maPropInfo * @param maPropInfo

View File

@ -51,8 +51,8 @@ public class MaPropInfoServiceImpl implements IMaPropInfoService {
* @return * @return
*/ */
@Override @Override
public List<MaPropInfo> selectMaPropInfoLists() { public List<MaPropInfo> selectMaPropInfoLists(String bindingName) {
return maPropInfoMapper.selectMaPropSets(); return maPropInfoMapper.selectMaPropSets(bindingName);
} }
/** /**
* 查询资产属性列表 * 查询资产属性列表
@ -60,8 +60,8 @@ public class MaPropInfoServiceImpl implements IMaPropInfoService {
* @return * @return
*/ */
@Override @Override
public List<MaType> selectMaType() { public List<MaType> selectMaType(String typeName) {
return maPropInfoMapper.selectMaType(); return maPropInfoMapper.selectMaType(typeName);
} }
/** /**

View File

@ -217,8 +217,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select prop_id, prop_name select prop_id, prop_name
from ma_prop_info from ma_prop_info
<where> del_flag = '0' <where> del_flag = '0'
<if test="propName != null and propName != ''"> <if test="bindingName != null and bindingName != ''">
AND a.prop_name like concat('%', #{propName}, '%') AND prop_name like concat('%', #{bindingName}, '%')
</if> </if>
</where> </where>
</select> </select>