调整格式

segment2.0
linrf 2 years ago
parent a96cabe0af
commit c1ba385358

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrbasic.AddOcrBasicDTO;
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
import com.docus.server.dto.segmentation.ocrbasic.DeleteOcrBasicDTO;
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
import com.docus.server.entity.segmentation.OcrBasic;
import com.docus.server.api.segmentation.OcrBasicApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrBasicApi;
import com.docus.server.dto.segmentation.ocrbasic.AddOcrBasicDTO;
import com.docus.server.dto.segmentation.ocrbasic.DeleteOcrBasicDTO;
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
import com.docus.server.service.IOcrBasicService;
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "患者信息表", tags = "患者信息表")
@RestController
public class OcrBasicController implements OcrBasicApi {
@Resource
private IOcrBasicService iOcrBasicService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrBasicVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrBasicController implements OcrBasicApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrBasicVO> findAll() {
return iOcrBasicService.findAll();
@Override
public List<OcrBasicVO> findAll() {
return iOcrBasicService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrBasicVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrBasicController implements OcrBasicApi {
}
/**
*
* @param addOcrBasicDTO
*/
*
*
* @param addOcrBasicDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrBasicDTO addOcrBasicDTO) {
iOcrBasicService.add(addOcrBasicDTO);
@Override
public void add(AddOcrBasicDTO addOcrBasicDTO) {
iOcrBasicService.add(addOcrBasicDTO);
}
/**
*
* @param editOcrBasicDTO
*/
*
*
* @param editOcrBasicDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrBasicDTO editOcrBasicDTO) {
iOcrBasicService.edit(editOcrBasicDTO);
@Override
public void edit(EditOcrBasicDTO editOcrBasicDTO) {
iOcrBasicService.edit(editOcrBasicDTO);
}
/**
*
* @param deleteOcrBasicDTO
* @return
*/
*
*
* @param deleteOcrBasicDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrBasicDTO deleteOcrBasicDTO) {
return iOcrBasicService.delete(deleteOcrBasicDTO);
@Override
public int delete(DeleteOcrBasicDTO deleteOcrBasicDTO) {
return iOcrBasicService.delete(deleteOcrBasicDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrbasictest.AddOcrBasicTestDTO;
import com.docus.server.dto.segmentation.ocrbasictest.EditOcrBasicTestDTO;
import com.docus.server.dto.segmentation.ocrbasictest.DeleteOcrBasicTestDTO;
import com.docus.server.vo.segmentation.ocrbasictest.OcrBasicTestVO;
import com.docus.server.entity.segmentation.OcrBasicTest;
import com.docus.server.api.segmentation.OcrBasicTestApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrBasicTestApi;
import com.docus.server.dto.segmentation.ocrbasictest.AddOcrBasicTestDTO;
import com.docus.server.dto.segmentation.ocrbasictest.DeleteOcrBasicTestDTO;
import com.docus.server.dto.segmentation.ocrbasictest.EditOcrBasicTestDTO;
import com.docus.server.service.IOcrBasicTestService;
import com.docus.server.vo.segmentation.ocrbasictest.OcrBasicTestVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "患者信息表-调试", tags = "患者信息表-调试")
@RestController
public class OcrBasicTestController implements OcrBasicTestApi {
@Resource
private IOcrBasicTestService iOcrBasicTestService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrBasicTestVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrBasicTestController implements OcrBasicTestApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrBasicTestVO> findAll() {
return iOcrBasicTestService.findAll();
@Override
public List<OcrBasicTestVO> findAll() {
return iOcrBasicTestService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrBasicTestVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrBasicTestController implements OcrBasicTestApi {
}
/**
*
* @param addOcrBasicTestDTO
*/
*
*
* @param addOcrBasicTestDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrBasicTestDTO addOcrBasicTestDTO) {
iOcrBasicTestService.add(addOcrBasicTestDTO);
@Override
public void add(AddOcrBasicTestDTO addOcrBasicTestDTO) {
iOcrBasicTestService.add(addOcrBasicTestDTO);
}
/**
*
* @param editOcrBasicTestDTO
*/
*
*
* @param editOcrBasicTestDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrBasicTestDTO editOcrBasicTestDTO) {
iOcrBasicTestService.edit(editOcrBasicTestDTO);
@Override
public void edit(EditOcrBasicTestDTO editOcrBasicTestDTO) {
iOcrBasicTestService.edit(editOcrBasicTestDTO);
}
/**
*
* @param deleteOcrBasicTestDTO
* @return
*/
*
*
* @param deleteOcrBasicTestDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrBasicTestDTO deleteOcrBasicTestDTO) {
return iOcrBasicTestService.delete(deleteOcrBasicTestDTO);
@Override
public int delete(DeleteOcrBasicTestDTO deleteOcrBasicTestDTO) {
return iOcrBasicTestService.delete(deleteOcrBasicTestDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrcutconfig.AddOcrCutConfigDTO;
import com.docus.server.dto.segmentation.ocrcutconfig.EditOcrCutConfigDTO;
import com.docus.server.dto.segmentation.ocrcutconfig.DeleteOcrCutConfigDTO;
import com.docus.server.vo.segmentation.ocrcutconfig.OcrCutConfigVO;
import com.docus.server.entity.segmentation.OcrCutConfig;
import com.docus.server.api.segmentation.OcrCutConfigApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrCutConfigApi;
import com.docus.server.dto.segmentation.ocrcutconfig.AddOcrCutConfigDTO;
import com.docus.server.dto.segmentation.ocrcutconfig.DeleteOcrCutConfigDTO;
import com.docus.server.dto.segmentation.ocrcutconfig.EditOcrCutConfigDTO;
import com.docus.server.service.IOcrCutConfigService;
import com.docus.server.vo.segmentation.ocrcutconfig.OcrCutConfigVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "ocr图片剪切配置", tags = "ocr图片剪切配置")
@RestController
public class OcrCutConfigController implements OcrCutConfigApi {
@Resource
private IOcrCutConfigService iOcrCutConfigService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrCutConfigVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrCutConfigController implements OcrCutConfigApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrCutConfigVO> findAll() {
return iOcrCutConfigService.findAll();
@Override
public List<OcrCutConfigVO> findAll() {
return iOcrCutConfigService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrCutConfigVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrCutConfigController implements OcrCutConfigApi {
}
/**
*
* @param addOcrCutConfigDTO
*/
*
*
* @param addOcrCutConfigDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrCutConfigDTO addOcrCutConfigDTO) {
iOcrCutConfigService.add(addOcrCutConfigDTO);
@Override
public void add(AddOcrCutConfigDTO addOcrCutConfigDTO) {
iOcrCutConfigService.add(addOcrCutConfigDTO);
}
/**
*
* @param editOcrCutConfigDTO
*/
*
*
* @param editOcrCutConfigDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrCutConfigDTO editOcrCutConfigDTO) {
iOcrCutConfigService.edit(editOcrCutConfigDTO);
@Override
public void edit(EditOcrCutConfigDTO editOcrCutConfigDTO) {
iOcrCutConfigService.edit(editOcrCutConfigDTO);
}
/**
*
* @param deleteOcrCutConfigDTO
* @return
*/
*
*
* @param deleteOcrCutConfigDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrCutConfigDTO deleteOcrCutConfigDTO) {
return iOcrCutConfigService.delete(deleteOcrCutConfigDTO);
@Override
public int delete(DeleteOcrCutConfigDTO deleteOcrCutConfigDTO) {
return iOcrCutConfigService.delete(deleteOcrCutConfigDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrcutconfigtest.AddOcrCutConfigTestDTO;
import com.docus.server.dto.segmentation.ocrcutconfigtest.EditOcrCutConfigTestDTO;
import com.docus.server.dto.segmentation.ocrcutconfigtest.DeleteOcrCutConfigTestDTO;
import com.docus.server.vo.segmentation.ocrcutconfigtest.OcrCutConfigTestVO;
import com.docus.server.entity.segmentation.OcrCutConfigTest;
import com.docus.server.api.segmentation.OcrCutConfigTestApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrCutConfigTestApi;
import com.docus.server.dto.segmentation.ocrcutconfigtest.AddOcrCutConfigTestDTO;
import com.docus.server.dto.segmentation.ocrcutconfigtest.DeleteOcrCutConfigTestDTO;
import com.docus.server.dto.segmentation.ocrcutconfigtest.EditOcrCutConfigTestDTO;
import com.docus.server.service.IOcrCutConfigTestService;
import com.docus.server.vo.segmentation.ocrcutconfigtest.OcrCutConfigTestVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "ocr图片剪切配置-调试", tags = "ocr图片剪切配置-调试")
@RestController
public class OcrCutConfigTestController implements OcrCutConfigTestApi {
@Resource
private IOcrCutConfigTestService iOcrCutConfigTestService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrCutConfigTestVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrCutConfigTestController implements OcrCutConfigTestApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrCutConfigTestVO> findAll() {
return iOcrCutConfigTestService.findAll();
@Override
public List<OcrCutConfigTestVO> findAll() {
return iOcrCutConfigTestService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrCutConfigTestVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrCutConfigTestController implements OcrCutConfigTestApi {
}
/**
*
* @param addOcrCutConfigTestDTO
*/
*
*
* @param addOcrCutConfigTestDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrCutConfigTestDTO addOcrCutConfigTestDTO) {
iOcrCutConfigTestService.add(addOcrCutConfigTestDTO);
@Override
public void add(AddOcrCutConfigTestDTO addOcrCutConfigTestDTO) {
iOcrCutConfigTestService.add(addOcrCutConfigTestDTO);
}
/**
*
* @param editOcrCutConfigTestDTO
*/
*
*
* @param editOcrCutConfigTestDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrCutConfigTestDTO editOcrCutConfigTestDTO) {
iOcrCutConfigTestService.edit(editOcrCutConfigTestDTO);
@Override
public void edit(EditOcrCutConfigTestDTO editOcrCutConfigTestDTO) {
iOcrCutConfigTestService.edit(editOcrCutConfigTestDTO);
}
/**
*
* @param deleteOcrCutConfigTestDTO
* @return
*/
*
*
* @param deleteOcrCutConfigTestDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrCutConfigTestDTO deleteOcrCutConfigTestDTO) {
return iOcrCutConfigTestService.delete(deleteOcrCutConfigTestDTO);
@Override
public int delete(DeleteOcrCutConfigTestDTO deleteOcrCutConfigTestDTO) {
return iOcrCutConfigTestService.delete(deleteOcrCutConfigTestDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrfileinfo.AddOcrFileInfoDTO;
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
import com.docus.server.dto.segmentation.ocrfileinfo.DeleteOcrFileInfoDTO;
import com.docus.server.vo.segmentation.ocrfileinfo.OcrFileInfoVO;
import com.docus.server.entity.segmentation.OcrFileInfo;
import com.docus.server.api.segmentation.OcrFileInfoApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrFileInfoApi;
import com.docus.server.dto.segmentation.ocrfileinfo.AddOcrFileInfoDTO;
import com.docus.server.dto.segmentation.ocrfileinfo.DeleteOcrFileInfoDTO;
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
import com.docus.server.service.IOcrFileInfoService;
import com.docus.server.vo.segmentation.ocrfileinfo.OcrFileInfoVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "ocr文件信息", tags = "ocr文件信息")
@RestController
public class OcrFileInfoController implements OcrFileInfoApi {
@Resource
private IOcrFileInfoService iOcrFileInfoService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrFileInfoVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrFileInfoController implements OcrFileInfoApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrFileInfoVO> findAll() {
return iOcrFileInfoService.findAll();
@Override
public List<OcrFileInfoVO> findAll() {
return iOcrFileInfoService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrFileInfoVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrFileInfoController implements OcrFileInfoApi {
}
/**
*
* @param addOcrFileInfoDTO
*/
*
*
* @param addOcrFileInfoDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrFileInfoDTO addOcrFileInfoDTO) {
iOcrFileInfoService.add(addOcrFileInfoDTO);
@Override
public void add(AddOcrFileInfoDTO addOcrFileInfoDTO) {
iOcrFileInfoService.add(addOcrFileInfoDTO);
}
/**
*
* @param editOcrFileInfoDTO
*/
*
*
* @param editOcrFileInfoDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrFileInfoDTO editOcrFileInfoDTO) {
iOcrFileInfoService.edit(editOcrFileInfoDTO);
@Override
public void edit(EditOcrFileInfoDTO editOcrFileInfoDTO) {
iOcrFileInfoService.edit(editOcrFileInfoDTO);
}
/**
*
* @param deleteOcrFileInfoDTO
* @return
*/
*
*
* @param deleteOcrFileInfoDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrFileInfoDTO deleteOcrFileInfoDTO) {
return iOcrFileInfoService.delete(deleteOcrFileInfoDTO);
@Override
public int delete(DeleteOcrFileInfoDTO deleteOcrFileInfoDTO) {
return iOcrFileInfoService.delete(deleteOcrFileInfoDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrfileinfotest.AddOcrFileInfoTestDTO;
import com.docus.server.dto.segmentation.ocrfileinfotest.EditOcrFileInfoTestDTO;
import com.docus.server.dto.segmentation.ocrfileinfotest.DeleteOcrFileInfoTestDTO;
import com.docus.server.vo.segmentation.ocrfileinfotest.OcrFileInfoTestVO;
import com.docus.server.entity.segmentation.OcrFileInfoTest;
import com.docus.server.api.segmentation.OcrFileInfoTestApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrFileInfoTestApi;
import com.docus.server.dto.segmentation.ocrfileinfotest.AddOcrFileInfoTestDTO;
import com.docus.server.dto.segmentation.ocrfileinfotest.DeleteOcrFileInfoTestDTO;
import com.docus.server.dto.segmentation.ocrfileinfotest.EditOcrFileInfoTestDTO;
import com.docus.server.service.IOcrFileInfoTestService;
import com.docus.server.vo.segmentation.ocrfileinfotest.OcrFileInfoTestVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "ocr文件信息-调试", tags = "ocr文件信息-调试")
@RestController
public class OcrFileInfoTestController implements OcrFileInfoTestApi {
@Resource
private IOcrFileInfoTestService iOcrFileInfoTestService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrFileInfoTestVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrFileInfoTestController implements OcrFileInfoTestApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrFileInfoTestVO> findAll() {
return iOcrFileInfoTestService.findAll();
@Override
public List<OcrFileInfoTestVO> findAll() {
return iOcrFileInfoTestService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrFileInfoTestVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrFileInfoTestController implements OcrFileInfoTestApi {
}
/**
*
* @param addOcrFileInfoTestDTO
*/
*
*
* @param addOcrFileInfoTestDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrFileInfoTestDTO addOcrFileInfoTestDTO) {
iOcrFileInfoTestService.add(addOcrFileInfoTestDTO);
@Override
public void add(AddOcrFileInfoTestDTO addOcrFileInfoTestDTO) {
iOcrFileInfoTestService.add(addOcrFileInfoTestDTO);
}
/**
*
* @param editOcrFileInfoTestDTO
*/
*
*
* @param editOcrFileInfoTestDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrFileInfoTestDTO editOcrFileInfoTestDTO) {
iOcrFileInfoTestService.edit(editOcrFileInfoTestDTO);
@Override
public void edit(EditOcrFileInfoTestDTO editOcrFileInfoTestDTO) {
iOcrFileInfoTestService.edit(editOcrFileInfoTestDTO);
}
/**
*
* @param deleteOcrFileInfoTestDTO
* @return
*/
*
*
* @param deleteOcrFileInfoTestDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrFileInfoTestDTO deleteOcrFileInfoTestDTO) {
return iOcrFileInfoTestService.delete(deleteOcrFileInfoTestDTO);
@Override
public int delete(DeleteOcrFileInfoTestDTO deleteOcrFileInfoTestDTO) {
return iOcrFileInfoTestService.delete(deleteOcrFileInfoTestDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrrule.AddOcrRuleDTO;
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
import com.docus.server.dto.segmentation.ocrrule.DeleteOcrRuleDTO;
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
import com.docus.server.entity.segmentation.OcrRule;
import com.docus.server.api.segmentation.OcrRuleApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrRuleApi;
import com.docus.server.dto.segmentation.ocrrule.AddOcrRuleDTO;
import com.docus.server.dto.segmentation.ocrrule.DeleteOcrRuleDTO;
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
import com.docus.server.service.IOcrRuleService;
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "匹配策略表", tags = "匹配策略表")
@RestController
public class OcrRuleController implements OcrRuleApi {
@Resource
private IOcrRuleService iOcrRuleService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrRuleVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrRuleController implements OcrRuleApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrRuleVO> findAll() {
return iOcrRuleService.findAll();
@Override
public List<OcrRuleVO> findAll() {
return iOcrRuleService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrRuleVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrRuleController implements OcrRuleApi {
}
/**
*
* @param addOcrRuleDTO
*/
*
*
* @param addOcrRuleDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrRuleDTO addOcrRuleDTO) {
iOcrRuleService.add(addOcrRuleDTO);
@Override
public void add(AddOcrRuleDTO addOcrRuleDTO) {
iOcrRuleService.add(addOcrRuleDTO);
}
/**
*
* @param editOcrRuleDTO
*/
*
*
* @param editOcrRuleDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrRuleDTO editOcrRuleDTO) {
iOcrRuleService.edit(editOcrRuleDTO);
@Override
public void edit(EditOcrRuleDTO editOcrRuleDTO) {
iOcrRuleService.edit(editOcrRuleDTO);
}
/**
*
* @param deleteOcrRuleDTO
* @return
*/
*
*
* @param deleteOcrRuleDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrRuleDTO deleteOcrRuleDTO) {
return iOcrRuleService.delete(deleteOcrRuleDTO);
@Override
public int delete(DeleteOcrRuleDTO deleteOcrRuleDTO) {
return iOcrRuleService.delete(deleteOcrRuleDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrruletest.AddOcrRuleTestDTO;
import com.docus.server.dto.segmentation.ocrruletest.EditOcrRuleTestDTO;
import com.docus.server.dto.segmentation.ocrruletest.DeleteOcrRuleTestDTO;
import com.docus.server.vo.segmentation.ocrruletest.OcrRuleTestVO;
import com.docus.server.entity.segmentation.OcrRuleTest;
import com.docus.server.api.segmentation.OcrRuleTestApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrRuleTestApi;
import com.docus.server.dto.segmentation.ocrruletest.AddOcrRuleTestDTO;
import com.docus.server.dto.segmentation.ocrruletest.DeleteOcrRuleTestDTO;
import com.docus.server.dto.segmentation.ocrruletest.EditOcrRuleTestDTO;
import com.docus.server.service.IOcrRuleTestService;
import com.docus.server.vo.segmentation.ocrruletest.OcrRuleTestVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "匹配策略表-调试", tags = "匹配策略表-调试")
@RestController
public class OcrRuleTestController implements OcrRuleTestApi {
@Resource
private IOcrRuleTestService iOcrRuleTestService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrRuleTestVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrRuleTestController implements OcrRuleTestApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrRuleTestVO> findAll() {
return iOcrRuleTestService.findAll();
@Override
public List<OcrRuleTestVO> findAll() {
return iOcrRuleTestService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrRuleTestVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrRuleTestController implements OcrRuleTestApi {
}
/**
*
* @param addOcrRuleTestDTO
*/
*
*
* @param addOcrRuleTestDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrRuleTestDTO addOcrRuleTestDTO) {
iOcrRuleTestService.add(addOcrRuleTestDTO);
@Override
public void add(AddOcrRuleTestDTO addOcrRuleTestDTO) {
iOcrRuleTestService.add(addOcrRuleTestDTO);
}
/**
*
* @param editOcrRuleTestDTO
*/
*
*
* @param editOcrRuleTestDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrRuleTestDTO editOcrRuleTestDTO) {
iOcrRuleTestService.edit(editOcrRuleTestDTO);
@Override
public void edit(EditOcrRuleTestDTO editOcrRuleTestDTO) {
iOcrRuleTestService.edit(editOcrRuleTestDTO);
}
/**
*
* @param deleteOcrRuleTestDTO
* @return
*/
*
*
* @param deleteOcrRuleTestDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrRuleTestDTO deleteOcrRuleTestDTO) {
return iOcrRuleTestService.delete(deleteOcrRuleTestDTO);
@Override
public int delete(DeleteOcrRuleTestDTO deleteOcrRuleTestDTO) {
return iOcrRuleTestService.delete(deleteOcrRuleTestDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrspecialrule.AddOcrSpecialRuleDTO;
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
import com.docus.server.dto.segmentation.ocrspecialrule.DeleteOcrSpecialRuleDTO;
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
import com.docus.server.entity.segmentation.OcrSpecialRule;
import com.docus.server.api.segmentation.OcrSpecialRuleApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrSpecialRuleApi;
import com.docus.server.dto.segmentation.ocrspecialrule.AddOcrSpecialRuleDTO;
import com.docus.server.dto.segmentation.ocrspecialrule.DeleteOcrSpecialRuleDTO;
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
import com.docus.server.service.IOcrSpecialRuleService;
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "特殊策略表", tags = "特殊策略表")
@RestController
public class OcrSpecialRuleController implements OcrSpecialRuleApi {
@Resource
private IOcrSpecialRuleService iOcrSpecialRuleService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrSpecialRuleVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrSpecialRuleController implements OcrSpecialRuleApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrSpecialRuleVO> findAll() {
return iOcrSpecialRuleService.findAll();
@Override
public List<OcrSpecialRuleVO> findAll() {
return iOcrSpecialRuleService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrSpecialRuleVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrSpecialRuleController implements OcrSpecialRuleApi {
}
/**
*
* @param addOcrSpecialRuleDTO
*/
*
*
* @param addOcrSpecialRuleDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrSpecialRuleDTO addOcrSpecialRuleDTO) {
iOcrSpecialRuleService.add(addOcrSpecialRuleDTO);
@Override
public void add(AddOcrSpecialRuleDTO addOcrSpecialRuleDTO) {
iOcrSpecialRuleService.add(addOcrSpecialRuleDTO);
}
/**
*
* @param editOcrSpecialRuleDTO
*/
*
*
* @param editOcrSpecialRuleDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrSpecialRuleDTO editOcrSpecialRuleDTO) {
iOcrSpecialRuleService.edit(editOcrSpecialRuleDTO);
@Override
public void edit(EditOcrSpecialRuleDTO editOcrSpecialRuleDTO) {
iOcrSpecialRuleService.edit(editOcrSpecialRuleDTO);
}
/**
*
* @param deleteOcrSpecialRuleDTO
* @return
*/
*
*
* @param deleteOcrSpecialRuleDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrSpecialRuleDTO deleteOcrSpecialRuleDTO) {
return iOcrSpecialRuleService.delete(deleteOcrSpecialRuleDTO);
@Override
public int delete(DeleteOcrSpecialRuleDTO deleteOcrSpecialRuleDTO) {
return iOcrSpecialRuleService.delete(deleteOcrSpecialRuleDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrspecialruletest.AddOcrSpecialRuleTestDTO;
import com.docus.server.dto.segmentation.ocrspecialruletest.EditOcrSpecialRuleTestDTO;
import com.docus.server.dto.segmentation.ocrspecialruletest.DeleteOcrSpecialRuleTestDTO;
import com.docus.server.vo.segmentation.ocrspecialruletest.OcrSpecialRuleTestVO;
import com.docus.server.entity.segmentation.OcrSpecialRuleTest;
import com.docus.server.api.segmentation.OcrSpecialRuleTestApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrSpecialRuleTestApi;
import com.docus.server.dto.segmentation.ocrspecialruletest.AddOcrSpecialRuleTestDTO;
import com.docus.server.dto.segmentation.ocrspecialruletest.DeleteOcrSpecialRuleTestDTO;
import com.docus.server.dto.segmentation.ocrspecialruletest.EditOcrSpecialRuleTestDTO;
import com.docus.server.service.IOcrSpecialRuleTestService;
import com.docus.server.vo.segmentation.ocrspecialruletest.OcrSpecialRuleTestVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "特殊策略表-调试", tags = "特殊策略表-调试")
@RestController
public class OcrSpecialRuleTestController implements OcrSpecialRuleTestApi {
@Resource
private IOcrSpecialRuleTestService iOcrSpecialRuleTestService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrSpecialRuleTestVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrSpecialRuleTestController implements OcrSpecialRuleTestApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrSpecialRuleTestVO> findAll() {
return iOcrSpecialRuleTestService.findAll();
@Override
public List<OcrSpecialRuleTestVO> findAll() {
return iOcrSpecialRuleTestService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrSpecialRuleTestVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrSpecialRuleTestController implements OcrSpecialRuleTestApi {
}
/**
*
* @param addOcrSpecialRuleTestDTO
*/
*
*
* @param addOcrSpecialRuleTestDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrSpecialRuleTestDTO addOcrSpecialRuleTestDTO) {
iOcrSpecialRuleTestService.add(addOcrSpecialRuleTestDTO);
@Override
public void add(AddOcrSpecialRuleTestDTO addOcrSpecialRuleTestDTO) {
iOcrSpecialRuleTestService.add(addOcrSpecialRuleTestDTO);
}
/**
*
* @param editOcrSpecialRuleTestDTO
*/
*
*
* @param editOcrSpecialRuleTestDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrSpecialRuleTestDTO editOcrSpecialRuleTestDTO) {
iOcrSpecialRuleTestService.edit(editOcrSpecialRuleTestDTO);
@Override
public void edit(EditOcrSpecialRuleTestDTO editOcrSpecialRuleTestDTO) {
iOcrSpecialRuleTestService.edit(editOcrSpecialRuleTestDTO);
}
/**
*
* @param deleteOcrSpecialRuleTestDTO
* @return
*/
*
*
* @param deleteOcrSpecialRuleTestDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrSpecialRuleTestDTO deleteOcrSpecialRuleTestDTO) {
return iOcrSpecialRuleTestService.delete(deleteOcrSpecialRuleTestDTO);
@Override
public int delete(DeleteOcrSpecialRuleTestDTO deleteOcrSpecialRuleTestDTO) {
return iOcrSpecialRuleTestService.delete(deleteOcrSpecialRuleTestDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrurlconfig.AddOcrUrlConfigDTO;
import com.docus.server.dto.segmentation.ocrurlconfig.EditOcrUrlConfigDTO;
import com.docus.server.dto.segmentation.ocrurlconfig.DeleteOcrUrlConfigDTO;
import com.docus.server.vo.segmentation.ocrurlconfig.OcrUrlConfigVO;
import com.docus.server.entity.segmentation.OcrUrlConfig;
import com.docus.server.api.segmentation.OcrUrlConfigApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrUrlConfigApi;
import com.docus.server.dto.segmentation.ocrurlconfig.AddOcrUrlConfigDTO;
import com.docus.server.dto.segmentation.ocrurlconfig.DeleteOcrUrlConfigDTO;
import com.docus.server.dto.segmentation.ocrurlconfig.EditOcrUrlConfigDTO;
import com.docus.server.service.IOcrUrlConfigService;
import com.docus.server.vo.segmentation.ocrurlconfig.OcrUrlConfigVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "ocr路径配置表", tags = "ocr路径配置表")
@RestController
public class OcrUrlConfigController implements OcrUrlConfigApi {
@Resource
private IOcrUrlConfigService iOcrUrlConfigService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrUrlConfigVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrUrlConfigController implements OcrUrlConfigApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrUrlConfigVO> findAll() {
return iOcrUrlConfigService.findAll();
@Override
public List<OcrUrlConfigVO> findAll() {
return iOcrUrlConfigService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrUrlConfigVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrUrlConfigController implements OcrUrlConfigApi {
}
/**
*
* @param addOcrUrlConfigDTO
*/
*
*
* @param addOcrUrlConfigDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrUrlConfigDTO addOcrUrlConfigDTO) {
iOcrUrlConfigService.add(addOcrUrlConfigDTO);
@Override
public void add(AddOcrUrlConfigDTO addOcrUrlConfigDTO) {
iOcrUrlConfigService.add(addOcrUrlConfigDTO);
}
/**
*
* @param editOcrUrlConfigDTO
*/
*
*
* @param editOcrUrlConfigDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrUrlConfigDTO editOcrUrlConfigDTO) {
iOcrUrlConfigService.edit(editOcrUrlConfigDTO);
@Override
public void edit(EditOcrUrlConfigDTO editOcrUrlConfigDTO) {
iOcrUrlConfigService.edit(editOcrUrlConfigDTO);
}
/**
*
* @param deleteOcrUrlConfigDTO
* @return
*/
*
*
* @param deleteOcrUrlConfigDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrUrlConfigDTO deleteOcrUrlConfigDTO) {
return iOcrUrlConfigService.delete(deleteOcrUrlConfigDTO);
@Override
public int delete(DeleteOcrUrlConfigDTO deleteOcrUrlConfigDTO) {
return iOcrUrlConfigService.delete(deleteOcrUrlConfigDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrurlconfigtest.AddOcrUrlConfigTestDTO;
import com.docus.server.dto.segmentation.ocrurlconfigtest.EditOcrUrlConfigTestDTO;
import com.docus.server.dto.segmentation.ocrurlconfigtest.DeleteOcrUrlConfigTestDTO;
import com.docus.server.vo.segmentation.ocrurlconfigtest.OcrUrlConfigTestVO;
import com.docus.server.entity.segmentation.OcrUrlConfigTest;
import com.docus.server.api.segmentation.OcrUrlConfigTestApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrUrlConfigTestApi;
import com.docus.server.dto.segmentation.ocrurlconfigtest.AddOcrUrlConfigTestDTO;
import com.docus.server.dto.segmentation.ocrurlconfigtest.DeleteOcrUrlConfigTestDTO;
import com.docus.server.dto.segmentation.ocrurlconfigtest.EditOcrUrlConfigTestDTO;
import com.docus.server.service.IOcrUrlConfigTestService;
import com.docus.server.vo.segmentation.ocrurlconfigtest.OcrUrlConfigTestVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "ocr路径配置表-调试", tags = "ocr路径配置表-调试")
@RestController
public class OcrUrlConfigTestController implements OcrUrlConfigTestApi {
@Resource
private IOcrUrlConfigTestService iOcrUrlConfigTestService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrUrlConfigTestVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrUrlConfigTestController implements OcrUrlConfigTestApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrUrlConfigTestVO> findAll() {
return iOcrUrlConfigTestService.findAll();
@Override
public List<OcrUrlConfigTestVO> findAll() {
return iOcrUrlConfigTestService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrUrlConfigTestVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrUrlConfigTestController implements OcrUrlConfigTestApi {
}
/**
*
* @param addOcrUrlConfigTestDTO
*/
*
*
* @param addOcrUrlConfigTestDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrUrlConfigTestDTO addOcrUrlConfigTestDTO) {
iOcrUrlConfigTestService.add(addOcrUrlConfigTestDTO);
@Override
public void add(AddOcrUrlConfigTestDTO addOcrUrlConfigTestDTO) {
iOcrUrlConfigTestService.add(addOcrUrlConfigTestDTO);
}
/**
*
* @param editOcrUrlConfigTestDTO
*/
*
*
* @param editOcrUrlConfigTestDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrUrlConfigTestDTO editOcrUrlConfigTestDTO) {
iOcrUrlConfigTestService.edit(editOcrUrlConfigTestDTO);
@Override
public void edit(EditOcrUrlConfigTestDTO editOcrUrlConfigTestDTO) {
iOcrUrlConfigTestService.edit(editOcrUrlConfigTestDTO);
}
/**
*
* @param deleteOcrUrlConfigTestDTO
* @return
*/
*
*
* @param deleteOcrUrlConfigTestDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrUrlConfigTestDTO deleteOcrUrlConfigTestDTO) {
return iOcrUrlConfigTestService.delete(deleteOcrUrlConfigTestDTO);
@Override
public int delete(DeleteOcrUrlConfigTestDTO deleteOcrUrlConfigTestDTO) {
return iOcrUrlConfigTestService.delete(deleteOcrUrlConfigTestDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.ocrversion.AddOcrVersionDTO;
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
import com.docus.server.dto.segmentation.ocrversion.DeleteOcrVersionDTO;
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
import com.docus.server.entity.segmentation.OcrVersion;
import com.docus.server.api.segmentation.OcrVersionApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.OcrVersionApi;
import com.docus.server.dto.segmentation.ocrversion.AddOcrVersionDTO;
import com.docus.server.dto.segmentation.ocrversion.DeleteOcrVersionDTO;
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
import com.docus.server.service.IOcrVersionService;
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
@Api(value = "正式数据版本号管理", tags = "正式数据版本号管理")
@RestController
public class OcrVersionController implements OcrVersionApi {
@Resource
private IOcrVersionService iOcrVersionService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public OcrVersionVO findById(Long id) {
@ -39,20 +40,22 @@ public class OcrVersionController implements OcrVersionApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<OcrVersionVO> findAll() {
return iOcrVersionService.findAll();
@Override
public List<OcrVersionVO> findAll() {
return iOcrVersionService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<OcrVersionVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class OcrVersionController implements OcrVersionApi {
}
/**
*
* @param addOcrVersionDTO
*/
*
*
* @param addOcrVersionDTO
*/
@ApiOperation("新增")
@Override
public void add(AddOcrVersionDTO addOcrVersionDTO) {
iOcrVersionService.add(addOcrVersionDTO);
@Override
public void add(AddOcrVersionDTO addOcrVersionDTO) {
iOcrVersionService.add(addOcrVersionDTO);
}
/**
*
* @param editOcrVersionDTO
*/
*
*
* @param editOcrVersionDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditOcrVersionDTO editOcrVersionDTO) {
iOcrVersionService.edit(editOcrVersionDTO);
@Override
public void edit(EditOcrVersionDTO editOcrVersionDTO) {
iOcrVersionService.edit(editOcrVersionDTO);
}
/**
*
* @param deleteOcrVersionDTO
* @return
*/
*
*
* @param deleteOcrVersionDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteOcrVersionDTO deleteOcrVersionDTO) {
return iOcrVersionService.delete(deleteOcrVersionDTO);
@Override
public int delete(DeleteOcrVersionDTO deleteOcrVersionDTO) {
return iOcrVersionService.delete(deleteOcrVersionDTO);
}
}

@ -1,37 +1,38 @@
package com.docus.server.controller;
import com.docus.server.dto.segmentation.zdassort.AddZdAssortDTO;
import com.docus.server.dto.segmentation.zdassort.EditZdAssortDTO;
import com.docus.server.dto.segmentation.zdassort.DeleteZdAssortDTO;
import com.docus.server.vo.segmentation.zdassort.ZdAssortVO;
import com.docus.server.entity.segmentation.ZdAssort;
import com.docus.server.api.segmentation.ZdAssortApi;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.api.segmentation.ZdAssortApi;
import com.docus.server.dto.segmentation.zdassort.AddZdAssortDTO;
import com.docus.server.dto.segmentation.zdassort.DeleteZdAssortDTO;
import com.docus.server.dto.segmentation.zdassort.EditZdAssortDTO;
import com.docus.server.service.IZdAssortService;
import com.docus.server.vo.segmentation.zdassort.ZdAssortVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
*
*
* @author AutoGenerator
* @since 2023-08-30
*/
*
*
* @author AutoGenerator
* @since 2023-08-30
*/
@Api(value = "病案分类", tags = "病案分类")
@RestController
public class ZdAssortController implements ZdAssortApi {
@Resource
private IZdAssortService iZdAssortService;
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@ApiOperation("按主键查询")
@Override
public ZdAssortVO findById(Long id) {
@ -39,20 +40,22 @@ public class ZdAssortController implements ZdAssortApi {
}
/**
*
* @return
*/
*
*
* @return
*/
@ApiOperation("查询所有")
@Override
public List<ZdAssortVO> findAll() {
return iZdAssortService.findAll();
@Override
public List<ZdAssortVO> findAll() {
return iZdAssortService.findAll();
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@ApiOperation("关键字搜索")
@Override
public PageResult<ZdAssortVO> search(SearchDTO searchDTO) {
@ -60,33 +63,36 @@ public class ZdAssortController implements ZdAssortApi {
}
/**
*
* @param addZdAssortDTO
*/
*
*
* @param addZdAssortDTO
*/
@ApiOperation("新增")
@Override
public void add(AddZdAssortDTO addZdAssortDTO) {
iZdAssortService.add(addZdAssortDTO);
@Override
public void add(AddZdAssortDTO addZdAssortDTO) {
iZdAssortService.add(addZdAssortDTO);
}
/**
*
* @param editZdAssortDTO
*/
*
*
* @param editZdAssortDTO
*/
@ApiOperation("编辑")
@Override
public void edit(EditZdAssortDTO editZdAssortDTO) {
iZdAssortService.edit(editZdAssortDTO);
@Override
public void edit(EditZdAssortDTO editZdAssortDTO) {
iZdAssortService.edit(editZdAssortDTO);
}
/**
*
* @param deleteZdAssortDTO
* @return
*/
*
*
* @param deleteZdAssortDTO
* @return
*/
@ApiOperation("批量删除")
@Override
public int delete(DeleteZdAssortDTO deleteZdAssortDTO) {
return iZdAssortService.delete(deleteZdAssortDTO);
@Override
public int delete(DeleteZdAssortDTO deleteZdAssortDTO) {
return iZdAssortService.delete(deleteZdAssortDTO);
}
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrBasic;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrBasic;
import java.util.List;
/**
*
* 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrBasicDao extends IBaseDao<OcrBasic> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrBasic findById(Long id);
/**
*
* @param ocrBasic
* @return
*/
*
*
* @param ocrBasic
* @return
*/
boolean add(OcrBasic ocrBasic);
/**
*
* @param ocrBasic
* @return
*/
*
*
* @param ocrBasic
* @return
*/
boolean edit(OcrBasic ocrBasic);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrBasic> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrBasicTest;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrBasicTest;
import java.util.List;
/**
*
* - 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrBasicTestDao extends IBaseDao<OcrBasicTest> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrBasicTest findById(Long id);
/**
*
* @param ocrBasicTest
* @return
*/
*
*
* @param ocrBasicTest
* @return
*/
boolean add(OcrBasicTest ocrBasicTest);
/**
*
* @param ocrBasicTest
* @return
*/
*
*
* @param ocrBasicTest
* @return
*/
boolean edit(OcrBasicTest ocrBasicTest);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrBasicTest> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrCutConfig;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrCutConfig;
import java.util.List;
/**
*
* ocr 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrCutConfigDao extends IBaseDao<OcrCutConfig> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrCutConfig findById(Long id);
/**
*
* @param ocrCutConfig
* @return
*/
*
*
* @param ocrCutConfig
* @return
*/
boolean add(OcrCutConfig ocrCutConfig);
/**
*
* @param ocrCutConfig
* @return
*/
*
*
* @param ocrCutConfig
* @return
*/
boolean edit(OcrCutConfig ocrCutConfig);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrCutConfig> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrCutConfigTest;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrCutConfigTest;
import java.util.List;
/**
*
* ocr- 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrCutConfigTestDao extends IBaseDao<OcrCutConfigTest> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrCutConfigTest findById(Long id);
/**
*
* @param ocrCutConfigTest
* @return
*/
*
*
* @param ocrCutConfigTest
* @return
*/
boolean add(OcrCutConfigTest ocrCutConfigTest);
/**
*
* @param ocrCutConfigTest
* @return
*/
*
*
* @param ocrCutConfigTest
* @return
*/
boolean edit(OcrCutConfigTest ocrCutConfigTest);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrCutConfigTest> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrFileInfo;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrFileInfo;
import java.util.List;
/**
*
* ocr 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrFileInfoDao extends IBaseDao<OcrFileInfo> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrFileInfo findById(Long id);
/**
*
* @param ocrFileInfo
* @return
*/
*
*
* @param ocrFileInfo
* @return
*/
boolean add(OcrFileInfo ocrFileInfo);
/**
*
* @param ocrFileInfo
* @return
*/
*
*
* @param ocrFileInfo
* @return
*/
boolean edit(OcrFileInfo ocrFileInfo);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrFileInfo> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrFileInfoTest;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrFileInfoTest;
import java.util.List;
/**
*
* ocr- 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrFileInfoTestDao extends IBaseDao<OcrFileInfoTest> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrFileInfoTest findById(Long id);
/**
*
* @param ocrFileInfoTest
* @return
*/
*
*
* @param ocrFileInfoTest
* @return
*/
boolean add(OcrFileInfoTest ocrFileInfoTest);
/**
*
* @param ocrFileInfoTest
* @return
*/
*
*
* @param ocrFileInfoTest
* @return
*/
boolean edit(OcrFileInfoTest ocrFileInfoTest);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrFileInfoTest> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrRule;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrRule;
import java.util.List;
/**
*
* 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrRuleDao extends IBaseDao<OcrRule> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrRule findById(Long id);
/**
*
* @param ocrRule
* @return
*/
*
*
* @param ocrRule
* @return
*/
boolean add(OcrRule ocrRule);
/**
*
* @param ocrRule
* @return
*/
*
*
* @param ocrRule
* @return
*/
boolean edit(OcrRule ocrRule);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrRule> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrRuleTest;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrRuleTest;
import java.util.List;
/**
*
* - 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrRuleTestDao extends IBaseDao<OcrRuleTest> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrRuleTest findById(Long id);
/**
*
* @param ocrRuleTest
* @return
*/
*
*
* @param ocrRuleTest
* @return
*/
boolean add(OcrRuleTest ocrRuleTest);
/**
*
* @param ocrRuleTest
* @return
*/
*
*
* @param ocrRuleTest
* @return
*/
boolean edit(OcrRuleTest ocrRuleTest);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrRuleTest> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrSpecialRule;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrSpecialRule;
import java.util.List;
/**
*
* 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrSpecialRuleDao extends IBaseDao<OcrSpecialRule> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrSpecialRule findById(Long id);
/**
*
* @param ocrSpecialRule
* @return
*/
*
*
* @param ocrSpecialRule
* @return
*/
boolean add(OcrSpecialRule ocrSpecialRule);
/**
*
* @param ocrSpecialRule
* @return
*/
*
*
* @param ocrSpecialRule
* @return
*/
boolean edit(OcrSpecialRule ocrSpecialRule);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrSpecialRule> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrSpecialRuleTest;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrSpecialRuleTest;
import java.util.List;
/**
*
* - 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrSpecialRuleTestDao extends IBaseDao<OcrSpecialRuleTest> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrSpecialRuleTest findById(Long id);
/**
*
* @param ocrSpecialRuleTest
* @return
*/
*
*
* @param ocrSpecialRuleTest
* @return
*/
boolean add(OcrSpecialRuleTest ocrSpecialRuleTest);
/**
*
* @param ocrSpecialRuleTest
* @return
*/
*
*
* @param ocrSpecialRuleTest
* @return
*/
boolean edit(OcrSpecialRuleTest ocrSpecialRuleTest);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrSpecialRuleTest> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrUrlConfig;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrUrlConfig;
import java.util.List;
/**
*
* ocr 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrUrlConfigDao extends IBaseDao<OcrUrlConfig> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrUrlConfig findById(Long id);
/**
*
* @param ocrUrlConfig
* @return
*/
*
*
* @param ocrUrlConfig
* @return
*/
boolean add(OcrUrlConfig ocrUrlConfig);
/**
*
* @param ocrUrlConfig
* @return
*/
*
*
* @param ocrUrlConfig
* @return
*/
boolean edit(OcrUrlConfig ocrUrlConfig);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrUrlConfig> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrUrlConfigTest;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrUrlConfigTest;
import java.util.List;
/**
*
* ocr- 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrUrlConfigTestDao extends IBaseDao<OcrUrlConfigTest> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrUrlConfigTest findById(Long id);
/**
*
* @param ocrUrlConfigTest
* @return
*/
*
*
* @param ocrUrlConfigTest
* @return
*/
boolean add(OcrUrlConfigTest ocrUrlConfigTest);
/**
*
* @param ocrUrlConfigTest
* @return
*/
*
*
* @param ocrUrlConfigTest
* @return
*/
boolean edit(OcrUrlConfigTest ocrUrlConfigTest);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrUrlConfigTest> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.OcrVersion;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrVersion;
import java.util.List;
/**
*
* 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IOcrVersionDao extends IBaseDao<OcrVersion> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrVersion findById(Long id);
/**
*
* @param ocrVersion
* @return
*/
*
*
* @param ocrVersion
* @return
*/
boolean add(OcrVersion ocrVersion);
/**
*
* @param ocrVersion
* @return
*/
*
*
* @param ocrVersion
* @return
*/
boolean edit(OcrVersion ocrVersion);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrVersion> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -1,11 +1,13 @@
package com.docus.server.infrastructure.dao;
import com.docus.server.entity.segmentation.ZdAssort;
import com.docus.infrastructure.core.db.dao.IBaseDao;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.ZdAssort;
import java.util.List;
/**
*
* 访
*
* @author AutoGenerator
@ -13,40 +15,51 @@ import java.util.List;
*/
public interface IZdAssortDao extends IBaseDao<ZdAssort> {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
ZdAssort findById(Long id);
/**
*
* @param zdAssort
* @return
*/
*
*
* @param zdAssort
* @return
*/
boolean add(ZdAssort zdAssort);
/**
*
* @param zdAssort
* @return
*/
*
*
* @param zdAssort
* @return
*/
boolean edit(ZdAssort zdAssort);
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
int delete(List<Long> ids);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<ZdAssort> search(SearchDTO searchDTO);
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
int findByIdAndName(Long id, String name);
}

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrBasic;
import com.docus.server.infrastructure.mapper.OcrBasicMapper;
import com.docus.server.infrastructure.dao.IOcrBasicDao;
import com.docus.server.infrastructure.mapper.OcrBasicMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrBasicDaoImpl extends BaseDaoImpl<OcrBasicMapper, OcrBasic> implements IOcrBasicDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrBasic findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrBasic
* @return
*/
*
*
* @param ocrBasic
* @return
*/
@Override
public boolean add(OcrBasic ocrBasic) {
public boolean add(OcrBasic ocrBasic) {
return super.save(ocrBasic);
}
/**
*
* @param ocrBasic
* @return
*/
*
*
* @param ocrBasic
* @return
*/
@Override
public boolean edit(OcrBasic ocrBasic) {
public boolean edit(OcrBasic ocrBasic) {
return super.updateById(ocrBasic);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrBasic> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrBasic> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrBasic> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrBasic::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrBasicDaoImpl extends BaseDaoImpl<OcrBasicMapper, OcrBasic> imple
List<OcrBasic> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrBasic> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrBasic> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrBasic::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrBasic::getName, name);
// query.eq(OcrBasic::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrBasicTest;
import com.docus.server.infrastructure.mapper.OcrBasicTestMapper;
import com.docus.server.infrastructure.dao.IOcrBasicTestDao;
import com.docus.server.infrastructure.mapper.OcrBasicTestMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* - 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrBasicTestDaoImpl extends BaseDaoImpl<OcrBasicTestMapper, OcrBasicTest> implements IOcrBasicTestDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrBasicTest findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrBasicTest
* @return
*/
*
*
* @param ocrBasicTest
* @return
*/
@Override
public boolean add(OcrBasicTest ocrBasicTest) {
public boolean add(OcrBasicTest ocrBasicTest) {
return super.save(ocrBasicTest);
}
/**
*
* @param ocrBasicTest
* @return
*/
*
*
* @param ocrBasicTest
* @return
*/
@Override
public boolean edit(OcrBasicTest ocrBasicTest) {
public boolean edit(OcrBasicTest ocrBasicTest) {
return super.updateById(ocrBasicTest);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrBasicTest> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrBasicTest> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrBasicTest> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrBasicTest::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrBasicTestDaoImpl extends BaseDaoImpl<OcrBasicTestMapper, OcrBasi
List<OcrBasicTest> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrBasicTest> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrBasicTest> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrBasicTest::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrBasicTest::getName, name);
// query.eq(OcrBasicTest::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrCutConfig;
import com.docus.server.infrastructure.mapper.OcrCutConfigMapper;
import com.docus.server.infrastructure.dao.IOcrCutConfigDao;
import com.docus.server.infrastructure.mapper.OcrCutConfigMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* ocr 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrCutConfigDaoImpl extends BaseDaoImpl<OcrCutConfigMapper, OcrCutConfig> implements IOcrCutConfigDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrCutConfig findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrCutConfig
* @return
*/
*
*
* @param ocrCutConfig
* @return
*/
@Override
public boolean add(OcrCutConfig ocrCutConfig) {
public boolean add(OcrCutConfig ocrCutConfig) {
return super.save(ocrCutConfig);
}
/**
*
* @param ocrCutConfig
* @return
*/
*
*
* @param ocrCutConfig
* @return
*/
@Override
public boolean edit(OcrCutConfig ocrCutConfig) {
public boolean edit(OcrCutConfig ocrCutConfig) {
return super.updateById(ocrCutConfig);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrCutConfig> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrCutConfig> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrCutConfig> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrCutConfig::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrCutConfigDaoImpl extends BaseDaoImpl<OcrCutConfigMapper, OcrCutC
List<OcrCutConfig> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrCutConfig> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrCutConfig> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrCutConfig::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrCutConfig::getName, name);
// query.eq(OcrCutConfig::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrCutConfigTest;
import com.docus.server.infrastructure.mapper.OcrCutConfigTestMapper;
import com.docus.server.infrastructure.dao.IOcrCutConfigTestDao;
import com.docus.server.infrastructure.mapper.OcrCutConfigTestMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* ocr- 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrCutConfigTestDaoImpl extends BaseDaoImpl<OcrCutConfigTestMapper, OcrCutConfigTest> implements IOcrCutConfigTestDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrCutConfigTest findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrCutConfigTest
* @return
*/
*
*
* @param ocrCutConfigTest
* @return
*/
@Override
public boolean add(OcrCutConfigTest ocrCutConfigTest) {
public boolean add(OcrCutConfigTest ocrCutConfigTest) {
return super.save(ocrCutConfigTest);
}
/**
*
* @param ocrCutConfigTest
* @return
*/
*
*
* @param ocrCutConfigTest
* @return
*/
@Override
public boolean edit(OcrCutConfigTest ocrCutConfigTest) {
public boolean edit(OcrCutConfigTest ocrCutConfigTest) {
return super.updateById(ocrCutConfigTest);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrCutConfigTest> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrCutConfigTest> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrCutConfigTest> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrCutConfigTest::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrCutConfigTestDaoImpl extends BaseDaoImpl<OcrCutConfigTestMapper,
List<OcrCutConfigTest> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrCutConfigTest> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrCutConfigTest> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrCutConfigTest::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrCutConfigTest::getName, name);
// query.eq(OcrCutConfigTest::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrFileInfo;
import com.docus.server.infrastructure.mapper.OcrFileInfoMapper;
import com.docus.server.infrastructure.dao.IOcrFileInfoDao;
import com.docus.server.infrastructure.mapper.OcrFileInfoMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* ocr 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrFileInfoDaoImpl extends BaseDaoImpl<OcrFileInfoMapper, OcrFileInfo> implements IOcrFileInfoDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrFileInfo findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrFileInfo
* @return
*/
*
*
* @param ocrFileInfo
* @return
*/
@Override
public boolean add(OcrFileInfo ocrFileInfo) {
public boolean add(OcrFileInfo ocrFileInfo) {
return super.save(ocrFileInfo);
}
/**
*
* @param ocrFileInfo
* @return
*/
*
*
* @param ocrFileInfo
* @return
*/
@Override
public boolean edit(OcrFileInfo ocrFileInfo) {
public boolean edit(OcrFileInfo ocrFileInfo) {
return super.updateById(ocrFileInfo);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrFileInfo> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrFileInfo> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrFileInfo> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrFileInfo::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrFileInfoDaoImpl extends BaseDaoImpl<OcrFileInfoMapper, OcrFileIn
List<OcrFileInfo> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrFileInfo> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrFileInfo> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrFileInfo::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrFileInfo::getName, name);
// query.eq(OcrFileInfo::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrFileInfoTest;
import com.docus.server.infrastructure.mapper.OcrFileInfoTestMapper;
import com.docus.server.infrastructure.dao.IOcrFileInfoTestDao;
import com.docus.server.infrastructure.mapper.OcrFileInfoTestMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* ocr- 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrFileInfoTestDaoImpl extends BaseDaoImpl<OcrFileInfoTestMapper, OcrFileInfoTest> implements IOcrFileInfoTestDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrFileInfoTest findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrFileInfoTest
* @return
*/
*
*
* @param ocrFileInfoTest
* @return
*/
@Override
public boolean add(OcrFileInfoTest ocrFileInfoTest) {
public boolean add(OcrFileInfoTest ocrFileInfoTest) {
return super.save(ocrFileInfoTest);
}
/**
*
* @param ocrFileInfoTest
* @return
*/
*
*
* @param ocrFileInfoTest
* @return
*/
@Override
public boolean edit(OcrFileInfoTest ocrFileInfoTest) {
public boolean edit(OcrFileInfoTest ocrFileInfoTest) {
return super.updateById(ocrFileInfoTest);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrFileInfoTest> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrFileInfoTest> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrFileInfoTest> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrFileInfoTest::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrFileInfoTestDaoImpl extends BaseDaoImpl<OcrFileInfoTestMapper, O
List<OcrFileInfoTest> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrFileInfoTest> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrFileInfoTest> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrFileInfoTest::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrFileInfoTest::getName, name);
// query.eq(OcrFileInfoTest::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrRule;
import com.docus.server.infrastructure.mapper.OcrRuleMapper;
import com.docus.server.infrastructure.dao.IOcrRuleDao;
import com.docus.server.infrastructure.mapper.OcrRuleMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrRuleDaoImpl extends BaseDaoImpl<OcrRuleMapper, OcrRule> implements IOcrRuleDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrRule findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrRule
* @return
*/
*
*
* @param ocrRule
* @return
*/
@Override
public boolean add(OcrRule ocrRule) {
public boolean add(OcrRule ocrRule) {
return super.save(ocrRule);
}
/**
*
* @param ocrRule
* @return
*/
*
*
* @param ocrRule
* @return
*/
@Override
public boolean edit(OcrRule ocrRule) {
public boolean edit(OcrRule ocrRule) {
return super.updateById(ocrRule);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrRule> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrRule> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrRule> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrRule::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrRuleDaoImpl extends BaseDaoImpl<OcrRuleMapper, OcrRule> implemen
List<OcrRule> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrRule> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrRule> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrRule::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrRule::getName, name);
// query.eq(OcrRule::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrRuleTest;
import com.docus.server.infrastructure.mapper.OcrRuleTestMapper;
import com.docus.server.infrastructure.dao.IOcrRuleTestDao;
import com.docus.server.infrastructure.mapper.OcrRuleTestMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* - 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrRuleTestDaoImpl extends BaseDaoImpl<OcrRuleTestMapper, OcrRuleTest> implements IOcrRuleTestDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrRuleTest findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrRuleTest
* @return
*/
*
*
* @param ocrRuleTest
* @return
*/
@Override
public boolean add(OcrRuleTest ocrRuleTest) {
public boolean add(OcrRuleTest ocrRuleTest) {
return super.save(ocrRuleTest);
}
/**
*
* @param ocrRuleTest
* @return
*/
*
*
* @param ocrRuleTest
* @return
*/
@Override
public boolean edit(OcrRuleTest ocrRuleTest) {
public boolean edit(OcrRuleTest ocrRuleTest) {
return super.updateById(ocrRuleTest);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrRuleTest> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrRuleTest> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrRuleTest> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrRuleTest::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrRuleTestDaoImpl extends BaseDaoImpl<OcrRuleTestMapper, OcrRuleTe
List<OcrRuleTest> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrRuleTest> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrRuleTest> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrRuleTest::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrRuleTest::getName, name);
// query.eq(OcrRuleTest::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrSpecialRule;
import com.docus.server.infrastructure.mapper.OcrSpecialRuleMapper;
import com.docus.server.infrastructure.dao.IOcrSpecialRuleDao;
import com.docus.server.infrastructure.mapper.OcrSpecialRuleMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrSpecialRuleDaoImpl extends BaseDaoImpl<OcrSpecialRuleMapper, OcrSpecialRule> implements IOcrSpecialRuleDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrSpecialRule findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrSpecialRule
* @return
*/
*
*
* @param ocrSpecialRule
* @return
*/
@Override
public boolean add(OcrSpecialRule ocrSpecialRule) {
public boolean add(OcrSpecialRule ocrSpecialRule) {
return super.save(ocrSpecialRule);
}
/**
*
* @param ocrSpecialRule
* @return
*/
*
*
* @param ocrSpecialRule
* @return
*/
@Override
public boolean edit(OcrSpecialRule ocrSpecialRule) {
public boolean edit(OcrSpecialRule ocrSpecialRule) {
return super.updateById(ocrSpecialRule);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrSpecialRule> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrSpecialRule> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrSpecialRule> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrSpecialRule::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrSpecialRuleDaoImpl extends BaseDaoImpl<OcrSpecialRuleMapper, Ocr
List<OcrSpecialRule> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrSpecialRule> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrSpecialRule> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrSpecialRule::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrSpecialRule::getName, name);
// query.eq(OcrSpecialRule::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrSpecialRuleTest;
import com.docus.server.infrastructure.mapper.OcrSpecialRuleTestMapper;
import com.docus.server.infrastructure.dao.IOcrSpecialRuleTestDao;
import com.docus.server.infrastructure.mapper.OcrSpecialRuleTestMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* - 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrSpecialRuleTestDaoImpl extends BaseDaoImpl<OcrSpecialRuleTestMapper, OcrSpecialRuleTest> implements IOcrSpecialRuleTestDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrSpecialRuleTest findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrSpecialRuleTest
* @return
*/
*
*
* @param ocrSpecialRuleTest
* @return
*/
@Override
public boolean add(OcrSpecialRuleTest ocrSpecialRuleTest) {
public boolean add(OcrSpecialRuleTest ocrSpecialRuleTest) {
return super.save(ocrSpecialRuleTest);
}
/**
*
* @param ocrSpecialRuleTest
* @return
*/
*
*
* @param ocrSpecialRuleTest
* @return
*/
@Override
public boolean edit(OcrSpecialRuleTest ocrSpecialRuleTest) {
public boolean edit(OcrSpecialRuleTest ocrSpecialRuleTest) {
return super.updateById(ocrSpecialRuleTest);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrSpecialRuleTest> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrSpecialRuleTest> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrSpecialRuleTest> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrSpecialRuleTest::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrSpecialRuleTestDaoImpl extends BaseDaoImpl<OcrSpecialRuleTestMap
List<OcrSpecialRuleTest> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrSpecialRuleTest> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrSpecialRuleTest> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrSpecialRuleTest::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrSpecialRuleTest::getName, name);
// query.eq(OcrSpecialRuleTest::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrUrlConfig;
import com.docus.server.infrastructure.mapper.OcrUrlConfigMapper;
import com.docus.server.infrastructure.dao.IOcrUrlConfigDao;
import com.docus.server.infrastructure.mapper.OcrUrlConfigMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* ocr 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrUrlConfigDaoImpl extends BaseDaoImpl<OcrUrlConfigMapper, OcrUrlConfig> implements IOcrUrlConfigDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrUrlConfig findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrUrlConfig
* @return
*/
*
*
* @param ocrUrlConfig
* @return
*/
@Override
public boolean add(OcrUrlConfig ocrUrlConfig) {
public boolean add(OcrUrlConfig ocrUrlConfig) {
return super.save(ocrUrlConfig);
}
/**
*
* @param ocrUrlConfig
* @return
*/
*
*
* @param ocrUrlConfig
* @return
*/
@Override
public boolean edit(OcrUrlConfig ocrUrlConfig) {
public boolean edit(OcrUrlConfig ocrUrlConfig) {
return super.updateById(ocrUrlConfig);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrUrlConfig> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrUrlConfig> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrUrlConfig> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrUrlConfig::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrUrlConfigDaoImpl extends BaseDaoImpl<OcrUrlConfigMapper, OcrUrlC
List<OcrUrlConfig> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrUrlConfig> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrUrlConfig> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrUrlConfig::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrUrlConfig::getName, name);
// query.eq(OcrUrlConfig::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrUrlConfigTest;
import com.docus.server.infrastructure.mapper.OcrUrlConfigTestMapper;
import com.docus.server.infrastructure.dao.IOcrUrlConfigTestDao;
import com.docus.server.infrastructure.mapper.OcrUrlConfigTestMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* ocr- 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrUrlConfigTestDaoImpl extends BaseDaoImpl<OcrUrlConfigTestMapper, OcrUrlConfigTest> implements IOcrUrlConfigTestDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrUrlConfigTest findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrUrlConfigTest
* @return
*/
*
*
* @param ocrUrlConfigTest
* @return
*/
@Override
public boolean add(OcrUrlConfigTest ocrUrlConfigTest) {
public boolean add(OcrUrlConfigTest ocrUrlConfigTest) {
return super.save(ocrUrlConfigTest);
}
/**
*
* @param ocrUrlConfigTest
* @return
*/
*
*
* @param ocrUrlConfigTest
* @return
*/
@Override
public boolean edit(OcrUrlConfigTest ocrUrlConfigTest) {
public boolean edit(OcrUrlConfigTest ocrUrlConfigTest) {
return super.updateById(ocrUrlConfigTest);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrUrlConfigTest> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrUrlConfigTest> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrUrlConfigTest> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrUrlConfigTest::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrUrlConfigTestDaoImpl extends BaseDaoImpl<OcrUrlConfigTestMapper,
List<OcrUrlConfigTest> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrUrlConfigTest> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrUrlConfigTest> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrUrlConfigTest::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrUrlConfigTest::getName, name);
// query.eq(OcrUrlConfigTest::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,19 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.OcrVersion;
import com.docus.server.infrastructure.mapper.OcrVersionMapper;
import com.docus.server.infrastructure.dao.IOcrVersionDao;
import com.docus.server.infrastructure.mapper.OcrVersionMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* 访
*
* @author AutoGenerator
@ -25,55 +24,60 @@ import java.util.List;
public class OcrVersionDaoImpl extends BaseDaoImpl<OcrVersionMapper, OcrVersion> implements IOcrVersionDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public OcrVersion findById(Long id) {
return super.findById(id);
}
/**
*
* @param ocrVersion
* @return
*/
*
*
* @param ocrVersion
* @return
*/
@Override
public boolean add(OcrVersion ocrVersion) {
public boolean add(OcrVersion ocrVersion) {
return super.save(ocrVersion);
}
/**
*
* @param ocrVersion
* @return
*/
*
*
* @param ocrVersion
* @return
*/
@Override
public boolean edit(OcrVersion ocrVersion) {
public boolean edit(OcrVersion ocrVersion) {
return super.updateById(ocrVersion);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrVersion> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<OcrVersion> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<OcrVersion> query = Wrappers.lambdaQuery();
//时间范围默认按createTime
if (searchDTO.getBeginTime() != null) {
query.ge(OcrVersion::getCreateTime, searchDTO.getBeginTime());
@ -96,20 +100,22 @@ public class OcrVersionDaoImpl extends BaseDaoImpl<OcrVersionMapper, OcrVersion>
List<OcrVersion> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<OcrVersion> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<OcrVersion> query = Wrappers.lambdaQuery();
if (id != null) {
query.ne(OcrVersion::getId, id);
}
//if (Func.isNotBlank(name)) {
// query.eq(OcrVersion::getName, name);
// query.eq(OcrVersion::getName, name);
//}
return baseMapper.selectCount(query);

@ -2,20 +2,18 @@ package com.docus.server.infrastructure.dao.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.docus.core.util.Func;
import com.docus.infrastructure.core.db.dao.impl.BaseDaoImpl;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.entity.segmentation.ZdAssort;
import com.docus.server.infrastructure.mapper.ZdAssortMapper;
import com.docus.server.infrastructure.dao.IZdAssortDao;
import com.docus.server.infrastructure.mapper.ZdAssortMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
/**
*
* 访
*
* @author AutoGenerator
@ -25,55 +23,60 @@ import java.util.List;
public class ZdAssortDaoImpl extends BaseDaoImpl<ZdAssortMapper, ZdAssort> implements IZdAssortDao {
/**
*
* @param id Id
* @return
*/
*
*
* @param id Id
* @return
*/
@Override
public ZdAssort findById(Long id) {
return super.findById(id);
}
/**
*
* @param zdAssort
* @return
*/
*
*
* @param zdAssort
* @return
*/
@Override
public boolean add(ZdAssort zdAssort) {
public boolean add(ZdAssort zdAssort) {
return super.save(zdAssort);
}
/**
*
* @param zdAssort
* @return
*/
*
*
* @param zdAssort
* @return
*/
@Override
public boolean edit(ZdAssort zdAssort) {
public boolean edit(ZdAssort zdAssort) {
return super.updateById(zdAssort);
}
/**
*
* @param ids ids
* @return
*/
*
*
* @param ids ids
* @return
*/
@Override
public int delete(List<Long> ids) {
return super.deleteByIds(ids);
}
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<ZdAssort> search(SearchDTO searchDTO) {
//分页
PageHelper.startPage(searchDTO.getPageNum(), searchDTO.getPageSize());
LambdaQueryWrapper<ZdAssort> query = Wrappers.lambdaQuery() ;
LambdaQueryWrapper<ZdAssort> query = Wrappers.lambdaQuery();
// //时间范围默认按createTime
// if (searchDTO.getBeginTime() != null) {
// query.ge(ZdAssort::getCreateTime, searchDTO.getBeginTime());
@ -91,28 +94,30 @@ public class ZdAssortDaoImpl extends BaseDaoImpl<ZdAssortMapper, ZdAssort> imple
// оr(). like(ZdAssort::getXX2, searchDTO.getKeyword()))
//);
//}
query.eq(ZdAssort::getAssortSource,3);
query.eq(ZdAssort::getEffective,1);
query.eq(ZdAssort::getAssortSource, 3);
query.eq(ZdAssort::getEffective, 1);
//默认createTime倒序排序
query.orderByDesc(ZdAssort::getAssortSort);
List<ZdAssort> list = super.find(query);
return new PageResult<>(list);
}
/**
*
* @param id
* @param name
* @return
*/
*
*
* @param id
* @param name
* @return
*/
@Override
public int findByIdAndName(Long id, String name) {
LambdaQueryWrapper<ZdAssort> query = Wrappers.lambdaQuery();
LambdaQueryWrapper<ZdAssort> query = Wrappers.lambdaQuery();
// if (id != null) {
// query.ne(ZdAssort::getId, id);
// }
//if (Func.isNotBlank(name)) {
// query.eq(ZdAssort::getName, name);
// query.eq(ZdAssort::getName, name);
//}
return baseMapper.selectCount(query);

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrbasic.AddOcrBasicDTO;
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
import com.docus.server.dto.segmentation.ocrbasic.DeleteOcrBasicDTO;
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
import com.docus.server.entity.segmentation.OcrBasic;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrBasicService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrBasicVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrBasicVO> findAll();
/**
*
* @param addOcrBasicDTO
* @return
*/
*
*
* @param addOcrBasicDTO
* @return
*/
boolean add(AddOcrBasicDTO addOcrBasicDTO);
/**
*
* @param editOcrBasicDTO
* @return
*/
*
*
* @param editOcrBasicDTO
* @return
*/
boolean edit(EditOcrBasicDTO editOcrBasicDTO);
/**
*
* @param deleteOcrBasicDTO
* @return
*/
*
*
* @param deleteOcrBasicDTO
* @return
*/
int delete(DeleteOcrBasicDTO deleteOcrBasicDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrBasicVO> search(SearchDTO searchDTO);
}

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrbasictest.AddOcrBasicTestDTO;
import com.docus.server.dto.segmentation.ocrbasictest.EditOcrBasicTestDTO;
import com.docus.server.dto.segmentation.ocrbasictest.DeleteOcrBasicTestDTO;
import com.docus.server.dto.segmentation.ocrbasictest.EditOcrBasicTestDTO;
import com.docus.server.vo.segmentation.ocrbasictest.OcrBasicTestVO;
import com.docus.server.entity.segmentation.OcrBasicTest;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrBasicTestService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrBasicTestVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrBasicTestVO> findAll();
/**
*
* @param addOcrBasicTestDTO
* @return
*/
*
*
* @param addOcrBasicTestDTO
* @return
*/
boolean add(AddOcrBasicTestDTO addOcrBasicTestDTO);
/**
*
* @param editOcrBasicTestDTO
* @return
*/
*
*
* @param editOcrBasicTestDTO
* @return
*/
boolean edit(EditOcrBasicTestDTO editOcrBasicTestDTO);
/**
*
* @param deleteOcrBasicTestDTO
* @return
*/
*
*
* @param deleteOcrBasicTestDTO
* @return
*/
int delete(DeleteOcrBasicTestDTO deleteOcrBasicTestDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrBasicTestVO> search(SearchDTO searchDTO);
}

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrcutconfig.AddOcrCutConfigDTO;
import com.docus.server.dto.segmentation.ocrcutconfig.EditOcrCutConfigDTO;
import com.docus.server.dto.segmentation.ocrcutconfig.DeleteOcrCutConfigDTO;
import com.docus.server.dto.segmentation.ocrcutconfig.EditOcrCutConfigDTO;
import com.docus.server.vo.segmentation.ocrcutconfig.OcrCutConfigVO;
import com.docus.server.entity.segmentation.OcrCutConfig;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrCutConfigService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrCutConfigVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrCutConfigVO> findAll();
/**
*
* @param addOcrCutConfigDTO
* @return
*/
*
*
* @param addOcrCutConfigDTO
* @return
*/
boolean add(AddOcrCutConfigDTO addOcrCutConfigDTO);
/**
*
* @param editOcrCutConfigDTO
* @return
*/
*
*
* @param editOcrCutConfigDTO
* @return
*/
boolean edit(EditOcrCutConfigDTO editOcrCutConfigDTO);
/**
*
* @param deleteOcrCutConfigDTO
* @return
*/
*
*
* @param deleteOcrCutConfigDTO
* @return
*/
int delete(DeleteOcrCutConfigDTO deleteOcrCutConfigDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrCutConfigVO> search(SearchDTO searchDTO);
}

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrcutconfigtest.AddOcrCutConfigTestDTO;
import com.docus.server.dto.segmentation.ocrcutconfigtest.EditOcrCutConfigTestDTO;
import com.docus.server.dto.segmentation.ocrcutconfigtest.DeleteOcrCutConfigTestDTO;
import com.docus.server.dto.segmentation.ocrcutconfigtest.EditOcrCutConfigTestDTO;
import com.docus.server.vo.segmentation.ocrcutconfigtest.OcrCutConfigTestVO;
import com.docus.server.entity.segmentation.OcrCutConfigTest;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrCutConfigTestService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrCutConfigTestVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrCutConfigTestVO> findAll();
/**
*
* @param addOcrCutConfigTestDTO
* @return
*/
*
*
* @param addOcrCutConfigTestDTO
* @return
*/
boolean add(AddOcrCutConfigTestDTO addOcrCutConfigTestDTO);
/**
*
* @param editOcrCutConfigTestDTO
* @return
*/
*
*
* @param editOcrCutConfigTestDTO
* @return
*/
boolean edit(EditOcrCutConfigTestDTO editOcrCutConfigTestDTO);
/**
*
* @param deleteOcrCutConfigTestDTO
* @return
*/
*
*
* @param deleteOcrCutConfigTestDTO
* @return
*/
int delete(DeleteOcrCutConfigTestDTO deleteOcrCutConfigTestDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrCutConfigTestVO> search(SearchDTO searchDTO);
}

@ -1,58 +1,66 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrfileinfo.AddOcrFileInfoDTO;
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
import com.docus.server.dto.segmentation.ocrfileinfo.DeleteOcrFileInfoDTO;
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
import com.docus.server.vo.segmentation.ocrfileinfo.OcrFileInfoVO;
import com.docus.server.entity.segmentation.OcrFileInfo;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrFileInfoService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrFileInfoVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrFileInfoVO> findAll();
/**
*
* @param addOcrFileInfoDTO
* @return
*/
*
*
* @param addOcrFileInfoDTO
* @return
*/
boolean add(AddOcrFileInfoDTO addOcrFileInfoDTO);
/**
*
* @param editOcrFileInfoDTO
* @return
*/
*
*
* @param editOcrFileInfoDTO
* @return
*/
boolean edit(EditOcrFileInfoDTO editOcrFileInfoDTO);
/**
*
* @param deleteOcrFileInfoDTO
* @return
*/
*
*
* @param deleteOcrFileInfoDTO
* @return
*/
int delete(DeleteOcrFileInfoDTO deleteOcrFileInfoDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrFileInfoVO> search(SearchDTO searchDTO);
/**

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrfileinfotest.AddOcrFileInfoTestDTO;
import com.docus.server.dto.segmentation.ocrfileinfotest.EditOcrFileInfoTestDTO;
import com.docus.server.dto.segmentation.ocrfileinfotest.DeleteOcrFileInfoTestDTO;
import com.docus.server.dto.segmentation.ocrfileinfotest.EditOcrFileInfoTestDTO;
import com.docus.server.vo.segmentation.ocrfileinfotest.OcrFileInfoTestVO;
import com.docus.server.entity.segmentation.OcrFileInfoTest;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrFileInfoTestService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrFileInfoTestVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrFileInfoTestVO> findAll();
/**
*
* @param addOcrFileInfoTestDTO
* @return
*/
*
*
* @param addOcrFileInfoTestDTO
* @return
*/
boolean add(AddOcrFileInfoTestDTO addOcrFileInfoTestDTO);
/**
*
* @param editOcrFileInfoTestDTO
* @return
*/
*
*
* @param editOcrFileInfoTestDTO
* @return
*/
boolean edit(EditOcrFileInfoTestDTO editOcrFileInfoTestDTO);
/**
*
* @param deleteOcrFileInfoTestDTO
* @return
*/
*
*
* @param deleteOcrFileInfoTestDTO
* @return
*/
int delete(DeleteOcrFileInfoTestDTO deleteOcrFileInfoTestDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrFileInfoTestVO> search(SearchDTO searchDTO);
}

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrrule.AddOcrRuleDTO;
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
import com.docus.server.dto.segmentation.ocrrule.DeleteOcrRuleDTO;
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
import com.docus.server.entity.segmentation.OcrRule;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrRuleService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrRuleVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrRuleVO> findAll();
/**
*
* @param addOcrRuleDTO
* @return
*/
*
*
* @param addOcrRuleDTO
* @return
*/
boolean add(AddOcrRuleDTO addOcrRuleDTO);
/**
*
* @param editOcrRuleDTO
* @return
*/
*
*
* @param editOcrRuleDTO
* @return
*/
boolean edit(EditOcrRuleDTO editOcrRuleDTO);
/**
*
* @param deleteOcrRuleDTO
* @return
*/
*
*
* @param deleteOcrRuleDTO
* @return
*/
int delete(DeleteOcrRuleDTO deleteOcrRuleDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrRuleVO> search(SearchDTO searchDTO);
}

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrruletest.AddOcrRuleTestDTO;
import com.docus.server.dto.segmentation.ocrruletest.EditOcrRuleTestDTO;
import com.docus.server.dto.segmentation.ocrruletest.DeleteOcrRuleTestDTO;
import com.docus.server.dto.segmentation.ocrruletest.EditOcrRuleTestDTO;
import com.docus.server.vo.segmentation.ocrruletest.OcrRuleTestVO;
import com.docus.server.entity.segmentation.OcrRuleTest;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrRuleTestService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrRuleTestVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrRuleTestVO> findAll();
/**
*
* @param addOcrRuleTestDTO
* @return
*/
*
*
* @param addOcrRuleTestDTO
* @return
*/
boolean add(AddOcrRuleTestDTO addOcrRuleTestDTO);
/**
*
* @param editOcrRuleTestDTO
* @return
*/
*
*
* @param editOcrRuleTestDTO
* @return
*/
boolean edit(EditOcrRuleTestDTO editOcrRuleTestDTO);
/**
*
* @param deleteOcrRuleTestDTO
* @return
*/
*
*
* @param deleteOcrRuleTestDTO
* @return
*/
int delete(DeleteOcrRuleTestDTO deleteOcrRuleTestDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrRuleTestVO> search(SearchDTO searchDTO);
}

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrspecialrule.AddOcrSpecialRuleDTO;
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
import com.docus.server.dto.segmentation.ocrspecialrule.DeleteOcrSpecialRuleDTO;
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
import com.docus.server.entity.segmentation.OcrSpecialRule;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrSpecialRuleService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrSpecialRuleVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrSpecialRuleVO> findAll();
/**
*
* @param addOcrSpecialRuleDTO
* @return
*/
*
*
* @param addOcrSpecialRuleDTO
* @return
*/
boolean add(AddOcrSpecialRuleDTO addOcrSpecialRuleDTO);
/**
*
* @param editOcrSpecialRuleDTO
* @return
*/
*
*
* @param editOcrSpecialRuleDTO
* @return
*/
boolean edit(EditOcrSpecialRuleDTO editOcrSpecialRuleDTO);
/**
*
* @param deleteOcrSpecialRuleDTO
* @return
*/
*
*
* @param deleteOcrSpecialRuleDTO
* @return
*/
int delete(DeleteOcrSpecialRuleDTO deleteOcrSpecialRuleDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrSpecialRuleVO> search(SearchDTO searchDTO);
}

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrspecialruletest.AddOcrSpecialRuleTestDTO;
import com.docus.server.dto.segmentation.ocrspecialruletest.EditOcrSpecialRuleTestDTO;
import com.docus.server.dto.segmentation.ocrspecialruletest.DeleteOcrSpecialRuleTestDTO;
import com.docus.server.dto.segmentation.ocrspecialruletest.EditOcrSpecialRuleTestDTO;
import com.docus.server.vo.segmentation.ocrspecialruletest.OcrSpecialRuleTestVO;
import com.docus.server.entity.segmentation.OcrSpecialRuleTest;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
* -
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrSpecialRuleTestService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrSpecialRuleTestVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrSpecialRuleTestVO> findAll();
/**
*
* @param addOcrSpecialRuleTestDTO
* @return
*/
*
*
* @param addOcrSpecialRuleTestDTO
* @return
*/
boolean add(AddOcrSpecialRuleTestDTO addOcrSpecialRuleTestDTO);
/**
*
* @param editOcrSpecialRuleTestDTO
* @return
*/
*
*
* @param editOcrSpecialRuleTestDTO
* @return
*/
boolean edit(EditOcrSpecialRuleTestDTO editOcrSpecialRuleTestDTO);
/**
*
* @param deleteOcrSpecialRuleTestDTO
* @return
*/
*
*
* @param deleteOcrSpecialRuleTestDTO
* @return
*/
int delete(DeleteOcrSpecialRuleTestDTO deleteOcrSpecialRuleTestDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrSpecialRuleTestVO> search(SearchDTO searchDTO);
}

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrurlconfig.AddOcrUrlConfigDTO;
import com.docus.server.dto.segmentation.ocrurlconfig.EditOcrUrlConfigDTO;
import com.docus.server.dto.segmentation.ocrurlconfig.DeleteOcrUrlConfigDTO;
import com.docus.server.dto.segmentation.ocrurlconfig.EditOcrUrlConfigDTO;
import com.docus.server.vo.segmentation.ocrurlconfig.OcrUrlConfigVO;
import com.docus.server.entity.segmentation.OcrUrlConfig;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrUrlConfigService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrUrlConfigVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrUrlConfigVO> findAll();
/**
*
* @param addOcrUrlConfigDTO
* @return
*/
*
*
* @param addOcrUrlConfigDTO
* @return
*/
boolean add(AddOcrUrlConfigDTO addOcrUrlConfigDTO);
/**
*
* @param editOcrUrlConfigDTO
* @return
*/
*
*
* @param editOcrUrlConfigDTO
* @return
*/
boolean edit(EditOcrUrlConfigDTO editOcrUrlConfigDTO);
/**
*
* @param deleteOcrUrlConfigDTO
* @return
*/
*
*
* @param deleteOcrUrlConfigDTO
* @return
*/
int delete(DeleteOcrUrlConfigDTO deleteOcrUrlConfigDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrUrlConfigVO> search(SearchDTO searchDTO);
}

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrurlconfigtest.AddOcrUrlConfigTestDTO;
import com.docus.server.dto.segmentation.ocrurlconfigtest.EditOcrUrlConfigTestDTO;
import com.docus.server.dto.segmentation.ocrurlconfigtest.DeleteOcrUrlConfigTestDTO;
import com.docus.server.dto.segmentation.ocrurlconfigtest.EditOcrUrlConfigTestDTO;
import com.docus.server.vo.segmentation.ocrurlconfigtest.OcrUrlConfigTestVO;
import com.docus.server.entity.segmentation.OcrUrlConfigTest;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
* ocr-
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrUrlConfigTestService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrUrlConfigTestVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrUrlConfigTestVO> findAll();
/**
*
* @param addOcrUrlConfigTestDTO
* @return
*/
*
*
* @param addOcrUrlConfigTestDTO
* @return
*/
boolean add(AddOcrUrlConfigTestDTO addOcrUrlConfigTestDTO);
/**
*
* @param editOcrUrlConfigTestDTO
* @return
*/
*
*
* @param editOcrUrlConfigTestDTO
* @return
*/
boolean edit(EditOcrUrlConfigTestDTO editOcrUrlConfigTestDTO);
/**
*
* @param deleteOcrUrlConfigTestDTO
* @return
*/
*
*
* @param deleteOcrUrlConfigTestDTO
* @return
*/
int delete(DeleteOcrUrlConfigTestDTO deleteOcrUrlConfigTestDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrUrlConfigTestVO> search(SearchDTO searchDTO);
}

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.ocrversion.AddOcrVersionDTO;
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
import com.docus.server.dto.segmentation.ocrversion.DeleteOcrVersionDTO;
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
import com.docus.server.entity.segmentation.OcrVersion;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
*
*
* @author AutoGenerator
* @since 2023-08-29
*/
public interface IOcrVersionService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
OcrVersionVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<OcrVersionVO> findAll();
/**
*
* @param addOcrVersionDTO
* @return
*/
*
*
* @param addOcrVersionDTO
* @return
*/
boolean add(AddOcrVersionDTO addOcrVersionDTO);
/**
*
* @param editOcrVersionDTO
* @return
*/
*
*
* @param editOcrVersionDTO
* @return
*/
boolean edit(EditOcrVersionDTO editOcrVersionDTO);
/**
*
* @param deleteOcrVersionDTO
* @return
*/
*
*
* @param deleteOcrVersionDTO
* @return
*/
int delete(DeleteOcrVersionDTO deleteOcrVersionDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<OcrVersionVO> search(SearchDTO searchDTO);
}

@ -1,57 +1,65 @@
package com.docus.server.service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.dto.segmentation.zdassort.AddZdAssortDTO;
import com.docus.server.dto.segmentation.zdassort.EditZdAssortDTO;
import com.docus.server.dto.segmentation.zdassort.DeleteZdAssortDTO;
import com.docus.server.dto.segmentation.zdassort.EditZdAssortDTO;
import com.docus.server.vo.segmentation.zdassort.ZdAssortVO;
import com.docus.server.entity.segmentation.ZdAssort;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import java.util.List;
/**
*
*
*
* @author AutoGenerator
* @since 2023-08-30
*/
*
*
* @author AutoGenerator
* @since 2023-08-30
*/
public interface IZdAssortService {
/**
*
* @param id id
* @return
*/
*
*
* @param id id
* @return
*/
ZdAssortVO findById(Long id);
/**
*
* @return
*/
*
*
* @return
*/
List<ZdAssortVO> findAll();
/**
*
* @param addZdAssortDTO
* @return
*/
*
*
* @param addZdAssortDTO
* @return
*/
boolean add(AddZdAssortDTO addZdAssortDTO);
/**
*
* @param editZdAssortDTO
* @return
*/
*
*
* @param editZdAssortDTO
* @return
*/
boolean edit(EditZdAssortDTO editZdAssortDTO);
/**
*
* @param deleteZdAssortDTO
* @return
*/
*
*
* @param deleteZdAssortDTO
* @return
*/
int delete(DeleteZdAssortDTO deleteZdAssortDTO);
/**
*
* @param searchDTO
* @return
*/
*
*
* @param searchDTO
* @return
*/
PageResult<ZdAssortVO> search(SearchDTO searchDTO);
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrBasicConvert;
import com.docus.server.dto.segmentation.ocrbasic.AddOcrBasicDTO;
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
import com.docus.server.dto.segmentation.ocrbasic.DeleteOcrBasicDTO;
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
import com.docus.server.entity.segmentation.OcrBasic;
import com.docus.server.convert.OcrBasicConvert;
import com.docus.server.dto.segmentation.ocrbasic.EditOcrBasicDTO;
import com.docus.server.entity.segmentation.OcrBasic;
import com.docus.server.infrastructure.dao.IOcrBasicDao;
import com.docus.server.service.IOcrBasicService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrbasic.OcrBasicVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
*
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrBasicServiceImpl implements IOcrBasicService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrBasicVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrBasicVO findById(Long id) {
return OcrBasicConvert.INSTANCE.convertVO(iOcrBasicDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrBasicVO> findAll() {
return OcrBasicConvert.INSTANCE.convertVO(iOcrBasicDao.findAll());
return OcrBasicConvert.INSTANCE.convertVO(iOcrBasicDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrBasicVO> search(SearchDTO searchDTO) {
return OcrBasicConvert.INSTANCE.convertVO(iOcrBasicDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrBasicVO> search(SearchDTO searchDTO) {
return OcrBasicConvert.INSTANCE.convertVO(iOcrBasicDao.search(searchDTO));
//PageResult<OcrBasicVO> result = OcrBasicConvert.INSTANCE.convertVO(iOcrBasicDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrBasicServiceImpl implements IOcrBasicService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrBasicDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrBasicDTO addOcrBasicDTO) {
OcrBasic ocrBasic =OcrBasicConvert.INSTANCE.convertDO(addOcrBasicDTO);
ocrBasic.setId(idService.getDateSeq());
*
*
* @param addOcrBasicDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrBasicDTO addOcrBasicDTO) {
OcrBasic ocrBasic = OcrBasicConvert.INSTANCE.convertDO(addOcrBasicDTO);
ocrBasic.setId(idService.getDateSeq());
return iOcrBasicDao.add(ocrBasic);
// String name = addOcrBasicDTO.getName();
@ -98,28 +97,29 @@ public class OcrBasicServiceImpl implements IOcrBasicService {
//OcrBasic ocrBasic = iOcrBasicDao.findOneBy("name", name);
//if (Func.notNull(ocrBasic)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "患者信息表已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "患者信息表已经存在");
// }
// OcrBasic ocrBasic =OcrBasicConvert.INSTANCE.convertDO(addOcrBasicDTO);
// ocrBasic.setId(idService.getDateSeq());
// OcrBasic ocrBasic =OcrBasicConvert.INSTANCE.convertDO(addOcrBasicDTO);
// ocrBasic.setId(idService.getDateSeq());
// return iOcrBasicDao.add(schCollector);
// return iOcrBasicDao.add(schCollector);
}
}
/**
*
* @param editOcrBasicDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrBasicDTO editOcrBasicDTO) {
OcrBasic ocrBasic =OcrBasicConvert.INSTANCE.convertDO(editOcrBasicDTO);
return iOcrBasicDao.edit(ocrBasic);
// Long id = editOcrBasicDTO.getId();
*
*
* @param editOcrBasicDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrBasicDTO editOcrBasicDTO) {
OcrBasic ocrBasic = OcrBasicConvert.INSTANCE.convertDO(editOcrBasicDTO);
return iOcrBasicDao.edit(ocrBasic);
// Long id = editOcrBasicDTO.getId();
// OcrBasic ocrBasic = iOcrBasicDao.findById(id);
@ -129,16 +129,17 @@ public class OcrBasicServiceImpl implements IOcrBasicService {
// ocrBasic.setUpdateTime(LocalDateTime.now());
// return iOcrBasicDao.edit(ocrBasic);
}
}
/**
*
* @param deleteOcrBasicDTO
* @return
*/
*
*
* @param deleteOcrBasicDTO
* @return
*/
@Override
public int delete(DeleteOcrBasicDTO deleteOcrBasicDTO) {
return iOcrBasicDao.delete(deleteOcrBasicDTO.getIds());
return iOcrBasicDao.delete(deleteOcrBasicDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrBasicTestConvert;
import com.docus.server.dto.segmentation.ocrbasictest.AddOcrBasicTestDTO;
import com.docus.server.dto.segmentation.ocrbasictest.EditOcrBasicTestDTO;
import com.docus.server.dto.segmentation.ocrbasictest.DeleteOcrBasicTestDTO;
import com.docus.server.vo.segmentation.ocrbasictest.OcrBasicTestVO;
import com.docus.server.entity.segmentation.OcrBasicTest;
import com.docus.server.convert.OcrBasicTestConvert;
import com.docus.server.dto.segmentation.ocrbasictest.EditOcrBasicTestDTO;
import com.docus.server.entity.segmentation.OcrBasicTest;
import com.docus.server.infrastructure.dao.IOcrBasicTestDao;
import com.docus.server.service.IOcrBasicTestService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrbasictest.OcrBasicTestVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
* -
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrBasicTestServiceImpl implements IOcrBasicTestService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrBasicTestVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrBasicTestVO findById(Long id) {
return OcrBasicTestConvert.INSTANCE.convertVO(iOcrBasicTestDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrBasicTestVO> findAll() {
return OcrBasicTestConvert.INSTANCE.convertVO(iOcrBasicTestDao.findAll());
return OcrBasicTestConvert.INSTANCE.convertVO(iOcrBasicTestDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrBasicTestVO> search(SearchDTO searchDTO) {
return OcrBasicTestConvert.INSTANCE.convertVO(iOcrBasicTestDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrBasicTestVO> search(SearchDTO searchDTO) {
return OcrBasicTestConvert.INSTANCE.convertVO(iOcrBasicTestDao.search(searchDTO));
//PageResult<OcrBasicTestVO> result = OcrBasicTestConvert.INSTANCE.convertVO(iOcrBasicTestDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrBasicTestServiceImpl implements IOcrBasicTestService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrBasicTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrBasicTestDTO addOcrBasicTestDTO) {
OcrBasicTest ocrBasicTest =OcrBasicTestConvert.INSTANCE.convertDO(addOcrBasicTestDTO);
ocrBasicTest.setId(idService.getDateSeq());
*
*
* @param addOcrBasicTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrBasicTestDTO addOcrBasicTestDTO) {
OcrBasicTest ocrBasicTest = OcrBasicTestConvert.INSTANCE.convertDO(addOcrBasicTestDTO);
ocrBasicTest.setId(idService.getDateSeq());
return iOcrBasicTestDao.add(ocrBasicTest);
// String name = addOcrBasicTestDTO.getName();
@ -98,28 +97,29 @@ public class OcrBasicTestServiceImpl implements IOcrBasicTestService {
//OcrBasicTest ocrBasicTest = iOcrBasicTestDao.findOneBy("name", name);
//if (Func.notNull(ocrBasicTest)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "患者信息表-调试已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "患者信息表-调试已经存在");
// }
// OcrBasicTest ocrBasicTest =OcrBasicTestConvert.INSTANCE.convertDO(addOcrBasicTestDTO);
// ocrBasicTest.setId(idService.getDateSeq());
// OcrBasicTest ocrBasicTest =OcrBasicTestConvert.INSTANCE.convertDO(addOcrBasicTestDTO);
// ocrBasicTest.setId(idService.getDateSeq());
// return iOcrBasicTestDao.add(schCollector);
// return iOcrBasicTestDao.add(schCollector);
}
}
/**
*
* @param editOcrBasicTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrBasicTestDTO editOcrBasicTestDTO) {
OcrBasicTest ocrBasicTest =OcrBasicTestConvert.INSTANCE.convertDO(editOcrBasicTestDTO);
return iOcrBasicTestDao.edit(ocrBasicTest);
// Long id = editOcrBasicTestDTO.getId();
*
*
* @param editOcrBasicTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrBasicTestDTO editOcrBasicTestDTO) {
OcrBasicTest ocrBasicTest = OcrBasicTestConvert.INSTANCE.convertDO(editOcrBasicTestDTO);
return iOcrBasicTestDao.edit(ocrBasicTest);
// Long id = editOcrBasicTestDTO.getId();
// OcrBasicTest ocrBasicTest = iOcrBasicTestDao.findById(id);
@ -129,16 +129,17 @@ public class OcrBasicTestServiceImpl implements IOcrBasicTestService {
// ocrBasicTest.setUpdateTime(LocalDateTime.now());
// return iOcrBasicTestDao.edit(ocrBasicTest);
}
}
/**
*
* @param deleteOcrBasicTestDTO
* @return
*/
*
*
* @param deleteOcrBasicTestDTO
* @return
*/
@Override
public int delete(DeleteOcrBasicTestDTO deleteOcrBasicTestDTO) {
return iOcrBasicTestDao.delete(deleteOcrBasicTestDTO.getIds());
return iOcrBasicTestDao.delete(deleteOcrBasicTestDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrCutConfigConvert;
import com.docus.server.dto.segmentation.ocrcutconfig.AddOcrCutConfigDTO;
import com.docus.server.dto.segmentation.ocrcutconfig.EditOcrCutConfigDTO;
import com.docus.server.dto.segmentation.ocrcutconfig.DeleteOcrCutConfigDTO;
import com.docus.server.vo.segmentation.ocrcutconfig.OcrCutConfigVO;
import com.docus.server.entity.segmentation.OcrCutConfig;
import com.docus.server.convert.OcrCutConfigConvert;
import com.docus.server.dto.segmentation.ocrcutconfig.EditOcrCutConfigDTO;
import com.docus.server.entity.segmentation.OcrCutConfig;
import com.docus.server.infrastructure.dao.IOcrCutConfigDao;
import com.docus.server.service.IOcrCutConfigService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrcutconfig.OcrCutConfigVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
* ocr
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrCutConfigServiceImpl implements IOcrCutConfigService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrCutConfigVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrCutConfigVO findById(Long id) {
return OcrCutConfigConvert.INSTANCE.convertVO(iOcrCutConfigDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrCutConfigVO> findAll() {
return OcrCutConfigConvert.INSTANCE.convertVO(iOcrCutConfigDao.findAll());
return OcrCutConfigConvert.INSTANCE.convertVO(iOcrCutConfigDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrCutConfigVO> search(SearchDTO searchDTO) {
return OcrCutConfigConvert.INSTANCE.convertVO(iOcrCutConfigDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrCutConfigVO> search(SearchDTO searchDTO) {
return OcrCutConfigConvert.INSTANCE.convertVO(iOcrCutConfigDao.search(searchDTO));
//PageResult<OcrCutConfigVO> result = OcrCutConfigConvert.INSTANCE.convertVO(iOcrCutConfigDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrCutConfigServiceImpl implements IOcrCutConfigService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrCutConfigDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrCutConfigDTO addOcrCutConfigDTO) {
OcrCutConfig ocrCutConfig =OcrCutConfigConvert.INSTANCE.convertDO(addOcrCutConfigDTO);
ocrCutConfig.setId(idService.getDateSeq());
*
*
* @param addOcrCutConfigDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrCutConfigDTO addOcrCutConfigDTO) {
OcrCutConfig ocrCutConfig = OcrCutConfigConvert.INSTANCE.convertDO(addOcrCutConfigDTO);
ocrCutConfig.setId(idService.getDateSeq());
return iOcrCutConfigDao.add(ocrCutConfig);
// String name = addOcrCutConfigDTO.getName();
@ -98,28 +97,29 @@ public class OcrCutConfigServiceImpl implements IOcrCutConfigService {
//OcrCutConfig ocrCutConfig = iOcrCutConfigDao.findOneBy("name", name);
//if (Func.notNull(ocrCutConfig)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr图片剪切配置已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr图片剪切配置已经存在");
// }
// OcrCutConfig ocrCutConfig =OcrCutConfigConvert.INSTANCE.convertDO(addOcrCutConfigDTO);
// ocrCutConfig.setId(idService.getDateSeq());
// OcrCutConfig ocrCutConfig =OcrCutConfigConvert.INSTANCE.convertDO(addOcrCutConfigDTO);
// ocrCutConfig.setId(idService.getDateSeq());
// return iOcrCutConfigDao.add(schCollector);
// return iOcrCutConfigDao.add(schCollector);
}
}
/**
*
* @param editOcrCutConfigDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrCutConfigDTO editOcrCutConfigDTO) {
OcrCutConfig ocrCutConfig =OcrCutConfigConvert.INSTANCE.convertDO(editOcrCutConfigDTO);
return iOcrCutConfigDao.edit(ocrCutConfig);
// Long id = editOcrCutConfigDTO.getId();
*
*
* @param editOcrCutConfigDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrCutConfigDTO editOcrCutConfigDTO) {
OcrCutConfig ocrCutConfig = OcrCutConfigConvert.INSTANCE.convertDO(editOcrCutConfigDTO);
return iOcrCutConfigDao.edit(ocrCutConfig);
// Long id = editOcrCutConfigDTO.getId();
// OcrCutConfig ocrCutConfig = iOcrCutConfigDao.findById(id);
@ -129,16 +129,17 @@ public class OcrCutConfigServiceImpl implements IOcrCutConfigService {
// ocrCutConfig.setUpdateTime(LocalDateTime.now());
// return iOcrCutConfigDao.edit(ocrCutConfig);
}
}
/**
*
* @param deleteOcrCutConfigDTO
* @return
*/
*
*
* @param deleteOcrCutConfigDTO
* @return
*/
@Override
public int delete(DeleteOcrCutConfigDTO deleteOcrCutConfigDTO) {
return iOcrCutConfigDao.delete(deleteOcrCutConfigDTO.getIds());
return iOcrCutConfigDao.delete(deleteOcrCutConfigDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrCutConfigTestConvert;
import com.docus.server.dto.segmentation.ocrcutconfigtest.AddOcrCutConfigTestDTO;
import com.docus.server.dto.segmentation.ocrcutconfigtest.EditOcrCutConfigTestDTO;
import com.docus.server.dto.segmentation.ocrcutconfigtest.DeleteOcrCutConfigTestDTO;
import com.docus.server.vo.segmentation.ocrcutconfigtest.OcrCutConfigTestVO;
import com.docus.server.entity.segmentation.OcrCutConfigTest;
import com.docus.server.convert.OcrCutConfigTestConvert;
import com.docus.server.dto.segmentation.ocrcutconfigtest.EditOcrCutConfigTestDTO;
import com.docus.server.entity.segmentation.OcrCutConfigTest;
import com.docus.server.infrastructure.dao.IOcrCutConfigTestDao;
import com.docus.server.service.IOcrCutConfigTestService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrcutconfigtest.OcrCutConfigTestVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
* ocr-
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrCutConfigTestServiceImpl implements IOcrCutConfigTestService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrCutConfigTestVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrCutConfigTestVO findById(Long id) {
return OcrCutConfigTestConvert.INSTANCE.convertVO(iOcrCutConfigTestDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrCutConfigTestVO> findAll() {
return OcrCutConfigTestConvert.INSTANCE.convertVO(iOcrCutConfigTestDao.findAll());
return OcrCutConfigTestConvert.INSTANCE.convertVO(iOcrCutConfigTestDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrCutConfigTestVO> search(SearchDTO searchDTO) {
return OcrCutConfigTestConvert.INSTANCE.convertVO(iOcrCutConfigTestDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrCutConfigTestVO> search(SearchDTO searchDTO) {
return OcrCutConfigTestConvert.INSTANCE.convertVO(iOcrCutConfigTestDao.search(searchDTO));
//PageResult<OcrCutConfigTestVO> result = OcrCutConfigTestConvert.INSTANCE.convertVO(iOcrCutConfigTestDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrCutConfigTestServiceImpl implements IOcrCutConfigTestService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrCutConfigTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrCutConfigTestDTO addOcrCutConfigTestDTO) {
OcrCutConfigTest ocrCutConfigTest =OcrCutConfigTestConvert.INSTANCE.convertDO(addOcrCutConfigTestDTO);
ocrCutConfigTest.setId(idService.getDateSeq());
*
*
* @param addOcrCutConfigTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrCutConfigTestDTO addOcrCutConfigTestDTO) {
OcrCutConfigTest ocrCutConfigTest = OcrCutConfigTestConvert.INSTANCE.convertDO(addOcrCutConfigTestDTO);
ocrCutConfigTest.setId(idService.getDateSeq());
return iOcrCutConfigTestDao.add(ocrCutConfigTest);
// String name = addOcrCutConfigTestDTO.getName();
@ -98,28 +97,29 @@ public class OcrCutConfigTestServiceImpl implements IOcrCutConfigTestService {
//OcrCutConfigTest ocrCutConfigTest = iOcrCutConfigTestDao.findOneBy("name", name);
//if (Func.notNull(ocrCutConfigTest)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr图片剪切配置-调试已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr图片剪切配置-调试已经存在");
// }
// OcrCutConfigTest ocrCutConfigTest =OcrCutConfigTestConvert.INSTANCE.convertDO(addOcrCutConfigTestDTO);
// ocrCutConfigTest.setId(idService.getDateSeq());
// OcrCutConfigTest ocrCutConfigTest =OcrCutConfigTestConvert.INSTANCE.convertDO(addOcrCutConfigTestDTO);
// ocrCutConfigTest.setId(idService.getDateSeq());
// return iOcrCutConfigTestDao.add(schCollector);
// return iOcrCutConfigTestDao.add(schCollector);
}
}
/**
*
* @param editOcrCutConfigTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrCutConfigTestDTO editOcrCutConfigTestDTO) {
OcrCutConfigTest ocrCutConfigTest =OcrCutConfigTestConvert.INSTANCE.convertDO(editOcrCutConfigTestDTO);
return iOcrCutConfigTestDao.edit(ocrCutConfigTest);
// Long id = editOcrCutConfigTestDTO.getId();
*
*
* @param editOcrCutConfigTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrCutConfigTestDTO editOcrCutConfigTestDTO) {
OcrCutConfigTest ocrCutConfigTest = OcrCutConfigTestConvert.INSTANCE.convertDO(editOcrCutConfigTestDTO);
return iOcrCutConfigTestDao.edit(ocrCutConfigTest);
// Long id = editOcrCutConfigTestDTO.getId();
// OcrCutConfigTest ocrCutConfigTest = iOcrCutConfigTestDao.findById(id);
@ -129,16 +129,17 @@ public class OcrCutConfigTestServiceImpl implements IOcrCutConfigTestService {
// ocrCutConfigTest.setUpdateTime(LocalDateTime.now());
// return iOcrCutConfigTestDao.edit(ocrCutConfigTest);
}
}
/**
*
* @param deleteOcrCutConfigTestDTO
* @return
*/
*
*
* @param deleteOcrCutConfigTestDTO
* @return
*/
@Override
public int delete(DeleteOcrCutConfigTestDTO deleteOcrCutConfigTestDTO) {
return iOcrCutConfigTestDao.delete(deleteOcrCutConfigTestDTO.getIds());
return iOcrCutConfigTestDao.delete(deleteOcrCutConfigTestDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrFileInfoConvert;
import com.docus.server.dto.segmentation.ocrfileinfo.AddOcrFileInfoDTO;
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
import com.docus.server.dto.segmentation.ocrfileinfo.DeleteOcrFileInfoDTO;
import com.docus.server.vo.segmentation.ocrfileinfo.OcrFileInfoVO;
import com.docus.server.entity.segmentation.OcrFileInfo;
import com.docus.server.convert.OcrFileInfoConvert;
import com.docus.server.dto.segmentation.ocrfileinfo.EditOcrFileInfoDTO;
import com.docus.server.entity.segmentation.OcrFileInfo;
import com.docus.server.infrastructure.dao.IOcrFileInfoDao;
import com.docus.server.service.IOcrFileInfoService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrfileinfo.OcrFileInfoVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
* ocr
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrFileInfoServiceImpl implements IOcrFileInfoService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrFileInfoVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrFileInfoVO findById(Long id) {
return OcrFileInfoConvert.INSTANCE.convertVO(iOcrFileInfoDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrFileInfoVO> findAll() {
return OcrFileInfoConvert.INSTANCE.convertVO(iOcrFileInfoDao.findAll());
return OcrFileInfoConvert.INSTANCE.convertVO(iOcrFileInfoDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrFileInfoVO> search(SearchDTO searchDTO) {
return OcrFileInfoConvert.INSTANCE.convertVO(iOcrFileInfoDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrFileInfoVO> search(SearchDTO searchDTO) {
return OcrFileInfoConvert.INSTANCE.convertVO(iOcrFileInfoDao.search(searchDTO));
//PageResult<OcrFileInfoVO> result = OcrFileInfoConvert.INSTANCE.convertVO(iOcrFileInfoDao.search(searchDTO));
@ -72,14 +70,14 @@ public class OcrFileInfoServiceImpl implements IOcrFileInfoService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
@Transactional(rollbackFor = Exception.class)
@Override
@ -93,15 +91,16 @@ public class OcrFileInfoServiceImpl implements IOcrFileInfoService {
}
/**
*
* @param addOcrFileInfoDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrFileInfoDTO addOcrFileInfoDTO) {
OcrFileInfo ocrFileInfo =OcrFileInfoConvert.INSTANCE.convertDO(addOcrFileInfoDTO);
ocrFileInfo.setId(idService.getDateSeq());
*
*
* @param addOcrFileInfoDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrFileInfoDTO addOcrFileInfoDTO) {
OcrFileInfo ocrFileInfo = OcrFileInfoConvert.INSTANCE.convertDO(addOcrFileInfoDTO);
ocrFileInfo.setId(idService.getDateSeq());
return iOcrFileInfoDao.add(ocrFileInfo);
// String name = addOcrFileInfoDTO.getName();
@ -109,28 +108,29 @@ public class OcrFileInfoServiceImpl implements IOcrFileInfoService {
//OcrFileInfo ocrFileInfo = iOcrFileInfoDao.findOneBy("name", name);
//if (Func.notNull(ocrFileInfo)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr文件信息已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr文件信息已经存在");
// }
// OcrFileInfo ocrFileInfo =OcrFileInfoConvert.INSTANCE.convertDO(addOcrFileInfoDTO);
// ocrFileInfo.setId(idService.getDateSeq());
// OcrFileInfo ocrFileInfo =OcrFileInfoConvert.INSTANCE.convertDO(addOcrFileInfoDTO);
// ocrFileInfo.setId(idService.getDateSeq());
// return iOcrFileInfoDao.add(schCollector);
// return iOcrFileInfoDao.add(schCollector);
}
}
/**
*
* @param editOcrFileInfoDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrFileInfoDTO editOcrFileInfoDTO) {
OcrFileInfo ocrFileInfo =OcrFileInfoConvert.INSTANCE.convertDO(editOcrFileInfoDTO);
return iOcrFileInfoDao.edit(ocrFileInfo);
// Long id = editOcrFileInfoDTO.getId();
*
*
* @param editOcrFileInfoDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrFileInfoDTO editOcrFileInfoDTO) {
OcrFileInfo ocrFileInfo = OcrFileInfoConvert.INSTANCE.convertDO(editOcrFileInfoDTO);
return iOcrFileInfoDao.edit(ocrFileInfo);
// Long id = editOcrFileInfoDTO.getId();
// OcrFileInfo ocrFileInfo = iOcrFileInfoDao.findById(id);
@ -140,16 +140,17 @@ public class OcrFileInfoServiceImpl implements IOcrFileInfoService {
// ocrFileInfo.setUpdateTime(LocalDateTime.now());
// return iOcrFileInfoDao.edit(ocrFileInfo);
}
}
/**
*
* @param deleteOcrFileInfoDTO
* @return
*/
*
*
* @param deleteOcrFileInfoDTO
* @return
*/
@Override
public int delete(DeleteOcrFileInfoDTO deleteOcrFileInfoDTO) {
return iOcrFileInfoDao.delete(deleteOcrFileInfoDTO.getIds());
return iOcrFileInfoDao.delete(deleteOcrFileInfoDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrFileInfoTestConvert;
import com.docus.server.dto.segmentation.ocrfileinfotest.AddOcrFileInfoTestDTO;
import com.docus.server.dto.segmentation.ocrfileinfotest.EditOcrFileInfoTestDTO;
import com.docus.server.dto.segmentation.ocrfileinfotest.DeleteOcrFileInfoTestDTO;
import com.docus.server.vo.segmentation.ocrfileinfotest.OcrFileInfoTestVO;
import com.docus.server.entity.segmentation.OcrFileInfoTest;
import com.docus.server.convert.OcrFileInfoTestConvert;
import com.docus.server.dto.segmentation.ocrfileinfotest.EditOcrFileInfoTestDTO;
import com.docus.server.entity.segmentation.OcrFileInfoTest;
import com.docus.server.infrastructure.dao.IOcrFileInfoTestDao;
import com.docus.server.service.IOcrFileInfoTestService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrfileinfotest.OcrFileInfoTestVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
* ocr-
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrFileInfoTestServiceImpl implements IOcrFileInfoTestService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrFileInfoTestVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrFileInfoTestVO findById(Long id) {
return OcrFileInfoTestConvert.INSTANCE.convertVO(iOcrFileInfoTestDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrFileInfoTestVO> findAll() {
return OcrFileInfoTestConvert.INSTANCE.convertVO(iOcrFileInfoTestDao.findAll());
return OcrFileInfoTestConvert.INSTANCE.convertVO(iOcrFileInfoTestDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrFileInfoTestVO> search(SearchDTO searchDTO) {
return OcrFileInfoTestConvert.INSTANCE.convertVO(iOcrFileInfoTestDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrFileInfoTestVO> search(SearchDTO searchDTO) {
return OcrFileInfoTestConvert.INSTANCE.convertVO(iOcrFileInfoTestDao.search(searchDTO));
//PageResult<OcrFileInfoTestVO> result = OcrFileInfoTestConvert.INSTANCE.convertVO(iOcrFileInfoTestDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrFileInfoTestServiceImpl implements IOcrFileInfoTestService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrFileInfoTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrFileInfoTestDTO addOcrFileInfoTestDTO) {
OcrFileInfoTest ocrFileInfoTest =OcrFileInfoTestConvert.INSTANCE.convertDO(addOcrFileInfoTestDTO);
ocrFileInfoTest.setId(idService.getDateSeq());
*
*
* @param addOcrFileInfoTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrFileInfoTestDTO addOcrFileInfoTestDTO) {
OcrFileInfoTest ocrFileInfoTest = OcrFileInfoTestConvert.INSTANCE.convertDO(addOcrFileInfoTestDTO);
ocrFileInfoTest.setId(idService.getDateSeq());
return iOcrFileInfoTestDao.add(ocrFileInfoTest);
// String name = addOcrFileInfoTestDTO.getName();
@ -98,28 +97,29 @@ public class OcrFileInfoTestServiceImpl implements IOcrFileInfoTestService {
//OcrFileInfoTest ocrFileInfoTest = iOcrFileInfoTestDao.findOneBy("name", name);
//if (Func.notNull(ocrFileInfoTest)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr文件信息-调试已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr文件信息-调试已经存在");
// }
// OcrFileInfoTest ocrFileInfoTest =OcrFileInfoTestConvert.INSTANCE.convertDO(addOcrFileInfoTestDTO);
// ocrFileInfoTest.setId(idService.getDateSeq());
// OcrFileInfoTest ocrFileInfoTest =OcrFileInfoTestConvert.INSTANCE.convertDO(addOcrFileInfoTestDTO);
// ocrFileInfoTest.setId(idService.getDateSeq());
// return iOcrFileInfoTestDao.add(schCollector);
// return iOcrFileInfoTestDao.add(schCollector);
}
}
/**
*
* @param editOcrFileInfoTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrFileInfoTestDTO editOcrFileInfoTestDTO) {
OcrFileInfoTest ocrFileInfoTest =OcrFileInfoTestConvert.INSTANCE.convertDO(editOcrFileInfoTestDTO);
return iOcrFileInfoTestDao.edit(ocrFileInfoTest);
// Long id = editOcrFileInfoTestDTO.getId();
*
*
* @param editOcrFileInfoTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrFileInfoTestDTO editOcrFileInfoTestDTO) {
OcrFileInfoTest ocrFileInfoTest = OcrFileInfoTestConvert.INSTANCE.convertDO(editOcrFileInfoTestDTO);
return iOcrFileInfoTestDao.edit(ocrFileInfoTest);
// Long id = editOcrFileInfoTestDTO.getId();
// OcrFileInfoTest ocrFileInfoTest = iOcrFileInfoTestDao.findById(id);
@ -129,16 +129,17 @@ public class OcrFileInfoTestServiceImpl implements IOcrFileInfoTestService {
// ocrFileInfoTest.setUpdateTime(LocalDateTime.now());
// return iOcrFileInfoTestDao.edit(ocrFileInfoTest);
}
}
/**
*
* @param deleteOcrFileInfoTestDTO
* @return
*/
*
*
* @param deleteOcrFileInfoTestDTO
* @return
*/
@Override
public int delete(DeleteOcrFileInfoTestDTO deleteOcrFileInfoTestDTO) {
return iOcrFileInfoTestDao.delete(deleteOcrFileInfoTestDTO.getIds());
return iOcrFileInfoTestDao.delete(deleteOcrFileInfoTestDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrRuleConvert;
import com.docus.server.dto.segmentation.ocrrule.AddOcrRuleDTO;
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
import com.docus.server.dto.segmentation.ocrrule.DeleteOcrRuleDTO;
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
import com.docus.server.entity.segmentation.OcrRule;
import com.docus.server.convert.OcrRuleConvert;
import com.docus.server.dto.segmentation.ocrrule.EditOcrRuleDTO;
import com.docus.server.entity.segmentation.OcrRule;
import com.docus.server.infrastructure.dao.IOcrRuleDao;
import com.docus.server.service.IOcrRuleService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrrule.OcrRuleVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
*
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrRuleServiceImpl implements IOcrRuleService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrRuleVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrRuleVO findById(Long id) {
return OcrRuleConvert.INSTANCE.convertVO(iOcrRuleDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrRuleVO> findAll() {
return OcrRuleConvert.INSTANCE.convertVO(iOcrRuleDao.findAll());
return OcrRuleConvert.INSTANCE.convertVO(iOcrRuleDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrRuleVO> search(SearchDTO searchDTO) {
return OcrRuleConvert.INSTANCE.convertVO(iOcrRuleDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrRuleVO> search(SearchDTO searchDTO) {
return OcrRuleConvert.INSTANCE.convertVO(iOcrRuleDao.search(searchDTO));
//PageResult<OcrRuleVO> result = OcrRuleConvert.INSTANCE.convertVO(iOcrRuleDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrRuleServiceImpl implements IOcrRuleService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrRuleDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrRuleDTO addOcrRuleDTO) {
OcrRule ocrRule =OcrRuleConvert.INSTANCE.convertDO(addOcrRuleDTO);
ocrRule.setId(idService.getDateSeq());
*
*
* @param addOcrRuleDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrRuleDTO addOcrRuleDTO) {
OcrRule ocrRule = OcrRuleConvert.INSTANCE.convertDO(addOcrRuleDTO);
ocrRule.setId(idService.getDateSeq());
return iOcrRuleDao.add(ocrRule);
// String name = addOcrRuleDTO.getName();
@ -98,28 +97,29 @@ public class OcrRuleServiceImpl implements IOcrRuleService {
//OcrRule ocrRule = iOcrRuleDao.findOneBy("name", name);
//if (Func.notNull(ocrRule)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "匹配策略表已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "匹配策略表已经存在");
// }
// OcrRule ocrRule =OcrRuleConvert.INSTANCE.convertDO(addOcrRuleDTO);
// ocrRule.setId(idService.getDateSeq());
// OcrRule ocrRule =OcrRuleConvert.INSTANCE.convertDO(addOcrRuleDTO);
// ocrRule.setId(idService.getDateSeq());
// return iOcrRuleDao.add(schCollector);
// return iOcrRuleDao.add(schCollector);
}
}
/**
*
* @param editOcrRuleDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrRuleDTO editOcrRuleDTO) {
OcrRule ocrRule =OcrRuleConvert.INSTANCE.convertDO(editOcrRuleDTO);
return iOcrRuleDao.edit(ocrRule);
// Long id = editOcrRuleDTO.getId();
*
*
* @param editOcrRuleDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrRuleDTO editOcrRuleDTO) {
OcrRule ocrRule = OcrRuleConvert.INSTANCE.convertDO(editOcrRuleDTO);
return iOcrRuleDao.edit(ocrRule);
// Long id = editOcrRuleDTO.getId();
// OcrRule ocrRule = iOcrRuleDao.findById(id);
@ -129,16 +129,17 @@ public class OcrRuleServiceImpl implements IOcrRuleService {
// ocrRule.setUpdateTime(LocalDateTime.now());
// return iOcrRuleDao.edit(ocrRule);
}
}
/**
*
* @param deleteOcrRuleDTO
* @return
*/
*
*
* @param deleteOcrRuleDTO
* @return
*/
@Override
public int delete(DeleteOcrRuleDTO deleteOcrRuleDTO) {
return iOcrRuleDao.delete(deleteOcrRuleDTO.getIds());
return iOcrRuleDao.delete(deleteOcrRuleDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrRuleTestConvert;
import com.docus.server.dto.segmentation.ocrruletest.AddOcrRuleTestDTO;
import com.docus.server.dto.segmentation.ocrruletest.EditOcrRuleTestDTO;
import com.docus.server.dto.segmentation.ocrruletest.DeleteOcrRuleTestDTO;
import com.docus.server.vo.segmentation.ocrruletest.OcrRuleTestVO;
import com.docus.server.entity.segmentation.OcrRuleTest;
import com.docus.server.convert.OcrRuleTestConvert;
import com.docus.server.dto.segmentation.ocrruletest.EditOcrRuleTestDTO;
import com.docus.server.entity.segmentation.OcrRuleTest;
import com.docus.server.infrastructure.dao.IOcrRuleTestDao;
import com.docus.server.service.IOcrRuleTestService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrruletest.OcrRuleTestVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
* -
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrRuleTestServiceImpl implements IOcrRuleTestService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrRuleTestVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrRuleTestVO findById(Long id) {
return OcrRuleTestConvert.INSTANCE.convertVO(iOcrRuleTestDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrRuleTestVO> findAll() {
return OcrRuleTestConvert.INSTANCE.convertVO(iOcrRuleTestDao.findAll());
return OcrRuleTestConvert.INSTANCE.convertVO(iOcrRuleTestDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrRuleTestVO> search(SearchDTO searchDTO) {
return OcrRuleTestConvert.INSTANCE.convertVO(iOcrRuleTestDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrRuleTestVO> search(SearchDTO searchDTO) {
return OcrRuleTestConvert.INSTANCE.convertVO(iOcrRuleTestDao.search(searchDTO));
//PageResult<OcrRuleTestVO> result = OcrRuleTestConvert.INSTANCE.convertVO(iOcrRuleTestDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrRuleTestServiceImpl implements IOcrRuleTestService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrRuleTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrRuleTestDTO addOcrRuleTestDTO) {
OcrRuleTest ocrRuleTest =OcrRuleTestConvert.INSTANCE.convertDO(addOcrRuleTestDTO);
ocrRuleTest.setId(idService.getDateSeq());
*
*
* @param addOcrRuleTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrRuleTestDTO addOcrRuleTestDTO) {
OcrRuleTest ocrRuleTest = OcrRuleTestConvert.INSTANCE.convertDO(addOcrRuleTestDTO);
ocrRuleTest.setId(idService.getDateSeq());
return iOcrRuleTestDao.add(ocrRuleTest);
// String name = addOcrRuleTestDTO.getName();
@ -98,28 +97,29 @@ public class OcrRuleTestServiceImpl implements IOcrRuleTestService {
//OcrRuleTest ocrRuleTest = iOcrRuleTestDao.findOneBy("name", name);
//if (Func.notNull(ocrRuleTest)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "匹配策略表-调试已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "匹配策略表-调试已经存在");
// }
// OcrRuleTest ocrRuleTest =OcrRuleTestConvert.INSTANCE.convertDO(addOcrRuleTestDTO);
// ocrRuleTest.setId(idService.getDateSeq());
// OcrRuleTest ocrRuleTest =OcrRuleTestConvert.INSTANCE.convertDO(addOcrRuleTestDTO);
// ocrRuleTest.setId(idService.getDateSeq());
// return iOcrRuleTestDao.add(schCollector);
// return iOcrRuleTestDao.add(schCollector);
}
}
/**
*
* @param editOcrRuleTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrRuleTestDTO editOcrRuleTestDTO) {
OcrRuleTest ocrRuleTest =OcrRuleTestConvert.INSTANCE.convertDO(editOcrRuleTestDTO);
return iOcrRuleTestDao.edit(ocrRuleTest);
// Long id = editOcrRuleTestDTO.getId();
*
*
* @param editOcrRuleTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrRuleTestDTO editOcrRuleTestDTO) {
OcrRuleTest ocrRuleTest = OcrRuleTestConvert.INSTANCE.convertDO(editOcrRuleTestDTO);
return iOcrRuleTestDao.edit(ocrRuleTest);
// Long id = editOcrRuleTestDTO.getId();
// OcrRuleTest ocrRuleTest = iOcrRuleTestDao.findById(id);
@ -129,16 +129,17 @@ public class OcrRuleTestServiceImpl implements IOcrRuleTestService {
// ocrRuleTest.setUpdateTime(LocalDateTime.now());
// return iOcrRuleTestDao.edit(ocrRuleTest);
}
}
/**
*
* @param deleteOcrRuleTestDTO
* @return
*/
*
*
* @param deleteOcrRuleTestDTO
* @return
*/
@Override
public int delete(DeleteOcrRuleTestDTO deleteOcrRuleTestDTO) {
return iOcrRuleTestDao.delete(deleteOcrRuleTestDTO.getIds());
return iOcrRuleTestDao.delete(deleteOcrRuleTestDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrSpecialRuleConvert;
import com.docus.server.dto.segmentation.ocrspecialrule.AddOcrSpecialRuleDTO;
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
import com.docus.server.dto.segmentation.ocrspecialrule.DeleteOcrSpecialRuleDTO;
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
import com.docus.server.entity.segmentation.OcrSpecialRule;
import com.docus.server.convert.OcrSpecialRuleConvert;
import com.docus.server.dto.segmentation.ocrspecialrule.EditOcrSpecialRuleDTO;
import com.docus.server.entity.segmentation.OcrSpecialRule;
import com.docus.server.infrastructure.dao.IOcrSpecialRuleDao;
import com.docus.server.service.IOcrSpecialRuleService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrspecialrule.OcrSpecialRuleVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
*
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrSpecialRuleServiceImpl implements IOcrSpecialRuleService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrSpecialRuleVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrSpecialRuleVO findById(Long id) {
return OcrSpecialRuleConvert.INSTANCE.convertVO(iOcrSpecialRuleDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrSpecialRuleVO> findAll() {
return OcrSpecialRuleConvert.INSTANCE.convertVO(iOcrSpecialRuleDao.findAll());
return OcrSpecialRuleConvert.INSTANCE.convertVO(iOcrSpecialRuleDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrSpecialRuleVO> search(SearchDTO searchDTO) {
return OcrSpecialRuleConvert.INSTANCE.convertVO(iOcrSpecialRuleDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrSpecialRuleVO> search(SearchDTO searchDTO) {
return OcrSpecialRuleConvert.INSTANCE.convertVO(iOcrSpecialRuleDao.search(searchDTO));
//PageResult<OcrSpecialRuleVO> result = OcrSpecialRuleConvert.INSTANCE.convertVO(iOcrSpecialRuleDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrSpecialRuleServiceImpl implements IOcrSpecialRuleService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrSpecialRuleDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrSpecialRuleDTO addOcrSpecialRuleDTO) {
OcrSpecialRule ocrSpecialRule =OcrSpecialRuleConvert.INSTANCE.convertDO(addOcrSpecialRuleDTO);
ocrSpecialRule.setId(idService.getDateSeq());
*
*
* @param addOcrSpecialRuleDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrSpecialRuleDTO addOcrSpecialRuleDTO) {
OcrSpecialRule ocrSpecialRule = OcrSpecialRuleConvert.INSTANCE.convertDO(addOcrSpecialRuleDTO);
ocrSpecialRule.setId(idService.getDateSeq());
return iOcrSpecialRuleDao.add(ocrSpecialRule);
// String name = addOcrSpecialRuleDTO.getName();
@ -98,28 +97,29 @@ public class OcrSpecialRuleServiceImpl implements IOcrSpecialRuleService {
//OcrSpecialRule ocrSpecialRule = iOcrSpecialRuleDao.findOneBy("name", name);
//if (Func.notNull(ocrSpecialRule)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "特殊策略表已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "特殊策略表已经存在");
// }
// OcrSpecialRule ocrSpecialRule =OcrSpecialRuleConvert.INSTANCE.convertDO(addOcrSpecialRuleDTO);
// ocrSpecialRule.setId(idService.getDateSeq());
// OcrSpecialRule ocrSpecialRule =OcrSpecialRuleConvert.INSTANCE.convertDO(addOcrSpecialRuleDTO);
// ocrSpecialRule.setId(idService.getDateSeq());
// return iOcrSpecialRuleDao.add(schCollector);
// return iOcrSpecialRuleDao.add(schCollector);
}
}
/**
*
* @param editOcrSpecialRuleDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrSpecialRuleDTO editOcrSpecialRuleDTO) {
OcrSpecialRule ocrSpecialRule =OcrSpecialRuleConvert.INSTANCE.convertDO(editOcrSpecialRuleDTO);
return iOcrSpecialRuleDao.edit(ocrSpecialRule);
// Long id = editOcrSpecialRuleDTO.getId();
*
*
* @param editOcrSpecialRuleDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrSpecialRuleDTO editOcrSpecialRuleDTO) {
OcrSpecialRule ocrSpecialRule = OcrSpecialRuleConvert.INSTANCE.convertDO(editOcrSpecialRuleDTO);
return iOcrSpecialRuleDao.edit(ocrSpecialRule);
// Long id = editOcrSpecialRuleDTO.getId();
// OcrSpecialRule ocrSpecialRule = iOcrSpecialRuleDao.findById(id);
@ -129,16 +129,17 @@ public class OcrSpecialRuleServiceImpl implements IOcrSpecialRuleService {
// ocrSpecialRule.setUpdateTime(LocalDateTime.now());
// return iOcrSpecialRuleDao.edit(ocrSpecialRule);
}
}
/**
*
* @param deleteOcrSpecialRuleDTO
* @return
*/
*
*
* @param deleteOcrSpecialRuleDTO
* @return
*/
@Override
public int delete(DeleteOcrSpecialRuleDTO deleteOcrSpecialRuleDTO) {
return iOcrSpecialRuleDao.delete(deleteOcrSpecialRuleDTO.getIds());
return iOcrSpecialRuleDao.delete(deleteOcrSpecialRuleDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrSpecialRuleTestConvert;
import com.docus.server.dto.segmentation.ocrspecialruletest.AddOcrSpecialRuleTestDTO;
import com.docus.server.dto.segmentation.ocrspecialruletest.EditOcrSpecialRuleTestDTO;
import com.docus.server.dto.segmentation.ocrspecialruletest.DeleteOcrSpecialRuleTestDTO;
import com.docus.server.vo.segmentation.ocrspecialruletest.OcrSpecialRuleTestVO;
import com.docus.server.entity.segmentation.OcrSpecialRuleTest;
import com.docus.server.convert.OcrSpecialRuleTestConvert;
import com.docus.server.dto.segmentation.ocrspecialruletest.EditOcrSpecialRuleTestDTO;
import com.docus.server.entity.segmentation.OcrSpecialRuleTest;
import com.docus.server.infrastructure.dao.IOcrSpecialRuleTestDao;
import com.docus.server.service.IOcrSpecialRuleTestService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrspecialruletest.OcrSpecialRuleTestVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
* -
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrSpecialRuleTestServiceImpl implements IOcrSpecialRuleTestService
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrSpecialRuleTestVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrSpecialRuleTestVO findById(Long id) {
return OcrSpecialRuleTestConvert.INSTANCE.convertVO(iOcrSpecialRuleTestDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrSpecialRuleTestVO> findAll() {
return OcrSpecialRuleTestConvert.INSTANCE.convertVO(iOcrSpecialRuleTestDao.findAll());
return OcrSpecialRuleTestConvert.INSTANCE.convertVO(iOcrSpecialRuleTestDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrSpecialRuleTestVO> search(SearchDTO searchDTO) {
return OcrSpecialRuleTestConvert.INSTANCE.convertVO(iOcrSpecialRuleTestDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrSpecialRuleTestVO> search(SearchDTO searchDTO) {
return OcrSpecialRuleTestConvert.INSTANCE.convertVO(iOcrSpecialRuleTestDao.search(searchDTO));
//PageResult<OcrSpecialRuleTestVO> result = OcrSpecialRuleTestConvert.INSTANCE.convertVO(iOcrSpecialRuleTestDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrSpecialRuleTestServiceImpl implements IOcrSpecialRuleTestService
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrSpecialRuleTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrSpecialRuleTestDTO addOcrSpecialRuleTestDTO) {
OcrSpecialRuleTest ocrSpecialRuleTest =OcrSpecialRuleTestConvert.INSTANCE.convertDO(addOcrSpecialRuleTestDTO);
ocrSpecialRuleTest.setId(idService.getDateSeq());
*
*
* @param addOcrSpecialRuleTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrSpecialRuleTestDTO addOcrSpecialRuleTestDTO) {
OcrSpecialRuleTest ocrSpecialRuleTest = OcrSpecialRuleTestConvert.INSTANCE.convertDO(addOcrSpecialRuleTestDTO);
ocrSpecialRuleTest.setId(idService.getDateSeq());
return iOcrSpecialRuleTestDao.add(ocrSpecialRuleTest);
// String name = addOcrSpecialRuleTestDTO.getName();
@ -98,28 +97,29 @@ public class OcrSpecialRuleTestServiceImpl implements IOcrSpecialRuleTestService
//OcrSpecialRuleTest ocrSpecialRuleTest = iOcrSpecialRuleTestDao.findOneBy("name", name);
//if (Func.notNull(ocrSpecialRuleTest)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "特殊策略表-调试已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "特殊策略表-调试已经存在");
// }
// OcrSpecialRuleTest ocrSpecialRuleTest =OcrSpecialRuleTestConvert.INSTANCE.convertDO(addOcrSpecialRuleTestDTO);
// ocrSpecialRuleTest.setId(idService.getDateSeq());
// OcrSpecialRuleTest ocrSpecialRuleTest =OcrSpecialRuleTestConvert.INSTANCE.convertDO(addOcrSpecialRuleTestDTO);
// ocrSpecialRuleTest.setId(idService.getDateSeq());
// return iOcrSpecialRuleTestDao.add(schCollector);
// return iOcrSpecialRuleTestDao.add(schCollector);
}
}
/**
*
* @param editOcrSpecialRuleTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrSpecialRuleTestDTO editOcrSpecialRuleTestDTO) {
OcrSpecialRuleTest ocrSpecialRuleTest =OcrSpecialRuleTestConvert.INSTANCE.convertDO(editOcrSpecialRuleTestDTO);
return iOcrSpecialRuleTestDao.edit(ocrSpecialRuleTest);
// Long id = editOcrSpecialRuleTestDTO.getId();
*
*
* @param editOcrSpecialRuleTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrSpecialRuleTestDTO editOcrSpecialRuleTestDTO) {
OcrSpecialRuleTest ocrSpecialRuleTest = OcrSpecialRuleTestConvert.INSTANCE.convertDO(editOcrSpecialRuleTestDTO);
return iOcrSpecialRuleTestDao.edit(ocrSpecialRuleTest);
// Long id = editOcrSpecialRuleTestDTO.getId();
// OcrSpecialRuleTest ocrSpecialRuleTest = iOcrSpecialRuleTestDao.findById(id);
@ -129,16 +129,17 @@ public class OcrSpecialRuleTestServiceImpl implements IOcrSpecialRuleTestService
// ocrSpecialRuleTest.setUpdateTime(LocalDateTime.now());
// return iOcrSpecialRuleTestDao.edit(ocrSpecialRuleTest);
}
}
/**
*
* @param deleteOcrSpecialRuleTestDTO
* @return
*/
*
*
* @param deleteOcrSpecialRuleTestDTO
* @return
*/
@Override
public int delete(DeleteOcrSpecialRuleTestDTO deleteOcrSpecialRuleTestDTO) {
return iOcrSpecialRuleTestDao.delete(deleteOcrSpecialRuleTestDTO.getIds());
return iOcrSpecialRuleTestDao.delete(deleteOcrSpecialRuleTestDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrUrlConfigConvert;
import com.docus.server.dto.segmentation.ocrurlconfig.AddOcrUrlConfigDTO;
import com.docus.server.dto.segmentation.ocrurlconfig.EditOcrUrlConfigDTO;
import com.docus.server.dto.segmentation.ocrurlconfig.DeleteOcrUrlConfigDTO;
import com.docus.server.vo.segmentation.ocrurlconfig.OcrUrlConfigVO;
import com.docus.server.entity.segmentation.OcrUrlConfig;
import com.docus.server.convert.OcrUrlConfigConvert;
import com.docus.server.dto.segmentation.ocrurlconfig.EditOcrUrlConfigDTO;
import com.docus.server.entity.segmentation.OcrUrlConfig;
import com.docus.server.infrastructure.dao.IOcrUrlConfigDao;
import com.docus.server.service.IOcrUrlConfigService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrurlconfig.OcrUrlConfigVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
* ocr
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrUrlConfigServiceImpl implements IOcrUrlConfigService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrUrlConfigVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrUrlConfigVO findById(Long id) {
return OcrUrlConfigConvert.INSTANCE.convertVO(iOcrUrlConfigDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrUrlConfigVO> findAll() {
return OcrUrlConfigConvert.INSTANCE.convertVO(iOcrUrlConfigDao.findAll());
return OcrUrlConfigConvert.INSTANCE.convertVO(iOcrUrlConfigDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrUrlConfigVO> search(SearchDTO searchDTO) {
return OcrUrlConfigConvert.INSTANCE.convertVO(iOcrUrlConfigDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrUrlConfigVO> search(SearchDTO searchDTO) {
return OcrUrlConfigConvert.INSTANCE.convertVO(iOcrUrlConfigDao.search(searchDTO));
//PageResult<OcrUrlConfigVO> result = OcrUrlConfigConvert.INSTANCE.convertVO(iOcrUrlConfigDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrUrlConfigServiceImpl implements IOcrUrlConfigService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrUrlConfigDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrUrlConfigDTO addOcrUrlConfigDTO) {
OcrUrlConfig ocrUrlConfig =OcrUrlConfigConvert.INSTANCE.convertDO(addOcrUrlConfigDTO);
ocrUrlConfig.setId(idService.getDateSeq());
*
*
* @param addOcrUrlConfigDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrUrlConfigDTO addOcrUrlConfigDTO) {
OcrUrlConfig ocrUrlConfig = OcrUrlConfigConvert.INSTANCE.convertDO(addOcrUrlConfigDTO);
ocrUrlConfig.setId(idService.getDateSeq());
return iOcrUrlConfigDao.add(ocrUrlConfig);
// String name = addOcrUrlConfigDTO.getName();
@ -98,28 +97,29 @@ public class OcrUrlConfigServiceImpl implements IOcrUrlConfigService {
//OcrUrlConfig ocrUrlConfig = iOcrUrlConfigDao.findOneBy("name", name);
//if (Func.notNull(ocrUrlConfig)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr路径配置表已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr路径配置表已经存在");
// }
// OcrUrlConfig ocrUrlConfig =OcrUrlConfigConvert.INSTANCE.convertDO(addOcrUrlConfigDTO);
// ocrUrlConfig.setId(idService.getDateSeq());
// OcrUrlConfig ocrUrlConfig =OcrUrlConfigConvert.INSTANCE.convertDO(addOcrUrlConfigDTO);
// ocrUrlConfig.setId(idService.getDateSeq());
// return iOcrUrlConfigDao.add(schCollector);
// return iOcrUrlConfigDao.add(schCollector);
}
}
/**
*
* @param editOcrUrlConfigDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrUrlConfigDTO editOcrUrlConfigDTO) {
OcrUrlConfig ocrUrlConfig =OcrUrlConfigConvert.INSTANCE.convertDO(editOcrUrlConfigDTO);
return iOcrUrlConfigDao.edit(ocrUrlConfig);
// Long id = editOcrUrlConfigDTO.getId();
*
*
* @param editOcrUrlConfigDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrUrlConfigDTO editOcrUrlConfigDTO) {
OcrUrlConfig ocrUrlConfig = OcrUrlConfigConvert.INSTANCE.convertDO(editOcrUrlConfigDTO);
return iOcrUrlConfigDao.edit(ocrUrlConfig);
// Long id = editOcrUrlConfigDTO.getId();
// OcrUrlConfig ocrUrlConfig = iOcrUrlConfigDao.findById(id);
@ -129,16 +129,17 @@ public class OcrUrlConfigServiceImpl implements IOcrUrlConfigService {
// ocrUrlConfig.setUpdateTime(LocalDateTime.now());
// return iOcrUrlConfigDao.edit(ocrUrlConfig);
}
}
/**
*
* @param deleteOcrUrlConfigDTO
* @return
*/
*
*
* @param deleteOcrUrlConfigDTO
* @return
*/
@Override
public int delete(DeleteOcrUrlConfigDTO deleteOcrUrlConfigDTO) {
return iOcrUrlConfigDao.delete(deleteOcrUrlConfigDTO.getIds());
return iOcrUrlConfigDao.delete(deleteOcrUrlConfigDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrUrlConfigTestConvert;
import com.docus.server.dto.segmentation.ocrurlconfigtest.AddOcrUrlConfigTestDTO;
import com.docus.server.dto.segmentation.ocrurlconfigtest.EditOcrUrlConfigTestDTO;
import com.docus.server.dto.segmentation.ocrurlconfigtest.DeleteOcrUrlConfigTestDTO;
import com.docus.server.vo.segmentation.ocrurlconfigtest.OcrUrlConfigTestVO;
import com.docus.server.entity.segmentation.OcrUrlConfigTest;
import com.docus.server.convert.OcrUrlConfigTestConvert;
import com.docus.server.dto.segmentation.ocrurlconfigtest.EditOcrUrlConfigTestDTO;
import com.docus.server.entity.segmentation.OcrUrlConfigTest;
import com.docus.server.infrastructure.dao.IOcrUrlConfigTestDao;
import com.docus.server.service.IOcrUrlConfigTestService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrurlconfigtest.OcrUrlConfigTestVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
* ocr-
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrUrlConfigTestServiceImpl implements IOcrUrlConfigTestService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrUrlConfigTestVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrUrlConfigTestVO findById(Long id) {
return OcrUrlConfigTestConvert.INSTANCE.convertVO(iOcrUrlConfigTestDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrUrlConfigTestVO> findAll() {
return OcrUrlConfigTestConvert.INSTANCE.convertVO(iOcrUrlConfigTestDao.findAll());
return OcrUrlConfigTestConvert.INSTANCE.convertVO(iOcrUrlConfigTestDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrUrlConfigTestVO> search(SearchDTO searchDTO) {
return OcrUrlConfigTestConvert.INSTANCE.convertVO(iOcrUrlConfigTestDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrUrlConfigTestVO> search(SearchDTO searchDTO) {
return OcrUrlConfigTestConvert.INSTANCE.convertVO(iOcrUrlConfigTestDao.search(searchDTO));
//PageResult<OcrUrlConfigTestVO> result = OcrUrlConfigTestConvert.INSTANCE.convertVO(iOcrUrlConfigTestDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrUrlConfigTestServiceImpl implements IOcrUrlConfigTestService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrUrlConfigTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrUrlConfigTestDTO addOcrUrlConfigTestDTO) {
OcrUrlConfigTest ocrUrlConfigTest =OcrUrlConfigTestConvert.INSTANCE.convertDO(addOcrUrlConfigTestDTO);
ocrUrlConfigTest.setId(idService.getDateSeq());
*
*
* @param addOcrUrlConfigTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrUrlConfigTestDTO addOcrUrlConfigTestDTO) {
OcrUrlConfigTest ocrUrlConfigTest = OcrUrlConfigTestConvert.INSTANCE.convertDO(addOcrUrlConfigTestDTO);
ocrUrlConfigTest.setId(idService.getDateSeq());
return iOcrUrlConfigTestDao.add(ocrUrlConfigTest);
// String name = addOcrUrlConfigTestDTO.getName();
@ -98,28 +97,29 @@ public class OcrUrlConfigTestServiceImpl implements IOcrUrlConfigTestService {
//OcrUrlConfigTest ocrUrlConfigTest = iOcrUrlConfigTestDao.findOneBy("name", name);
//if (Func.notNull(ocrUrlConfigTest)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr路径配置表-调试已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "ocr路径配置表-调试已经存在");
// }
// OcrUrlConfigTest ocrUrlConfigTest =OcrUrlConfigTestConvert.INSTANCE.convertDO(addOcrUrlConfigTestDTO);
// ocrUrlConfigTest.setId(idService.getDateSeq());
// OcrUrlConfigTest ocrUrlConfigTest =OcrUrlConfigTestConvert.INSTANCE.convertDO(addOcrUrlConfigTestDTO);
// ocrUrlConfigTest.setId(idService.getDateSeq());
// return iOcrUrlConfigTestDao.add(schCollector);
// return iOcrUrlConfigTestDao.add(schCollector);
}
}
/**
*
* @param editOcrUrlConfigTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrUrlConfigTestDTO editOcrUrlConfigTestDTO) {
OcrUrlConfigTest ocrUrlConfigTest =OcrUrlConfigTestConvert.INSTANCE.convertDO(editOcrUrlConfigTestDTO);
return iOcrUrlConfigTestDao.edit(ocrUrlConfigTest);
// Long id = editOcrUrlConfigTestDTO.getId();
*
*
* @param editOcrUrlConfigTestDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrUrlConfigTestDTO editOcrUrlConfigTestDTO) {
OcrUrlConfigTest ocrUrlConfigTest = OcrUrlConfigTestConvert.INSTANCE.convertDO(editOcrUrlConfigTestDTO);
return iOcrUrlConfigTestDao.edit(ocrUrlConfigTest);
// Long id = editOcrUrlConfigTestDTO.getId();
// OcrUrlConfigTest ocrUrlConfigTest = iOcrUrlConfigTestDao.findById(id);
@ -129,16 +129,17 @@ public class OcrUrlConfigTestServiceImpl implements IOcrUrlConfigTestService {
// ocrUrlConfigTest.setUpdateTime(LocalDateTime.now());
// return iOcrUrlConfigTestDao.edit(ocrUrlConfigTest);
}
}
/**
*
* @param deleteOcrUrlConfigTestDTO
* @return
*/
*
*
* @param deleteOcrUrlConfigTestDTO
* @return
*/
@Override
public int delete(DeleteOcrUrlConfigTestDTO deleteOcrUrlConfigTestDTO) {
return iOcrUrlConfigTestDao.delete(deleteOcrUrlConfigTestDTO.getIds());
return iOcrUrlConfigTestDao.delete(deleteOcrUrlConfigTestDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.OcrVersionConvert;
import com.docus.server.dto.segmentation.ocrversion.AddOcrVersionDTO;
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
import com.docus.server.dto.segmentation.ocrversion.DeleteOcrVersionDTO;
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
import com.docus.server.entity.segmentation.OcrVersion;
import com.docus.server.convert.OcrVersionConvert;
import com.docus.server.dto.segmentation.ocrversion.EditOcrVersionDTO;
import com.docus.server.entity.segmentation.OcrVersion;
import com.docus.server.infrastructure.dao.IOcrVersionDao;
import com.docus.server.service.IOcrVersionService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.ocrversion.OcrVersionVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
*
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class OcrVersionServiceImpl implements IOcrVersionService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public OcrVersionVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public OcrVersionVO findById(Long id) {
return OcrVersionConvert.INSTANCE.convertVO(iOcrVersionDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<OcrVersionVO> findAll() {
return OcrVersionConvert.INSTANCE.convertVO(iOcrVersionDao.findAll());
return OcrVersionConvert.INSTANCE.convertVO(iOcrVersionDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrVersionVO> search(SearchDTO searchDTO) {
return OcrVersionConvert.INSTANCE.convertVO(iOcrVersionDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<OcrVersionVO> search(SearchDTO searchDTO) {
return OcrVersionConvert.INSTANCE.convertVO(iOcrVersionDao.search(searchDTO));
//PageResult<OcrVersionVO> result = OcrVersionConvert.INSTANCE.convertVO(iOcrVersionDao.search(searchDTO));
@ -72,25 +70,26 @@ public class OcrVersionServiceImpl implements IOcrVersionService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addOcrVersionDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrVersionDTO addOcrVersionDTO) {
OcrVersion ocrVersion =OcrVersionConvert.INSTANCE.convertDO(addOcrVersionDTO);
ocrVersion.setId(idService.getDateSeq());
*
*
* @param addOcrVersionDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddOcrVersionDTO addOcrVersionDTO) {
OcrVersion ocrVersion = OcrVersionConvert.INSTANCE.convertDO(addOcrVersionDTO);
ocrVersion.setId(idService.getDateSeq());
return iOcrVersionDao.add(ocrVersion);
// String name = addOcrVersionDTO.getName();
@ -98,28 +97,29 @@ public class OcrVersionServiceImpl implements IOcrVersionService {
//OcrVersion ocrVersion = iOcrVersionDao.findOneBy("name", name);
//if (Func.notNull(ocrVersion)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "正式数据版本号管理已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "正式数据版本号管理已经存在");
// }
// OcrVersion ocrVersion =OcrVersionConvert.INSTANCE.convertDO(addOcrVersionDTO);
// ocrVersion.setId(idService.getDateSeq());
// OcrVersion ocrVersion =OcrVersionConvert.INSTANCE.convertDO(addOcrVersionDTO);
// ocrVersion.setId(idService.getDateSeq());
// return iOcrVersionDao.add(schCollector);
// return iOcrVersionDao.add(schCollector);
}
}
/**
*
* @param editOcrVersionDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrVersionDTO editOcrVersionDTO) {
OcrVersion ocrVersion =OcrVersionConvert.INSTANCE.convertDO(editOcrVersionDTO);
return iOcrVersionDao.edit(ocrVersion);
// Long id = editOcrVersionDTO.getId();
*
*
* @param editOcrVersionDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditOcrVersionDTO editOcrVersionDTO) {
OcrVersion ocrVersion = OcrVersionConvert.INSTANCE.convertDO(editOcrVersionDTO);
return iOcrVersionDao.edit(ocrVersion);
// Long id = editOcrVersionDTO.getId();
// OcrVersion ocrVersion = iOcrVersionDao.findById(id);
@ -129,16 +129,17 @@ public class OcrVersionServiceImpl implements IOcrVersionService {
// ocrVersion.setUpdateTime(LocalDateTime.now());
// return iOcrVersionDao.edit(ocrVersion);
}
}
/**
*
* @param deleteOcrVersionDTO
* @return
*/
*
*
* @param deleteOcrVersionDTO
* @return
*/
@Override
public int delete(DeleteOcrVersionDTO deleteOcrVersionDTO) {
return iOcrVersionDao.delete(deleteOcrVersionDTO.getIds());
return iOcrVersionDao.delete(deleteOcrVersionDTO.getIds());
}
}

@ -1,28 +1,23 @@
package com.docus.server.service.impl;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.server.convert.ZdAssortConvert;
import com.docus.server.dto.segmentation.zdassort.AddZdAssortDTO;
import com.docus.server.dto.segmentation.zdassort.EditZdAssortDTO;
import com.docus.server.dto.segmentation.zdassort.DeleteZdAssortDTO;
import com.docus.server.vo.segmentation.zdassort.ZdAssortVO;
import com.docus.server.entity.segmentation.ZdAssort;
import com.docus.server.convert.ZdAssortConvert;
import com.docus.server.dto.segmentation.zdassort.EditZdAssortDTO;
import com.docus.server.entity.segmentation.ZdAssort;
import com.docus.server.infrastructure.dao.IZdAssortDao;
import com.docus.server.service.IZdAssortService;
import com.docus.core.util.Func;
import com.docus.server.vo.segmentation.zdassort.ZdAssortVO;
import org.springframework.stereotype.Service;
import com.docus.infrastructure.web.request.SearchDTO;
import com.docus.infrastructure.web.response.PageResult;
import com.docus.infrastructure.redis.service.IdService;
import com.docus.infrastructure.web.exception.ApiException;
import com.docus.infrastructure.web.exception.ExceptionCode;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.time.LocalDateTime;
/**
*
*
*
* @author AutoGenerator
@ -36,32 +31,35 @@ public class ZdAssortServiceImpl implements IZdAssortService {
private IdService idService;
/**
*
* @param id Id
* @return
*/
@Override
public ZdAssortVO findById(Long id) {
*
*
* @param id Id
* @return
*/
@Override
public ZdAssortVO findById(Long id) {
return ZdAssortConvert.INSTANCE.convertVO(iZdAssortDao.findById(id));
}
}
/**
*
* @return
*/
*
*
* @return
*/
@Override
public List<ZdAssortVO> findAll() {
return ZdAssortConvert.INSTANCE.convertVO(iZdAssortDao.findAll());
return ZdAssortConvert.INSTANCE.convertVO(iZdAssortDao.findAll());
}
/**
*
* @param searchDTO
* @return
*/
@Override
public PageResult<ZdAssortVO> search(SearchDTO searchDTO) {
return ZdAssortConvert.INSTANCE.convertVO(iZdAssortDao.search(searchDTO));
*
*
* @param searchDTO
* @return
*/
@Override
public PageResult<ZdAssortVO> search(SearchDTO searchDTO) {
return ZdAssortConvert.INSTANCE.convertVO(iZdAssortDao.search(searchDTO));
//PageResult<ZdAssortVO> result = ZdAssortConvert.INSTANCE.convertVO(iZdAssortDao.search(searchDTO));
@ -72,24 +70,25 @@ public class ZdAssortServiceImpl implements IZdAssortService {
//Map<String, SchSystemParams> map = iSchSystemParamsService.find(ListUtils.distinctSelect(result.getList(), SchCollectorVO::getCollectorId));
//result.getList().forEach(p -> {
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
// String collectorId = String.valueOf(p.getCollectorId());
// if (map.containsKey(collectorId)) {
// p.setCollectorName(map.get(collectorId).getParamName());
// }
//});
//return result;
}
//return result;
}
/**
*
* @param addZdAssortDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddZdAssortDTO addZdAssortDTO) {
ZdAssort zdAssort =ZdAssortConvert.INSTANCE.convertDO(addZdAssortDTO);
*
*
* @param addZdAssortDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean add(AddZdAssortDTO addZdAssortDTO) {
ZdAssort zdAssort = ZdAssortConvert.INSTANCE.convertDO(addZdAssortDTO);
// zdAssort.setId(idService.getDateSeq());
return iZdAssortDao.add(zdAssort);
@ -98,28 +97,29 @@ public class ZdAssortServiceImpl implements IZdAssortService {
//ZdAssort zdAssort = iZdAssortDao.findOneBy("name", name);
//if (Func.notNull(zdAssort)) {
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "病案分类已经存在");
// }
// throw new ApiException(ExceptionCode.ParamIllegal.getCode(), "病案分类已经存在");
// }
// ZdAssort zdAssort =ZdAssortConvert.INSTANCE.convertDO(addZdAssortDTO);
// zdAssort.setId(idService.getDateSeq());
// ZdAssort zdAssort =ZdAssortConvert.INSTANCE.convertDO(addZdAssortDTO);
// zdAssort.setId(idService.getDateSeq());
// return iZdAssortDao.add(schCollector);
// return iZdAssortDao.add(schCollector);
}
}
/**
*
* @param editZdAssortDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditZdAssortDTO editZdAssortDTO) {
ZdAssort zdAssort =ZdAssortConvert.INSTANCE.convertDO(editZdAssortDTO);
return iZdAssortDao.edit(zdAssort);
// Long id = editZdAssortDTO.getId();
*
*
* @param editZdAssortDTO
* @return
*/
@Override
@Transactional(rollbackFor = Exception.class)
public boolean edit(EditZdAssortDTO editZdAssortDTO) {
ZdAssort zdAssort = ZdAssortConvert.INSTANCE.convertDO(editZdAssortDTO);
return iZdAssortDao.edit(zdAssort);
// Long id = editZdAssortDTO.getId();
// ZdAssort zdAssort = iZdAssortDao.findById(id);
@ -129,16 +129,17 @@ public class ZdAssortServiceImpl implements IZdAssortService {
// zdAssort.setUpdateTime(LocalDateTime.now());
// return iZdAssortDao.edit(zdAssort);
}
}
/**
*
* @param deleteZdAssortDTO
* @return
*/
*
*
* @param deleteZdAssortDTO
* @return
*/
@Override
public int delete(DeleteZdAssortDTO deleteZdAssortDTO) {
return iZdAssortDao.delete(deleteZdAssortDTO.getIds());
return iZdAssortDao.delete(deleteZdAssortDTO.getIds());
}
}

Loading…
Cancel
Save