Commit ca11e965 authored by wanghao's avatar wanghao

1 液化石油气监管-气瓶档案模块功能开发

parent 371043f1
package com.zehong.web.controller.lpgRegulation;
import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zehong.common.annotation.Log;
import com.zehong.common.core.controller.BaseController;
import com.zehong.common.core.domain.AjaxResult;
import com.zehong.common.enums.BusinessType;
import com.zehong.system.domain.TLpgGasBottleFiles;
import com.zehong.system.service.ITLpgGasBottleFilesService;
import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.common.core.page.TableDataInfo;
/**
* 液化石油气-气瓶档案Controller
*
* @author zehong
* @date 2024-07-09
*/
@RestController
@RequestMapping("/lpg/gasbottlefiles")
public class TLpgGasBottleFilesController extends BaseController
{
@Autowired
private ITLpgGasBottleFilesService tLpgGasBottleFilesService;
/**
* 查询液化石油气-气瓶档案列表
*/
@GetMapping("/list")
public TableDataInfo list(TLpgGasBottleFiles tLpgGasBottleFiles)
{
startPage();
List<TLpgGasBottleFiles> list = tLpgGasBottleFilesService.selectTLpgGasBottleFilesList(tLpgGasBottleFiles);
return getDataTable(list);
}
/**
* 导出液化石油气-气瓶档案列表
*/
@Log(title = "液化石油气-气瓶档案", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(TLpgGasBottleFiles tLpgGasBottleFiles)
{
List<TLpgGasBottleFiles> list = tLpgGasBottleFilesService.selectTLpgGasBottleFilesList(tLpgGasBottleFiles);
ExcelUtil<TLpgGasBottleFiles> util = new ExcelUtil<TLpgGasBottleFiles>(TLpgGasBottleFiles.class);
return util.exportExcel(list, "液化石油气-气瓶档案数据");
}
/**
* 获取液化石油气-气瓶档案详细信息
*/
@GetMapping(value = "/{fGasBottleFilesId}")
public AjaxResult getInfo(@PathVariable("fGasBottleFilesId") Long fGasBottleFilesId)
{
return AjaxResult.success(tLpgGasBottleFilesService.selectTLpgGasBottleFilesById(fGasBottleFilesId));
}
/**
* 新增液化石油气-气瓶档案
*/
@Log(title = "液化石油气-气瓶档案", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TLpgGasBottleFiles tLpgGasBottleFiles)
{
return toAjax(tLpgGasBottleFilesService.insertTLpgGasBottleFiles(tLpgGasBottleFiles));
}
/**
* 修改液化石油气-气瓶档案
*/
@Log(title = "液化石油气-气瓶档案", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TLpgGasBottleFiles tLpgGasBottleFiles)
{
return toAjax(tLpgGasBottleFilesService.updateTLpgGasBottleFiles(tLpgGasBottleFiles));
}
/**
* 删除液化石油气-气瓶档案
*/
@Log(title = "液化石油气-气瓶档案", businessType = BusinessType.DELETE)
@DeleteMapping("/{fGasBottleFilesIds}")
public AjaxResult remove(@PathVariable Long[] fGasBottleFilesIds)
{
return toAjax(tLpgGasBottleFilesService.deleteTLpgGasBottleFilesByIds(fGasBottleFilesIds));
}
}
package com.zehong.system.mapper;
import java.util.List;
import com.zehong.system.domain.TLpgGasBottleFiles;
/**
* 液化石油气-气瓶档案Mapper接口
*
* @author zehong
* @date 2024-07-09
*/
public interface TLpgGasBottleFilesMapper
{
/**
* 查询液化石油气-气瓶档案
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 液化石油气-气瓶档案
*/
public TLpgGasBottleFiles selectTLpgGasBottleFilesById(Long fGasBottleFilesId);
/**
* 查询液化石油气-气瓶档案列表
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 液化石油气-气瓶档案集合
*/
public List<TLpgGasBottleFiles> selectTLpgGasBottleFilesList(TLpgGasBottleFiles tLpgGasBottleFiles);
/**
* 新增液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
public int insertTLpgGasBottleFiles(TLpgGasBottleFiles tLpgGasBottleFiles);
/**
* 修改液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
public int updateTLpgGasBottleFiles(TLpgGasBottleFiles tLpgGasBottleFiles);
/**
* 删除液化石油气-气瓶档案
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 结果
*/
public int deleteTLpgGasBottleFilesById(Long fGasBottleFilesId);
/**
* 批量删除液化石油气-气瓶档案
*
* @param fGasBottleFilesIds 需要删除的数据ID
* @return 结果
*/
public int deleteTLpgGasBottleFilesByIds(Long[] fGasBottleFilesIds);
}
package com.zehong.system.service;
import java.util.List;
import com.zehong.system.domain.TLpgGasBottleFiles;
/**
* 液化石油气-气瓶档案Service接口
*
* @author zehong
* @date 2024-07-09
*/
public interface ITLpgGasBottleFilesService
{
/**
* 查询液化石油气-气瓶档案
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 液化石油气-气瓶档案
*/
public TLpgGasBottleFiles selectTLpgGasBottleFilesById(Long fGasBottleFilesId);
/**
* 查询液化石油气-气瓶档案列表
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 液化石油气-气瓶档案集合
*/
public List<TLpgGasBottleFiles> selectTLpgGasBottleFilesList(TLpgGasBottleFiles tLpgGasBottleFiles);
/**
* 新增液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
public int insertTLpgGasBottleFiles(TLpgGasBottleFiles tLpgGasBottleFiles);
/**
* 修改液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
public int updateTLpgGasBottleFiles(TLpgGasBottleFiles tLpgGasBottleFiles);
/**
* 批量删除液化石油气-气瓶档案
*
* @param fGasBottleFilesIds 需要删除的液化石油气-气瓶档案ID
* @return 结果
*/
public int deleteTLpgGasBottleFilesByIds(Long[] fGasBottleFilesIds);
/**
* 删除液化石油气-气瓶档案信息
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 结果
*/
public int deleteTLpgGasBottleFilesById(Long fGasBottleFilesId);
}
......@@ -191,8 +191,10 @@ public class GovernmentSupervisionInfoServiceImpl implements GovernmentSupervisi
GovernmentDataCopyUtil.copyToLocalData(proAppInforBrowseVo,tProAppInforBrowse);
proAppInforBrowseList.add(tProAppInforBrowse);
}
if (proAppInforBrowseList.size() > 0) {
tProAppInforBrowseMapper.batchInsertTProAppInforBrowse(proAppInforBrowseList);
}
}
return json;
}
......@@ -216,8 +218,10 @@ public class GovernmentSupervisionInfoServiceImpl implements GovernmentSupervisi
GovernmentDataCopyUtil.copyToLocalData(proBehInfoBrowseVo,proBehInforBrowse);
proBehInforBrowseList.add(proBehInforBrowse);
}
if (proBehInforBrowseList.size() > 0) {
fProBehInforBrowseMapper.batchInsertFProBehInforBrowse(proBehInforBrowseList);
}
}
return json;
}
......
package com.zehong.system.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zehong.system.mapper.TLpgGasBottleFilesMapper;
import com.zehong.system.domain.TLpgGasBottleFiles;
import com.zehong.system.service.ITLpgGasBottleFilesService;
/**
* 液化石油气-气瓶档案Service业务层处理
*
* @author zehong
* @date 2024-07-09
*/
@Service
public class TLpgGasBottleFilesServiceImpl implements ITLpgGasBottleFilesService
{
@Autowired
private TLpgGasBottleFilesMapper tLpgGasBottleFilesMapper;
/**
* 查询液化石油气-气瓶档案
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 液化石油气-气瓶档案
*/
@Override
public TLpgGasBottleFiles selectTLpgGasBottleFilesById(Long fGasBottleFilesId)
{
return tLpgGasBottleFilesMapper.selectTLpgGasBottleFilesById(fGasBottleFilesId);
}
/**
* 查询液化石油气-气瓶档案列表
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 液化石油气-气瓶档案
*/
@Override
public List<TLpgGasBottleFiles> selectTLpgGasBottleFilesList(TLpgGasBottleFiles tLpgGasBottleFiles)
{
return tLpgGasBottleFilesMapper.selectTLpgGasBottleFilesList(tLpgGasBottleFiles);
}
/**
* 新增液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
@Override
public int insertTLpgGasBottleFiles(TLpgGasBottleFiles tLpgGasBottleFiles)
{
return tLpgGasBottleFilesMapper.insertTLpgGasBottleFiles(tLpgGasBottleFiles);
}
/**
* 修改液化石油气-气瓶档案
*
* @param tLpgGasBottleFiles 液化石油气-气瓶档案
* @return 结果
*/
@Override
public int updateTLpgGasBottleFiles(TLpgGasBottleFiles tLpgGasBottleFiles)
{
return tLpgGasBottleFilesMapper.updateTLpgGasBottleFiles(tLpgGasBottleFiles);
}
/**
* 批量删除液化石油气-气瓶档案
*
* @param fGasBottleFilesIds 需要删除的液化石油气-气瓶档案ID
* @return 结果
*/
@Override
public int deleteTLpgGasBottleFilesByIds(Long[] fGasBottleFilesIds)
{
return tLpgGasBottleFilesMapper.deleteTLpgGasBottleFilesByIds(fGasBottleFilesIds);
}
/**
* 删除液化石油气-气瓶档案信息
*
* @param fGasBottleFilesId 液化石油气-气瓶档案ID
* @return 结果
*/
@Override
public int deleteTLpgGasBottleFilesById(Long fGasBottleFilesId)
{
return tLpgGasBottleFilesMapper.deleteTLpgGasBottleFilesById(fGasBottleFilesId);
}
}
import request from '@/utils/request'
// 查询液化石油气-气瓶档案列表
export function listFiles(query) {
return request({
url: '/lpg/gasbottlefiles/list',
method: 'get',
params: query
})
}
// 查询液化石油气-气瓶档案详细
export function getFiles(fGasBottleFilesId) {
return request({
url: '/lpg/gasbottlefiles/' + fGasBottleFilesId,
method: 'get'
})
}
// 新增液化石油气-气瓶档案
export function addFiles(data) {
return request({
url: '/lpg/gasbottlefiles',
method: 'post',
data: data
})
}
// 修改液化石油气-气瓶档案
export function updateFiles(data) {
return request({
url: '/lpg/gasbottlefiles',
method: 'put',
data: data
})
}
// 删除液化石油气-气瓶档案
export function delFiles(fGasBottleFilesId) {
return request({
url: '/lpg/gasbottlefiles/' + fGasBottleFilesId,
method: 'delete'
})
}
// 导出液化石油气-气瓶档案
export function exportFiles(query) {
return request({
url: '/lpg/gasbottlefiles/export',
method: 'get',
params: query
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment