feat: There is no way the, convert

This commit is contained in:
super_liu
2021-11-14 17:25:47 +08:00
parent d39aabd835
commit 21acca5bee
14 changed files with 449 additions and 48 deletions
@@ -1,12 +1,22 @@
package com.adc.da.slrs.sarLawsFile.controller;
import com.adc.da.att.entity.AttFileEO;
import com.adc.da.att.service.IAttFileEOService;
import com.adc.da.http.ResponseMessage;
import com.adc.da.http.Result;
import com.adc.da.slrs.sarLawsFile.service.ISarLawsFileService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.adc.da.slrs.sarLawsFile.entity.SarLawsFile;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RestController;
import com.adc.da.base.web.BaseController;
import java.util.List;
/**
* <p>
* 前端控制器
@@ -17,7 +27,31 @@ import com.adc.da.base.web.BaseController;
*/
@RestController
@Api(description = "|SarLawsFile|")
@RequestMapping("/sarLawsFile/sar-laws-file")
@RequestMapping("/${restPath}/lawss/sarLawsFile")
public class SarLawsFileController extends BaseController<SarLawsFile> {
@Autowired
private IAttFileEOService attFileEOService;
@Autowired
private ISarLawsFileService iSarLawsFileService;
@ApiOperation(value = "|SarBussStandFileEO|查询转换后的文档详情")
@GetMapping("/queryConvertAtt")
/*@RequiresPermissions("lawss:sarLawsFile:list")*/
public ResponseMessage<SarLawsFile> queryConvertAtt(String attId) throws Exception {
List<SarLawsFile> getList = iSarLawsFileService.selectFileByAttId(attId);
SarLawsFile sarBussStandFileEO = new SarLawsFile();
if(getList != null && !getList.isEmpty()){
sarBussStandFileEO = getList.get(0);
AttFileEO attFileEO = attFileEOService.getFileInfo(attId);
if(attFileEO != null){
sarBussStandFileEO.setFileOldName(attFileEO.getOldFileName());
}
// readStandOrLawsLogService.sendReadSOLLog("BUSS",sarBussStandFileEO);
return Result.success(sarBussStandFileEO);
} else {
return Result.success(null);
}
}
}
@@ -3,6 +3,8 @@ package com.adc.da.slrs.sarLawsFile.service;
import com.adc.da.slrs.sarLawsFile.entity.SarLawsFile;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* <p>
* 服务类
@@ -13,4 +15,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface ISarLawsFileService extends IService<SarLawsFile> {
List<SarLawsFile> selectFileByAttId(String attId) throws Exception;
}
@@ -6,6 +6,8 @@ import com.adc.da.slrs.sarLawsFile.service.ISarLawsFileService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* <p>
* 服务实现类
@@ -17,4 +19,8 @@ import org.springframework.stereotype.Service;
@Service
public class SarLawsFileServiceImpl extends ServiceImpl<SarLawsFileDao, SarLawsFile> implements ISarLawsFileService {
@Override
public List<SarLawsFile> selectFileByAttId(String attId) throws Exception{
return this.baseMapper.selectFileByAttId(attId);
}
}