根据条款名称分页查询

This commit is contained in:
SUNJIABIN
2023-04-07 20:17:04 +08:00
parent a0829f5ede
commit 7c4dc14cc4
4 changed files with 10 additions and 1 deletions
@@ -89,7 +89,7 @@ public class SarStandItemsController extends BaseController<SarStandItems> {
@ApiOperation(value = "分解单查询")
@GetMapping("/querySarItemAndInterpretation")
public ResponseMessage querySarItemAndInterpretation(FindSarItemsPageReqDTO page){
List<SarStandItems> rows = ServiceImpl.querySarItemAndInterpretation(page);
List<SarStandItems> rows = ServiceImpl.selectByName(page.getItemsName());
PageInfo<SarStandItems> pageInfo = getPageInfo(page.getPager(), rows);
@@ -440,4 +440,8 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
}
return null;
}
public List<SarStandItems> selectByName(String itemsName) {
return sarFileSplitItemsEODao.selectByName(itemsName);
}
}
@@ -63,4 +63,6 @@ public interface SarFileSplitItemsEODao extends BaseMapper<SarFileSplitItemsEO>
@Select("select ID from sar_file_split_info where ID=#{infoId}")
String selectByInfoId(String infoId);
List<SarStandItems> selectByName(String itemsName);
}
@@ -630,5 +630,8 @@
${pager.orderCondition}
</if>
</select>
<select id="selectByName" resultType="com.adc.da.slrs.sarStandItems.entity.SarStandItems">
select ITEMS_NAME from sar_file_split_items where ITEMS_NAME =#{itemsName}
</select>
</mapper>