查询所有资产

main
杜函宇 2 months ago
parent 1136dd2cb8
commit 79de7298b8

@ -76,6 +76,19 @@ public class AssetCurrentController extends BaseController {
return success(assetCurrentService.page(page, as));
}
/**
* ()
*
* @param as
* @return
*/
@ApiOperation(value = "查询所有数据(带子表)", response = AssetCurrent.class)
@GetMapping("/selectAllAsset")
public AjaxResult selectAllAsset(AssetCurrentPageRequest as) {
return success(assetCurrentService.selectAllAsset(as));
}
/**
*
*

@ -41,5 +41,10 @@ public interface AssetCurrentMapper extends BaseMapper<AssetCurrent> {
* @param idList
*/
void deleteIdList(@Param("idList") List<Long> idList);
/**
* ()
*/
List<AssetExport> selectAllAsset(AssetCurrentPageRequest as);
}

@ -52,5 +52,10 @@ public interface AssetCurrentService extends IService<AssetCurrent> {
* @param idList
*/
void deleteIdList(List<Long> idList);
/**
* ()
*/
List<AssetExport> selectAllAsset(AssetCurrentPageRequest as);
}

@ -100,5 +100,13 @@ public class AssetCurrentServiceImpl extends ServiceImpl<AssetCurrentMapper, Ass
public void deleteIdList(List<Long> idList) {
baseMapper.deleteIdList(idList);
}
/**
* ()
*/
@Override
public List<AssetExport> selectAllAsset(AssetCurrentPageRequest as) {
return baseMapper.selectAllAsset(as);
}
}

@ -146,4 +146,7 @@
set del_flag = '2'
where id = #{id}
</update>
<select id="selectAllAsset" resultType="com.ruoyi.tc.entity.AssetExport">
</select>
</mapper>
Loading…
Cancel
Save