This commit is contained in:
gmhao 2023-12-19 01:38:17 +08:00
parent e5b6e555e5
commit d435d728e7
10 changed files with 60 additions and 12 deletions

View File

@ -46,15 +46,15 @@ public class MaPropInfoController extends BaseController {
/** /**
* 查询资产属性列表 * 查询资产属性列表
* @param propName * @param maPropInfo
* @return * @return
*/ */
@GetMapping("/list") @GetMapping("/list")
@ApiOperation(value = "查询资产属性列表") @ApiOperation(value = "查询资产属性列表")
public TableDataInfo list(String propName) public TableDataInfo list(MaPropInfo maPropInfo)
{ {
startPage(); startPage();
List<MaPropInfo> list = maPropInfoService.selectMaPropInfoList(propName); List<MaPropInfo> list = maPropInfoService.selectMaPropInfoList(maPropInfo);
return getDataTable(list); return getDataTable(list);
} }
/** /**
@ -162,9 +162,9 @@ public class MaPropInfoController extends BaseController {
@PostMapping("/export") @PostMapping("/export")
public void export(HttpServletResponse response, String propName) public void export(HttpServletResponse response, String propName)
{ {
List<MaPropInfo> list = maPropInfoService.selectMaPropInfoList(propName); // List<MaPropInfo> list = maPropInfoService.selectMaPropInfoList(propName);
ExcelUtil<MaPropInfo> util = new ExcelUtil<MaPropInfo>(MaPropInfo.class); // ExcelUtil<MaPropInfo> util = new ExcelUtil<MaPropInfo>(MaPropInfo.class);
util.exportExcel(response, list, "资产属性类型数据"); // util.exportExcel(response, list, "资产属性类型数据");
} }
/** /**

View File

@ -48,6 +48,17 @@ public class SysDicController extends BaseController
List<SysDic> list = sysDicService.selectSysDicList(sysDic); List<SysDic> list = sysDicService.selectSysDicList(sysDic);
return getDataTable(list); return getDataTable(list);
} }
/**
* 查询数据字典列表id
*/
@ApiOperation(value = "查询数据字典列表id")
@GetMapping("/listId")
public TableDataInfo listid(SysDic sysDic)
{
startPage();
List<SysDic> list = sysDicService.selectSysDic(sysDic);
return getDataTable(list);
}
/** /**
* 查询父类数据字典列表 * 查询父类数据字典列表
*/ */

View File

@ -16,10 +16,10 @@ public interface MaPropInfoMapper {
/** /**
* 根据资产名称查询资产属性列表 * 根据资产名称查询资产属性列表
* @param propName * @param maPropInfo
* @return * @return
*/ */
List<MaPropInfo> selectMaPropSet(String propName); List<MaPropInfo> selectMaPropSet(MaPropInfo maPropInfo);
/** /**
* 根据资产名称查询资产名称列表 * 根据资产名称查询资产名称列表
* @param * @param

View File

@ -28,7 +28,9 @@ public interface SysDicMapper
* @return 数据字典集合 * @return 数据字典集合
*/ */
public List<SysDic> selectSysDicList(SysDic sysDic); public List<SysDic> selectSysDicList(SysDic sysDic);
public List<SysDic> selectSysDic(SysDic sysDic);
/** /**
*
* 查询父类数据字典列表 * 查询父类数据字典列表
* *
* @param sysDic 数据字典 * @param sysDic 数据字典

View File

@ -16,10 +16,10 @@ public interface IMaPropInfoService {
/** /**
* 查询资产属性列表 * 查询资产属性列表
* @param propName * @param maPropInfo
* @return * @return
*/ */
List<MaPropInfo> selectMaPropInfoList(String propName); List<MaPropInfo> selectMaPropInfoList(MaPropInfo maPropInfo);
/** /**
* 查询资产属性列表 * 查询资产属性列表
* @param * @param

View File

@ -28,6 +28,13 @@ public interface ISysDicService
* @return 数据字典集合 * @return 数据字典集合
*/ */
public List<SysDic> selectSysDicList(SysDic sysDic); public List<SysDic> selectSysDicList(SysDic sysDic);
/**
* 查询数据字典列表
*
* @param sysDic 数据字典
* @return 数据字典集合
*/
public List<SysDic> selectSysDic(SysDic sysDic);
/** /**
* 查询父类数据字典列表 * 查询父类数据字典列表
* *

View File

@ -38,8 +38,8 @@ public class MaPropInfoServiceImpl implements IMaPropInfoService {
* @return * @return
*/ */
@Override @Override
public List<MaPropInfo> selectMaPropInfoList(String propName) { public List<MaPropInfo> selectMaPropInfoList(MaPropInfo maPropInfo) {
return maPropInfoMapper.selectMaPropSet(propName); return maPropInfoMapper.selectMaPropSet(maPropInfo);
} }
/** /**
* 查询资产属性列表 * 查询资产属性列表

View File

@ -46,6 +46,17 @@ public class SysDicServiceImpl implements ISysDicService
{ {
return sysDicMapper.selectSysDicList(sysDic); return sysDicMapper.selectSysDicList(sysDic);
} }
/**
* 查询数据字典列表id
*
* @param sysDic 数据字典
* @return 数据字典
*/
@Override
public List<SysDic> selectSysDic(SysDic sysDic)
{
return sysDicMapper.selectSysDic(sysDic);
}
/** /**
* 查询父类数据字典列表 * 查询父类数据字典列表
* *

View File

@ -180,6 +180,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="propName != null and propName != ''"> <if test="propName != null and propName != ''">
AND a.prop_name like concat('%', #{propName}, '%') AND a.prop_name like concat('%', #{propName}, '%')
</if> </if>
<if test="propId != null and propId != ''">
AND a.prop_id = #{propId}
</if>
</where> </where>
</select> </select>
<select id="selectMaPropSets" resultType="com.bonus.sgzb.base.domain.MaPropInfo" resultMap="MaPropInfoResult"> <select id="selectMaPropSets" resultType="com.bonus.sgzb.base.domain.MaPropInfo" resultMap="MaPropInfoResult">

View File

@ -31,6 +31,20 @@
<if test="creator != null and creator != ''"> and creator = #{creator}</if> <if test="creator != null and creator != ''"> and creator = #{creator}</if>
</where> </where>
</select> </select>
<select id="selectSysDic" parameterType="com.bonus.sgzb.base.api.domain.SysDic" resultMap="SysDicResult">
<include refid="selectSysDicVo"/>
<where>
id = #{id}
<if test="code != null and code != ''"> and code = #{code}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="description != null and description != ''"> and description = #{description}</if>
<if test="value != null and value != ''"> and value = #{value}</if>
<if test="sort != null and sort != ''"> and sort = #{sort}</if>
<if test="level != null and level != ''"> and level = #{level}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="creator != null and creator != ''"> and creator = #{creator}</if>
</where>
</select>
<select id="selectSysDicLists" parameterType="com.bonus.sgzb.base.api.domain.SysDic" resultMap="SysDicResult"> <select id="selectSysDicLists" parameterType="com.bonus.sgzb.base.api.domain.SysDic" resultMap="SysDicResult">
<include refid="selectSysDicVo"/> <include refid="selectSysDicVo"/>
<where> <where>