体尺测量,体况评分,乳房评分缺失字段的添加,改品种页面展示原品种

This commit is contained in:
zyh 2025-08-14 15:54:50 +08:00
parent 07468b9c00
commit dc34bfcbd4
302 changed files with 102 additions and 27779 deletions

View File

@ -1,204 +0,0 @@
package com.zhyc.module.base.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.base.domain.BasSheep;
import com.zhyc.module.base.domain.BasSheepVariety;
import com.zhyc.module.base.mapper.BasSheepMapper;
import com.zhyc.module.base.service.IBasSheepService;
import com.zhyc.module.base.service.IBasSheepVarietyService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 羊只基本信息Controller
*
* @author ruoyi
* @date 2025-07-15
*/
@RestController
@RequestMapping("/sheep/sheep")
public class BasSheepController extends BaseController {
@Autowired
private IBasSheepService basSheepService;
@Autowired
private IBasSheepVarietyService basSheepVarietyService;
/**
* 查询羊只基本信息列表
*/
@PreAuthorize("@ss.hasPermi('sheep:sheep:list')")
@GetMapping("/list")
public TableDataInfo list(BasSheep basSheep) {
startPage();
List<BasSheep> list = basSheepService.selectBasSheepList(basSheep);
return getDataTable(list);
}
/**
* 导出羊只基本信息列表
*/
@PreAuthorize("@ss.hasPermi('sheep:sheep:export')")
@Log(title = "羊只基本信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BasSheep basSheep) {
List<BasSheep> list = basSheepService.selectBasSheepList(basSheep);
ExcelUtil<BasSheep> util = new ExcelUtil<BasSheep>(BasSheep.class);
util.exportExcel(response, list, "羊只基本信息数据");
}
/**
* 获取羊只基本信息详细信息
*/
@PreAuthorize("@ss.hasPermi('sheep:sheep:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(basSheepService.selectBasSheepById(id));
}
/**
* 新增羊只基本信息
*/
@PreAuthorize("@ss.hasPermi('sheep:sheep:add')")
@Log(title = "羊只基本信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BasSheep basSheep) {
return toAjax(basSheepService.insertBasSheep(basSheep));
}
/**
* 修改羊只基本信息
*/
@PreAuthorize("@ss.hasPermi('sheep:sheep:edit')")
@Log(title = "羊只基本信息", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BasSheep basSheep) {
return toAjax(basSheepService.updateBasSheep(basSheep));
}
/**
* 删除羊只基本信息
*/
@PreAuthorize("@ss.hasPermi('sheep:sheep:remove')")
@Log(title = "羊只基本信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(basSheepService.deleteBasSheepByIds(ids));
}
/**
* 根据耳号查询
*/
@GetMapping("/byManageTags/{manageTags}")
public AjaxResult byManageTags(@PathVariable String manageTags) {
BasSheep sheep = basSheepService.selectBasSheepByManageTags(manageTags.trim());
if (sheep == null) {
return error("未找到对应的羊只");
}
// 补品种名称
BasSheepVariety variety = basSheepVarietyService.selectBasSheepVarietyById(sheep.getVarietyId());
sheep.setVarietyName(variety == null ? "" : variety.getVariety());
return success(sheep);
}
/**
* 根据羊只类型ID查询羊只列表
*/
@PreAuthorize("@ss.hasPermi('sheep:sheep:query')")
@GetMapping("/listByTypeId")
public TableDataInfo listByTypeId(Integer typeId) {
if (typeId == null) {
return getDataTable(new ArrayList<>());
}
BasSheep query = new BasSheep();
query.setTypeId(typeId.longValue());
startPage();
List<BasSheep> list = basSheepService.selectBasSheepList(query);
return getDataTable(list);
}
/**
* 根据羊舍ID和羊只类型ID组合查询羊只列表
*/
@PreAuthorize("@ss.hasPermi('sheep:sheep:query')")
@GetMapping("/listBySheepfoldAndType")
public TableDataInfo listBySheepfoldAndType(Integer sheepfoldId, Integer typeId) {
if (sheepfoldId == null || typeId == null) {
return getDataTable(new ArrayList<>());
}
BasSheep query = new BasSheep();
query.setSheepfoldId(sheepfoldId.longValue());
query.setTypeId(typeId.longValue());
startPage();
List<BasSheep> list = basSheepService.selectBasSheepList(query);
return getDataTable(list);
}
/**
* 根据耳号管理耳号或电子耳号+ 耳号类型 查询羊只信息
* earType0-电子耳号1-管理耳号
*/
@GetMapping("/byEarNumber")
public AjaxResult byEarNumber(@RequestParam String earNumber, @RequestParam Integer earType) {
BasSheep query = new BasSheep();
query.setManageTags(earNumber);
List<BasSheep> list = basSheepService.selectBasSheepList(query);
if (list.isEmpty()) {
query.setManageTags(null);
query.setElectronicTags(earNumber);
list = basSheepService.selectBasSheepList(query);
}
if (list.isEmpty()) {
return error("未找到对应的羊只");
}
BasSheep sheep = list.get(0);
String oldTag = earType == 0 ? sheep.getElectronicTags() : sheep.getManageTags();
Map<String, Object> result = new HashMap<>();
result.put("sheep", sheep);
result.put("oldTag", oldTag);
return success(result);
}
/**
* 判断耳号是否存在用于新增羊只时校验
*/
@GetMapping("/existsByManageTags/{manageTags}")
public AjaxResult existsByManageTags(@PathVariable String manageTags) {
BasSheep sheep = basSheepService.selectBasSheepByManageTags(manageTags.trim());
if (sheep != null) {
return success(true);
}
return success(false);
}
@GetMapping("/existsByTag")
public AjaxResult existsByTag(@RequestParam String tag, @RequestParam Integer earType) {
boolean exists = basSheepService.existsByTag(tag, earType);
Map<String, Object> result = new HashMap<>();
result.put("exists", exists);
return success(result);
}
}

View File

@ -1,104 +0,0 @@
package com.zhyc.module.base.controller;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.module.base.domain.BasSheepGroup;
import com.zhyc.module.base.service.IBasSheepGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 分组管理Controller
*
* @author wyt
* @date 2025-07-14
*/
@RestController
@RequestMapping("/group_management/group_management")
public class BasSheepGroupController extends BaseController
{
@Autowired
private IBasSheepGroupService basSheepGroupService;
/**
* 查询分组管理列表
*/
@PreAuthorize("@ss.hasPermi('group_management:group_management:list')")
@GetMapping("/list")
public AjaxResult list(BasSheepGroup basSheepGroup)
{
List<BasSheepGroup> list = basSheepGroupService.selectBasSheepGroupList(basSheepGroup);
return success(list);
}
/**
* 导出分组管理列表
*/
@PreAuthorize("@ss.hasPermi('group_management:group_management:export')")
@Log(title = "分组管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BasSheepGroup basSheepGroup)
{
List<BasSheepGroup> list = basSheepGroupService.selectBasSheepGroupList(basSheepGroup);
ExcelUtil<BasSheepGroup> util = new ExcelUtil<BasSheepGroup>(BasSheepGroup.class);
util.exportExcel(response, list, "分组管理数据");
}
/**
* 获取分组管理详细信息
*/
@PreAuthorize("@ss.hasPermi('group_management:group_management:query')")
@GetMapping(value = "/{groupId}")
public AjaxResult getInfo(@PathVariable("groupId") Long groupId)
{
return success(basSheepGroupService.selectBasSheepGroupByGroupId(groupId));
}
/**
* 新增分组管理
*/
@PreAuthorize("@ss.hasPermi('group_management:group_management:add')")
@Log(title = "分组管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BasSheepGroup basSheepGroup)
{
return toAjax(basSheepGroupService.insertBasSheepGroup(basSheepGroup));
}
/**
* 修改分组管理
*/
@PreAuthorize("@ss.hasPermi('group_management:group_management:edit')")
@Log(title = "分组管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BasSheepGroup basSheepGroup)
{
return toAjax(basSheepGroupService.updateBasSheepGroup(basSheepGroup));
}
/**
* 删除分组管理
*/
@PreAuthorize("@ss.hasPermi('group_management:group_management:remove')")
@Log(title = "分组管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{groupIds}")
public AjaxResult remove(@PathVariable Long[] groupIds)
{
return toAjax(basSheepGroupService.deleteBasSheepGroupByGroupIds(groupIds));
}
@PreAuthorize("@ss.hasPermi('group_management:group_management:list')")
@GetMapping("/leaf")
public AjaxResult selectLeafNodes() {
List<BasSheepGroup> leafNodes = basSheepGroupService.selectLeafNodes();
return success(leafNodes);
}
}

View File

@ -1,148 +0,0 @@
package com.zhyc.module.base.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.common.utils.StringUtils;
import com.zhyc.module.base.domain.BasSheepGroupMapping;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.base.service.IBasSheepGroupMappingService;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
// 1. 导入
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 羊只分组关联Controller
*
* @author wyt
* @date 2025-07-16
*/
@RestController
@RequestMapping("/sheep_grouping/sheep_grouping")
public class BasSheepGroupMappingController extends BaseController
{
@Autowired
private IBasSheepGroupMappingService basSheepGroupMappingService;
/**
* 查询羊只分组关联列表
*/
@PreAuthorize("@ss.hasPermi('sheep_grouping:sheep_grouping:list')")
@GetMapping("/list")
public TableDataInfo list(BasSheepGroupMapping basSheepGroupMapping)
{
startPage();
List<BasSheepGroupMapping> list = basSheepGroupMappingService.selectBasSheepGroupMappingList(basSheepGroupMapping);
return getDataTable(list);
}
// 2. 声明放在类内部方法外部
private static final Logger log = LoggerFactory.getLogger(BasSheepGroupMappingController.class);
@PreAuthorize("@ss.hasPermi('sheep_grouping:sheep_grouping:list')")
@GetMapping("/listJoin")
public TableDataInfo list(
@RequestParam(required = false) Long sheepId,
@RequestParam(required = false) Long groupId,
@RequestParam(required = false) String bsManageTags) {
List<String> earList = null;
if (StringUtils.hasText(bsManageTags)) {
earList = Arrays.asList(bsManageTags.split("[,\\s]+"));
}
startPage();
List<Map<String,Object>> list = basSheepGroupMappingService
.selectBasSheepGroupMappingList(sheepId, groupId, earList);
return getDataTable(list);
}
/**
* 导出羊只分组关联列表
*/
@PreAuthorize("@ss.hasPermi('sheep_grouping:sheep_grouping:export')")
@Log(title = "羊只分组关联", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BasSheepGroupMapping basSheepGroupMapping)
{
List<BasSheepGroupMapping> list = basSheepGroupMappingService.selectBasSheepGroupMappingList(basSheepGroupMapping);
ExcelUtil<BasSheepGroupMapping> util = new ExcelUtil<BasSheepGroupMapping>(BasSheepGroupMapping.class);
util.exportExcel(response, list, "羊只分组关联数据");
}
/**
* 获取羊只分组关联详细信息
*/
@PreAuthorize("@ss.hasPermi('sheep_grouping:sheep_grouping:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(basSheepGroupMappingService.selectBasSheepGroupMappingById(id));
}
/**
* 新增羊只分组关联
*/
@PreAuthorize("@ss.hasPermi('sheep_grouping:sheep_grouping:add')")
@Log(title = "羊只分组关联", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BasSheepGroupMapping basSheepGroupMapping)
{
return toAjax(basSheepGroupMappingService.insertBasSheepGroupMapping(basSheepGroupMapping));
}
/**
* 修改羊只分组关联
*/
@PreAuthorize("@ss.hasPermi('sheep_grouping:sheep_grouping:edit')")
@Log(title = "羊只分组关联", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BasSheepGroupMapping basSheepGroupMapping)
{
try {
return toAjax(basSheepGroupMappingService.updateBasSheepGroupMapping(basSheepGroupMapping));
} catch (RuntimeException e) {
return error(e.getMessage());
}
}
/**
* 删除羊只分组关联
*/
@PreAuthorize("@ss.hasPermi('sheep_grouping:sheep_grouping:remove')")
@Log(title = "羊只分组关联", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(basSheepGroupMappingService.deleteBasSheepGroupMappingByIds(ids));
}
@PostMapping("/addByEarTags")
public AjaxResult addByEarTags(@RequestBody Map<String, Object> params) {
List<String> earTags = (List<String>) params.get("earTags");
Long groupId = Long.valueOf(params.get("groupId").toString());
if (earTags == null || earTags.isEmpty()) {
return error("耳号列表不能为空");
}
return basSheepGroupMappingService.addByEarTags(earTags, groupId);
}
}

View File

@ -1,114 +0,0 @@
package com.zhyc.module.base.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.base.domain.BasSheep;
import com.zhyc.module.base.service.IBasSheepService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.base.domain.BasSheepType;
import com.zhyc.module.base.service.IBasSheepTypeService;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 羊只类型Controller
*
* @author ruoyi
* @date 2025-07-22
*/
@RestController
@RequestMapping("/base/base")
public class BasSheepTypeController extends BaseController
{
@Autowired
private IBasSheepTypeService basSheepTypeService;
@Autowired
private IBasSheepService basSheepService;
/**
* 查询羊只类型列表
*/
@PreAuthorize("@ss.hasPermi('base:base:list')")
@GetMapping("/list")
public TableDataInfo list(BasSheepType basSheepType)
{
startPage();
List<BasSheepType> list = basSheepTypeService.selectBasSheepTypeList(basSheepType);
return getDataTable(list);
}
/**
* 导出羊只类型列表
*/
@PreAuthorize("@ss.hasPermi('base:base:export')")
@Log(title = "羊只类型", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BasSheepType basSheepType)
{
List<BasSheepType> list = basSheepTypeService.selectBasSheepTypeList(basSheepType);
ExcelUtil<BasSheepType> util = new ExcelUtil<BasSheepType>(BasSheepType.class);
util.exportExcel(response, list, "羊只类型数据");
}
/**
* 获取羊只类型详细信息
*/
@PreAuthorize("@ss.hasPermi('base:base:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Integer id)
{
return success(basSheepTypeService.selectBasSheepTypeById(id));
}
/**
* 新增羊只类型
*/
@PreAuthorize("@ss.hasPermi('base:base:add')")
@Log(title = "羊只类型", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BasSheepType basSheepType)
{
return toAjax(basSheepTypeService.insertBasSheepType(basSheepType));
}
/**
* 修改羊只类型
*/
@PreAuthorize("@ss.hasPermi('base:base:edit')")
@Log(title = "羊只类型", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BasSheepType basSheepType)
{
return toAjax(basSheepTypeService.updateBasSheepType(basSheepType));
}
/**
* 删除羊只类型
*/
@PreAuthorize("@ss.hasPermi('base:base:remove')")
@Log(title = "羊只类型", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Integer[] ids)
{
return toAjax(basSheepTypeService.deleteBasSheepTypeByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.base.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.base.domain.BasSheepVariety;
import com.zhyc.module.base.service.IBasSheepVarietyService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 羊只品种Controller
*
* @author ruoyi
* @date 2025-07-15
*/
@RestController
@RequestMapping("/base/variety")
public class BasSheepVarietyController extends BaseController
{
@Autowired
private IBasSheepVarietyService basSheepVarietyService;
/**
* 查询羊只品种列表
*/
@PreAuthorize("@ss.hasPermi('base:variety:list')")
@GetMapping("/list")
public TableDataInfo list(BasSheepVariety basSheepVariety)
{
startPage();
List<BasSheepVariety> list = basSheepVarietyService.selectBasSheepVarietyList(basSheepVariety);
return getDataTable(list);
}
/**
* 导出羊只品种列表
*/
@PreAuthorize("@ss.hasPermi('base:variety:export')")
@Log(title = "羊只品种", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BasSheepVariety basSheepVariety)
{
List<BasSheepVariety> list = basSheepVarietyService.selectBasSheepVarietyList(basSheepVariety);
ExcelUtil<BasSheepVariety> util = new ExcelUtil<BasSheepVariety>(BasSheepVariety.class);
util.exportExcel(response, list, "羊只品种数据");
}
/**
* 获取羊只品种详细信息
*/
@PreAuthorize("@ss.hasPermi('base:variety:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(basSheepVarietyService.selectBasSheepVarietyById(id));
}
/**
* 新增羊只品种
*/
@PreAuthorize("@ss.hasPermi('base:variety:add')")
@Log(title = "羊只品种", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BasSheepVariety basSheepVariety)
{
return toAjax(basSheepVarietyService.insertBasSheepVariety(basSheepVariety));
}
/**
* 修改羊只品种
*/
@PreAuthorize("@ss.hasPermi('base:variety:edit')")
@Log(title = "羊只品种", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BasSheepVariety basSheepVariety)
{
return toAjax(basSheepVarietyService.updateBasSheepVariety(basSheepVariety));
}
/**
* 删除羊只品种
*/
@PreAuthorize("@ss.hasPermi('base:variety:remove')")
@Log(title = "羊只品种", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(basSheepVarietyService.deleteBasSheepVarietyByIds(ids));
}
}

View File

@ -1,104 +0,0 @@
package com.zhyc.module.base.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.base.domain.BreedRamFile;
import com.zhyc.module.base.service.IBreedRamFileService;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 种公羊档案Controller
*
* @author zhyc
* @date 2025-07-29
*/
@RestController
@RequestMapping("/ram_file/bas_ram_file")
public class BreedRamFileController extends BaseController
{
@Autowired
private IBreedRamFileService breedRamFileService;
/**
* 查询种公羊档案列表
*/
@PreAuthorize("@ss.hasPermi('breed_ram_file:breed_ram_file:list')")
@GetMapping("/list")
public TableDataInfo list(BreedRamFile breedRamFile)
{
startPage();
List<BreedRamFile> list = breedRamFileService.selectBreedRamFileList(breedRamFile);
return getDataTable(list);
}
/**
* 导出种公羊档案列表
*/
@PreAuthorize("@ss.hasPermi('breed_ram_file:breed_ram_file:export')")
@Log(title = "种公羊档案", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BreedRamFile breedRamFile)
{
List<BreedRamFile> list = breedRamFileService.selectBreedRamFileList(breedRamFile);
ExcelUtil<BreedRamFile> util = new ExcelUtil<BreedRamFile>(BreedRamFile.class);
util.exportExcel(response, list, "种公羊档案数据");
}
/**
* 获取种公羊档案详细信息
*/
@PreAuthorize("@ss.hasPermi('breed_ram_file:breed_ram_file:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(breedRamFileService.selectBreedRamFileById(id));
}
/**
* 新增种公羊档案
*/
@PreAuthorize("@ss.hasPermi('breed_ram_file:breed_ram_file:add')")
@Log(title = "种公羊档案", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BreedRamFile breedRamFile)
{
return toAjax(breedRamFileService.insertBreedRamFile(breedRamFile));
}
/**
* 修改种公羊档案
*/
@PreAuthorize("@ss.hasPermi('breed_ram_file:breed_ram_file:edit')")
@Log(title = "种公羊档案", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BreedRamFile breedRamFile)
{
return toAjax(breedRamFileService.updateBreedRamFile(breedRamFile));
}
/**
* 删除种公羊档案
*/
@PreAuthorize("@ss.hasPermi('breed_ram_file:breed_ram_file:remove')")
@Log(title = "种公羊档案", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(breedRamFileService.deleteBreedRamFileByIds(ids));
}
}

View File

@ -1,119 +0,0 @@
package com.zhyc.module.base.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.base.domain.BasSheep;
import com.zhyc.module.base.service.IBasSheepService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.base.domain.DaRanch;
import com.zhyc.module.base.service.IDaRanchService;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 牧场管理Controller
*
* @author ruoyi
* @date 2025-07-22
*/
@RestController
@RequestMapping("/ranch/ranch")
public class DaRanchController extends BaseController
{
@Autowired
private IDaRanchService daRanchService;
@Autowired
private IBasSheepService basSheepService;
/**
* 查询牧场管理列表
*/
@PreAuthorize("@ss.hasPermi('ranch:ranch:list')")
@GetMapping("/list")
public TableDataInfo list(DaRanch daRanch)
{
startPage();
List<DaRanch> list = daRanchService.selectDaRanchList(daRanch);
return getDataTable(list);
}
/**
* 导出牧场管理列表
*/
@PreAuthorize("@ss.hasPermi('ranch:ranch:export')")
@Log(title = "牧场管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DaRanch daRanch)
{
List<DaRanch> list = daRanchService.selectDaRanchList(daRanch);
ExcelUtil<DaRanch> util = new ExcelUtil<DaRanch>(DaRanch.class);
util.exportExcel(response, list, "牧场管理数据");
}
/**
* 获取牧场管理详细信息
*/
@PreAuthorize("@ss.hasPermi('ranch:ranch:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(daRanchService.selectDaRanchById(id));
}
/**
* 获取指定牧场下的所有羊只耳号
*/
@GetMapping("/getSheepByRanchId/{ranchId}")
public AjaxResult getSheepByRanchId(@PathVariable Long ranchId) {
List<BasSheep> sheepList = basSheepService.getSheepByRanchId(ranchId);
return AjaxResult.success(sheepList);
}
/**
* 新增牧场管理
*/
@PreAuthorize("@ss.hasPermi('ranch:ranch:add')")
@Log(title = "牧场管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DaRanch daRanch)
{
return toAjax(daRanchService.insertDaRanch(daRanch));
}
/**
* 修改牧场管理
*/
@PreAuthorize("@ss.hasPermi('ranch:ranch:edit')")
@Log(title = "牧场管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DaRanch daRanch)
{
return toAjax(daRanchService.updateDaRanch(daRanch));
}
/**
* 删除牧场管理
*/
@PreAuthorize("@ss.hasPermi('ranch:ranch:remove')")
@Log(title = "牧场管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(daRanchService.deleteDaRanchByIds(ids));
}
}

View File

@ -1,122 +0,0 @@
package com.zhyc.module.base.controller;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.core.page.TableDataInfo;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.module.base.domain.BasSheep;
import com.zhyc.module.base.domain.DaSheepfold;
import com.zhyc.module.base.service.IDaSheepfoldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 羊舍管理Controller
*
* @author wyt
* @date 2025-07-11
*/
@RestController
@RequestMapping("/sheepfold_management/sheepfold_management")
public class DaSheepfoldController extends BaseController
{
@Autowired
private IDaSheepfoldService daSheepfoldService;
/**
* 查询羊舍管理列表
*/
@PreAuthorize("@ss.hasPermi('sheepfold_management:sheepfold_management:list')")
@GetMapping("/list")
public TableDataInfo list(DaSheepfold daSheepfold)
{
startPage();
List<DaSheepfold> list = daSheepfoldService.selectDaSheepfoldList(daSheepfold);
return getDataTable(list);
}
/*
* 根据羊舍ids查询羊只id
* */
@GetMapping("/getSheepById")
public AjaxResult getSheepfold(@RequestParam String id) {
List<BasSheep> list = daSheepfoldService.sheepListById(id);
return AjaxResult.success(list);
}
/**
* 导出羊舍管理列表
*/
@PreAuthorize("@ss.hasPermi('sheepfold_management:sheepfold_management:export')")
@Log(title = "羊舍管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, DaSheepfold daSheepfold)
{
List<DaSheepfold> list = daSheepfoldService.selectDaSheepfoldList(daSheepfold);
ExcelUtil<DaSheepfold> util = new ExcelUtil<DaSheepfold>(DaSheepfold.class);
util.exportExcel(response, list, "羊舍管理数据");
}
/**
* 获取羊舍管理详细信息
*/
@PreAuthorize("@ss.hasPermi('sheepfold_management:sheepfold_management:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(daSheepfoldService.selectDaSheepfoldById(id));
}
/**
* 新增羊舍管理
*/
@PreAuthorize("@ss.hasPermi('sheepfold_management:sheepfold_management:add')")
@Log(title = "羊舍管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody DaSheepfold daSheepfold)
{
return toAjax(daSheepfoldService.insertDaSheepfold(daSheepfold));
}
/**
* 修改羊舍管理
*/
@PreAuthorize("@ss.hasPermi('sheepfold_management:sheepfold_management:edit')")
@Log(title = "羊舍管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody DaSheepfold daSheepfold)
{
return toAjax(daSheepfoldService.updateDaSheepfold(daSheepfold));
}
/**
* 删除羊舍管理
*/
@PreAuthorize("@ss.hasPermi('sheepfold_management:sheepfold_management:remove')")
@Log(title = "羊舍管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(daSheepfoldService.deleteDaSheepfoldByIds(ids));
}
/**
* 检查羊舍编号是否已存在
*/
@GetMapping("/checkSheepfoldNoExist")
public AjaxResult checkSheepfoldNoExist(
@RequestParam Long ranchId,
@RequestParam Long sheepfoldTypeId,
@RequestParam String sheepfoldNo
) {
boolean exist = daSheepfoldService.checkSheepfoldNoExist(ranchId, sheepfoldTypeId, sheepfoldNo);
return AjaxResult.success(exist);
}
}

View File

@ -1,103 +0,0 @@
package com.zhyc.module.base.controller;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.core.page.TableDataInfo;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.module.base.domain.BasSheep;
import com.zhyc.module.base.domain.SheepFile;
import com.zhyc.module.base.service.ISheepFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 羊只档案Controller
*
* @author wyt
* @date 2025-07-13
*/
@RestController
@RequestMapping("/sheep_file/sheep_file")
public class SheepFileController extends BaseController
{
@Autowired
private ISheepFileService sheepFileService;
/**
* 查询羊只档案列表
*/
@PreAuthorize("@ss.hasPermi('sheep_file:sheep_file:list')")
@GetMapping("/list")
public TableDataInfo list(SheepFile sheepFile)
{
startPage();
List<SheepFile> list = sheepFileService.selectSheepFileList(sheepFile);
return getDataTable(list);
}
/**
* 导出羊只档案列表
*/
@PreAuthorize("@ss.hasPermi('sheep_file:sheep_file:export')")
@Log(title = "羊只档案", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SheepFile sheepFile)
{
List<SheepFile> list = sheepFileService.selectSheepFileList(sheepFile);
ExcelUtil<SheepFile> util = new ExcelUtil<SheepFile>(SheepFile.class);
util.exportExcel(response, list, "羊只档案数据");
}
/**
* 获取羊只档案详细信息
*/
@PreAuthorize("@ss.hasPermi('sheep_file:sheep_file:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(sheepFileService.selectSheepFileById(id));
}
/*
* 根据耳号查询是否存在羊舍
* */
@GetMapping("/byNo/{manageTags}")
public AjaxResult byManageTags(@PathVariable String manageTags){
SheepFile sheep=sheepFileService.selectBasSheepByManageTags(manageTags.trim());
return success(sheep);
}
@GetMapping("/stat/sheepType")
public AjaxResult statSheepType() {
return success(sheepFileService.countBySheepType());
}
@GetMapping("/stat/breedStatus")
public AjaxResult statBreedStatus() {
return success(sheepFileService.countByBreedStatus());
}
@GetMapping("/stat/variety")
public AjaxResult statVariety() {
return success(sheepFileService.countByVariety());
}
@GetMapping("/stat/lactationParity")
public AjaxResult statLactationParity() {
return success(sheepFileService.countParityOfLactation());
}
// 在群总数
@GetMapping("/stat/inGroupCount")
public AjaxResult inGroupCount() {
return success(sheepFileService.countInGroup());
}
}

View File

@ -1,182 +0,0 @@
package com.zhyc.module.base.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 羊只基本信息对象 bas_sheep
*
* @author ruoyi
* @date 2025-07-15
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BasSheep extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 管理耳号 */
@Excel(name = "管理耳号")
private String manageTags;
/** 牧场id */
@Excel(name = "牧场id")
private Long ranchId;
/** 羊舍id */
@Excel(name = "羊舍id")
private Long sheepfoldId;
private String sheepfoldName;
/** 电子耳号 */
@Excel(name = "电子耳号")
private String electronicTags;
/** 品种id */
@Excel(name = "品种id")
private Long varietyId;
//仅用于改品种页面的回显
private String varietyName;
/** 家系 */
@Excel(name = "家系")
private String family;
/** 羊只类别 */
@Excel(name = "羊只类别")
private Long typeId;
/** 性别 */
@Excel(name = "性别")
private Long gender;
/** 出生日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date birthday;
/** 出生体重 */
@Excel(name = "出生体重")
private Long birthWeight;
/** 胎次 */
@Excel(name = "胎次")
private Long parity;
/** 羊只状态 */
@Excel(name = "羊只状态")
private Long statusId;
/** 断奶日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "断奶日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date weaningDate;
/** 断奶体重 */
@Excel(name = "断奶体重")
private Long weaningWeight;
/** 繁育状态id */
@Excel(name = "繁育状态id")
private Long breedStatusId;
/** 父号id */
@Excel(name = "父号id")
private Long fatherId;
/** 母号id */
@Excel(name = "母号id")
private Long motherId;
/** 受体id */
@Excel(name = "受体id")
private Long receptorId;
/** 配种日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "配种日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date matingDate;
/** 配种类型 */
@Excel(name = "配种类型")
private Long matingTypeId;
/** 孕检日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "孕检日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date pregDate;
/** 产羔日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "产羔日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date lambingDate;
/** 产羔时怀孕天数 */
@Excel(name = "产羔时怀孕天数")
private Long lambingDay;
/** 预产日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "预产日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date expectedDate;
/** 是否性控 */
@Excel(name = "是否性控")
private Long controlled;
/** 配种次数 */
@Excel(name = "配种次数")
private Long matingCounts;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long matingTotal;
/** 累计流产次数 */
@Excel(name = "累计流产次数")
private Long miscarriageCounts;
/** 体况评分 */
@Excel(name = "体况评分")
private Long body;
/** 乳房评分 */
@Excel(name = "乳房评分")
private Long breast;
/** 入群来源 */
@Excel(name = "入群来源")
private String source;
/** 入群日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "入群日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date sourceDate;
/** 来源牧场id */
@Excel(name = "来源牧场id")
private Long sourceRanchId;
/** 备注 */
@Excel(name = "备注")
private String comment;
/** 是否删除 */
@Excel(name = "是否删除")
private Long isDelete;
}

View File

@ -1,47 +0,0 @@
package com.zhyc.module.base.domain;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.TreeEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 分组管理对象 bas_sheep_group
*
* @author wyt
* @date 2025-07-14
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BasSheepGroup extends TreeEntity
{
private static final long serialVersionUID = 1L;
/** 分组ID */
@Excel(name = "分组ID")
private Long groupId;
/** 分组名称 */
@Excel(name = "分组名称")
private String groupName;
/** 状态0正常 1停用 */
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 状态0正常 1停用 */
@Excel(name = "祖级列表")
private String ancestors;
/** 祖级列表名称 */
@Excel(name = "祖级列表名称")
private String ancestorNames;
private Integer isLeaf;
}

View File

@ -1,36 +0,0 @@
package com.zhyc.module.base.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 羊只分组关联对象 bas_sheep_group_mapping
*
* @author wyt
* @date 2025-07-16
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BasSheepGroupMapping extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键ID */
@Excel(name = "主键ID")
private Long id;
/** 羊只ID */
@Excel(name = "羊只ID")
private Long sheepId;
/** 分组ID */
@Excel(name = "分组ID")
private Long groupId;
}

View File

@ -1,31 +0,0 @@
package com.zhyc.module.base.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 羊只类型对象 bas_sheep_type
*
* @author ruoyi
* @date 2025-07-22
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BasSheepType extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Integer id;
/** 羊只类型 */
private String name;
}

View File

@ -1,31 +0,0 @@
package com.zhyc.module.base.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 羊只品种对象 bas_sheep_variety
*
* @author ruoyi
* @date 2025-07-15
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BasSheepVariety extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 品种 */
@Excel(name = "品种")
private String variety;
}

View File

@ -1,890 +0,0 @@
package com.zhyc.module.base.domain;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 种公羊档案对象 breed_ram_file
*
* @author zhyc
* @date 2025-07-29
*/
public class BreedRamFile extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 种公羊id */
private Long id;
/** 普通耳号 */
@Excel(name = "普通耳号")
private String ordinaryEarNumber;
/** 牧场id */
@Excel(name = "牧场id")
private Long ranchId;
/** 牧场名称 */
@Excel(name = "牧场名称")
private String ranchName;
/** 羊舍id */
@Excel(name = "羊舍id")
private Long sheepfoldId;
/** 羊舍名称 */
@Excel(name = "羊舍名称")
private String sheepfoldName;
/** 电子耳号 */
@Excel(name = "电子耳号")
private String electronicTags;
/** 品种id */
@Excel(name = "品种id")
private Long varietyId;
/** 品种 */
@Excel(name = "品种")
private String variety;
/** 羊只类别 */
@Excel(name = "羊只类别")
private String sheepCategory;
/** 当前状态 */
@Excel(name = "当前状态")
private String currentStatus;
/** 生日 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
private Date birthday;
/** 动态 */
@Excel(name = "动态")
private String dynamicInfo;
/** 月龄 */
@Excel(name = "月龄")
private Long monthAge;
/** 出生体重 */
@Excel(name = "出生体重")
private BigDecimal birthWeight;
/** 断奶日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "断奶日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date weaningDate;
/** 断奶日龄 */
@Excel(name = "断奶日龄")
private Long weaningDayAge;
/** 断奶体重 */
@Excel(name = "断奶体重")
private BigDecimal weaningWeight;
/** 断奶日增重 */
@Excel(name = "断奶日增重")
private BigDecimal weaningDailyGain;
/** 断奶后日增重 */
@Excel(name = "断奶后日增重")
private BigDecimal postWeaningDailyGain;
/** 当前体重 */
@Excel(name = "当前体重")
private BigDecimal currentWeight;
/** 当前体重称重日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "当前体重称重日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date currentWeightDate;
/** 活动量 */
@Excel(name = "活动量")
private String activityLevel;
/** 性欲情况 */
@Excel(name = "性欲情况")
private String sexualStatus;
/** 阴囊周长 */
@Excel(name = "阴囊周长")
private BigDecimal scrotumCircumference;
/** 采精时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "采精时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date spermCollectionTime;
/** 精液量 */
@Excel(name = "精液量")
private BigDecimal spermVolume;
/** 精液活力 */
@Excel(name = "精液活力")
private String spermVitality;
/** 精液密度 */
@Excel(name = "精液密度")
private String spermDensity;
/** 精液品质 */
@Excel(name = "精液品质")
private String spermQuality;
/** 配种状态 */
@Excel(name = "配种状态")
private Long breedingStatus;
/** 上次计划时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "上次计划时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date lastPlanTime;
/** 本次计划时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "本次计划时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date currentPlanTime;
/** 蛋白率%EBV */
@Excel(name = "蛋白率%EBV")
private BigDecimal proteinRateEbv;
/** 乳脂率%EBV */
@Excel(name = "乳脂率%EBV")
private BigDecimal milkFatRateEbv;
/** 乳体细胞SCSEBV */
@Excel(name = "乳体细胞", readConverterExp = "S=CS")
private BigDecimal scsEbv;
/** 生长性能EBV */
@Excel(name = "生长性能EBV")
private BigDecimal growthPerformanceEbv;
/** 抗逆性EBV */
@Excel(name = "抗逆性EBV")
private BigDecimal resistanceEbv;
/** 繁殖性能EBV */
@Excel(name = "繁殖性能EBV")
private BigDecimal reproductionPerformanceEbv;
/** 体型性状EBV */
@Excel(name = "体型性状EBV")
private BigDecimal bodyTypeEbv;
/** 综合育种值 */
@Excel(name = "综合育种值")
private BigDecimal comprehensiveBreedingValue;
/** 父号 */
@Excel(name = "父号")
private String fatherNumber;
/** 母号 */
@Excel(name = "母号")
private String motherNumber;
/** 祖父 */
@Excel(name = "祖父")
private String grandfatherNumber;
/** 祖母 */
@Excel(name = "祖母")
private String grandmotherNumber;
/** 外祖父 */
@Excel(name = "外祖父")
private String maternalGrandfatherNumber;
/** 外祖母 */
@Excel(name = "外祖母")
private String maternalGrandmotherNumber;
/** 是否核心羊群0否1是 */
@Excel(name = "是否核心羊群", readConverterExp = "0=否,1=是")
private Long isCoreFlock;
/** 是否种用0否1是 */
@Excel(name = "是否种用", readConverterExp = "0=否,1=是")
private Long isBreedingUse;
/** 孕检 */
@Excel(name = "孕检")
private String pregnancyCheck;
/** 总配母羊数 */
@Excel(name = "总配母羊数")
private Long totalMatedEwes;
/** 本交孕检母羊数 */
@Excel(name = "本交孕检母羊数")
private Long naturalPregnancyCheckEwes;
/** 本交受孕率% */
@Excel(name = "本交受孕率%")
private BigDecimal naturalConceptionRate;
/** 人工孕检母羊数 */
@Excel(name = "人工孕检母羊数")
private Long artificialPregnancyCheckEwes;
/** 人工受孕率% */
@Excel(name = "人工受孕率%")
private BigDecimal artificialConceptionRate;
/** 公羊母亲奶量 */
@Excel(name = "公羊母亲奶量")
private BigDecimal ramMotherMilkVolume;
/** 产奶量估计育种值Kg */
@Excel(name = "产奶量估计育种值", readConverterExp = "K=g")
private BigDecimal milkProductionEbv;
/** 准确性 */
@Excel(name = "准确性")
private BigDecimal accuracy;
/** 信息数 */
@Excel(name = "信息数")
private Long informationCount;
/** 是否亲子鉴定0否1是 */
@Excel(name = "是否亲子鉴定", readConverterExp = "0=否,1=是")
private Long isPaternityTested;
/** 是否删除0否1是 */
private Long isDelete;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setOrdinaryEarNumber(String ordinaryEarNumber)
{
this.ordinaryEarNumber = ordinaryEarNumber;
}
public String getOrdinaryEarNumber()
{
return ordinaryEarNumber;
}
public void setRanchId(Long ranchId)
{
this.ranchId = ranchId;
}
public Long getRanchId()
{
return ranchId;
}
public void setRanchName(String ranchName)
{
this.ranchName = ranchName;
}
public String getRanchName()
{
return ranchName;
}
public void setSheepfoldId(Long sheepfoldId)
{
this.sheepfoldId = sheepfoldId;
}
public Long getSheepfoldId()
{
return sheepfoldId;
}
public void setSheepfoldName(String sheepfoldName)
{
this.sheepfoldName = sheepfoldName;
}
public String getSheepfoldName()
{
return sheepfoldName;
}
public void setElectronicTags(String electronicTags)
{
this.electronicTags = electronicTags;
}
public String getElectronicTags()
{
return electronicTags;
}
public void setVarietyId(Long varietyId)
{
this.varietyId = varietyId;
}
public Long getVarietyId()
{
return varietyId;
}
public void setVariety(String variety)
{
this.variety = variety;
}
public String getVariety()
{
return variety;
}
public void setSheepCategory(String sheepCategory)
{
this.sheepCategory = sheepCategory;
}
public String getSheepCategory()
{
return sheepCategory;
}
public void setCurrentStatus(String currentStatus)
{
this.currentStatus = currentStatus;
}
public String getCurrentStatus()
{
return currentStatus;
}
public void setBirthday(Date birthday)
{
this.birthday = birthday;
}
public Date getBirthday()
{
return birthday;
}
public void setDynamicInfo(String dynamicInfo)
{
this.dynamicInfo = dynamicInfo;
}
public String getDynamicInfo()
{
return dynamicInfo;
}
public void setMonthAge(Long monthAge)
{
this.monthAge = monthAge;
}
public Long getMonthAge()
{
return monthAge;
}
public void setBirthWeight(BigDecimal birthWeight)
{
this.birthWeight = birthWeight;
}
public BigDecimal getBirthWeight()
{
return birthWeight;
}
public void setWeaningDate(Date weaningDate)
{
this.weaningDate = weaningDate;
}
public Date getWeaningDate()
{
return weaningDate;
}
public void setWeaningDayAge(Long weaningDayAge)
{
this.weaningDayAge = weaningDayAge;
}
public Long getWeaningDayAge()
{
return weaningDayAge;
}
public void setWeaningWeight(BigDecimal weaningWeight)
{
this.weaningWeight = weaningWeight;
}
public BigDecimal getWeaningWeight()
{
return weaningWeight;
}
public void setWeaningDailyGain(BigDecimal weaningDailyGain)
{
this.weaningDailyGain = weaningDailyGain;
}
public BigDecimal getWeaningDailyGain()
{
return weaningDailyGain;
}
public void setPostWeaningDailyGain(BigDecimal postWeaningDailyGain)
{
this.postWeaningDailyGain = postWeaningDailyGain;
}
public BigDecimal getPostWeaningDailyGain()
{
return postWeaningDailyGain;
}
public void setCurrentWeight(BigDecimal currentWeight)
{
this.currentWeight = currentWeight;
}
public BigDecimal getCurrentWeight()
{
return currentWeight;
}
public void setCurrentWeightDate(Date currentWeightDate)
{
this.currentWeightDate = currentWeightDate;
}
public Date getCurrentWeightDate()
{
return currentWeightDate;
}
public void setActivityLevel(String activityLevel)
{
this.activityLevel = activityLevel;
}
public String getActivityLevel()
{
return activityLevel;
}
public void setSexualStatus(String sexualStatus)
{
this.sexualStatus = sexualStatus;
}
public String getSexualStatus()
{
return sexualStatus;
}
public void setScrotumCircumference(BigDecimal scrotumCircumference)
{
this.scrotumCircumference = scrotumCircumference;
}
public BigDecimal getScrotumCircumference()
{
return scrotumCircumference;
}
public void setSpermCollectionTime(Date spermCollectionTime)
{
this.spermCollectionTime = spermCollectionTime;
}
public Date getSpermCollectionTime()
{
return spermCollectionTime;
}
public void setSpermVolume(BigDecimal spermVolume)
{
this.spermVolume = spermVolume;
}
public BigDecimal getSpermVolume()
{
return spermVolume;
}
public void setSpermVitality(String spermVitality)
{
this.spermVitality = spermVitality;
}
public String getSpermVitality()
{
return spermVitality;
}
public void setSpermDensity(String spermDensity)
{
this.spermDensity = spermDensity;
}
public String getSpermDensity()
{
return spermDensity;
}
public void setSpermQuality(String spermQuality)
{
this.spermQuality = spermQuality;
}
public String getSpermQuality()
{
return spermQuality;
}
public void setBreedingStatus(Long breedingStatus)
{
this.breedingStatus = breedingStatus;
}
public Long getBreedingStatus()
{
return breedingStatus;
}
public void setLastPlanTime(Date lastPlanTime)
{
this.lastPlanTime = lastPlanTime;
}
public Date getLastPlanTime()
{
return lastPlanTime;
}
public void setCurrentPlanTime(Date currentPlanTime)
{
this.currentPlanTime = currentPlanTime;
}
public Date getCurrentPlanTime()
{
return currentPlanTime;
}
public void setProteinRateEbv(BigDecimal proteinRateEbv)
{
this.proteinRateEbv = proteinRateEbv;
}
public BigDecimal getProteinRateEbv()
{
return proteinRateEbv;
}
public void setMilkFatRateEbv(BigDecimal milkFatRateEbv)
{
this.milkFatRateEbv = milkFatRateEbv;
}
public BigDecimal getMilkFatRateEbv()
{
return milkFatRateEbv;
}
public void setScsEbv(BigDecimal scsEbv)
{
this.scsEbv = scsEbv;
}
public BigDecimal getScsEbv()
{
return scsEbv;
}
public void setGrowthPerformanceEbv(BigDecimal growthPerformanceEbv)
{
this.growthPerformanceEbv = growthPerformanceEbv;
}
public BigDecimal getGrowthPerformanceEbv()
{
return growthPerformanceEbv;
}
public void setResistanceEbv(BigDecimal resistanceEbv)
{
this.resistanceEbv = resistanceEbv;
}
public BigDecimal getResistanceEbv()
{
return resistanceEbv;
}
public void setReproductionPerformanceEbv(BigDecimal reproductionPerformanceEbv)
{
this.reproductionPerformanceEbv = reproductionPerformanceEbv;
}
public BigDecimal getReproductionPerformanceEbv()
{
return reproductionPerformanceEbv;
}
public void setBodyTypeEbv(BigDecimal bodyTypeEbv)
{
this.bodyTypeEbv = bodyTypeEbv;
}
public BigDecimal getBodyTypeEbv()
{
return bodyTypeEbv;
}
public void setComprehensiveBreedingValue(BigDecimal comprehensiveBreedingValue)
{
this.comprehensiveBreedingValue = comprehensiveBreedingValue;
}
public BigDecimal getComprehensiveBreedingValue()
{
return comprehensiveBreedingValue;
}
public void setFatherNumber(String fatherNumber)
{
this.fatherNumber = fatherNumber;
}
public String getFatherNumber()
{
return fatherNumber;
}
public void setMotherNumber(String motherNumber)
{
this.motherNumber = motherNumber;
}
public String getMotherNumber()
{
return motherNumber;
}
public void setGrandfatherNumber(String grandfatherNumber)
{
this.grandfatherNumber = grandfatherNumber;
}
public String getGrandfatherNumber()
{
return grandfatherNumber;
}
public void setGrandmotherNumber(String grandmotherNumber)
{
this.grandmotherNumber = grandmotherNumber;
}
public String getGrandmotherNumber()
{
return grandmotherNumber;
}
public void setMaternalGrandfatherNumber(String maternalGrandfatherNumber)
{
this.maternalGrandfatherNumber = maternalGrandfatherNumber;
}
public String getMaternalGrandfatherNumber()
{
return maternalGrandfatherNumber;
}
public void setMaternalGrandmotherNumber(String maternalGrandmotherNumber)
{
this.maternalGrandmotherNumber = maternalGrandmotherNumber;
}
public String getMaternalGrandmotherNumber()
{
return maternalGrandmotherNumber;
}
public void setIsCoreFlock(Long isCoreFlock)
{
this.isCoreFlock = isCoreFlock;
}
public Long getIsCoreFlock()
{
return isCoreFlock;
}
public void setIsBreedingUse(Long isBreedingUse)
{
this.isBreedingUse = isBreedingUse;
}
public Long getIsBreedingUse()
{
return isBreedingUse;
}
public void setPregnancyCheck(String pregnancyCheck)
{
this.pregnancyCheck = pregnancyCheck;
}
public String getPregnancyCheck()
{
return pregnancyCheck;
}
public void setTotalMatedEwes(Long totalMatedEwes)
{
this.totalMatedEwes = totalMatedEwes;
}
public Long getTotalMatedEwes()
{
return totalMatedEwes;
}
public void setNaturalPregnancyCheckEwes(Long naturalPregnancyCheckEwes)
{
this.naturalPregnancyCheckEwes = naturalPregnancyCheckEwes;
}
public Long getNaturalPregnancyCheckEwes()
{
return naturalPregnancyCheckEwes;
}
public void setNaturalConceptionRate(BigDecimal naturalConceptionRate)
{
this.naturalConceptionRate = naturalConceptionRate;
}
public BigDecimal getNaturalConceptionRate()
{
return naturalConceptionRate;
}
public void setArtificialPregnancyCheckEwes(Long artificialPregnancyCheckEwes)
{
this.artificialPregnancyCheckEwes = artificialPregnancyCheckEwes;
}
public Long getArtificialPregnancyCheckEwes()
{
return artificialPregnancyCheckEwes;
}
public void setArtificialConceptionRate(BigDecimal artificialConceptionRate)
{
this.artificialConceptionRate = artificialConceptionRate;
}
public BigDecimal getArtificialConceptionRate()
{
return artificialConceptionRate;
}
public void setRamMotherMilkVolume(BigDecimal ramMotherMilkVolume)
{
this.ramMotherMilkVolume = ramMotherMilkVolume;
}
public BigDecimal getRamMotherMilkVolume()
{
return ramMotherMilkVolume;
}
public void setMilkProductionEbv(BigDecimal milkProductionEbv)
{
this.milkProductionEbv = milkProductionEbv;
}
public BigDecimal getMilkProductionEbv()
{
return milkProductionEbv;
}
public void setAccuracy(BigDecimal accuracy)
{
this.accuracy = accuracy;
}
public BigDecimal getAccuracy()
{
return accuracy;
}
public void setInformationCount(Long informationCount)
{
this.informationCount = informationCount;
}
public Long getInformationCount()
{
return informationCount;
}
public void setIsPaternityTested(Long isPaternityTested)
{
this.isPaternityTested = isPaternityTested;
}
public Long getIsPaternityTested()
{
return isPaternityTested;
}
public void setIsDelete(Long isDelete)
{
this.isDelete = isDelete;
}
public Long getIsDelete()
{
return isDelete;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("ordinaryEarNumber", getOrdinaryEarNumber())
.append("ranchId", getRanchId())
.append("ranchName", getRanchName())
.append("sheepfoldId", getSheepfoldId())
.append("sheepfoldName", getSheepfoldName())
.append("electronicTags", getElectronicTags())
.append("varietyId", getVarietyId())
.append("variety", getVariety())
.append("sheepCategory", getSheepCategory())
.append("currentStatus", getCurrentStatus())
.append("birthday", getBirthday())
.append("dynamicInfo", getDynamicInfo())
.append("monthAge", getMonthAge())
.append("birthWeight", getBirthWeight())
.append("weaningDate", getWeaningDate())
.append("weaningDayAge", getWeaningDayAge())
.append("weaningWeight", getWeaningWeight())
.append("weaningDailyGain", getWeaningDailyGain())
.append("postWeaningDailyGain", getPostWeaningDailyGain())
.append("currentWeight", getCurrentWeight())
.append("currentWeightDate", getCurrentWeightDate())
.append("activityLevel", getActivityLevel())
.append("sexualStatus", getSexualStatus())
.append("scrotumCircumference", getScrotumCircumference())
.append("spermCollectionTime", getSpermCollectionTime())
.append("spermVolume", getSpermVolume())
.append("spermVitality", getSpermVitality())
.append("spermDensity", getSpermDensity())
.append("spermQuality", getSpermQuality())
.append("breedingStatus", getBreedingStatus())
.append("lastPlanTime", getLastPlanTime())
.append("currentPlanTime", getCurrentPlanTime())
.append("remark", getRemark())
.append("proteinRateEbv", getProteinRateEbv())
.append("milkFatRateEbv", getMilkFatRateEbv())
.append("scsEbv", getScsEbv())
.append("growthPerformanceEbv", getGrowthPerformanceEbv())
.append("resistanceEbv", getResistanceEbv())
.append("reproductionPerformanceEbv", getReproductionPerformanceEbv())
.append("bodyTypeEbv", getBodyTypeEbv())
.append("comprehensiveBreedingValue", getComprehensiveBreedingValue())
.append("fatherNumber", getFatherNumber())
.append("motherNumber", getMotherNumber())
.append("grandfatherNumber", getGrandfatherNumber())
.append("grandmotherNumber", getGrandmotherNumber())
.append("maternalGrandfatherNumber", getMaternalGrandfatherNumber())
.append("maternalGrandmotherNumber", getMaternalGrandmotherNumber())
.append("isCoreFlock", getIsCoreFlock())
.append("isBreedingUse", getIsBreedingUse())
.append("pregnancyCheck", getPregnancyCheck())
.append("totalMatedEwes", getTotalMatedEwes())
.append("naturalPregnancyCheckEwes", getNaturalPregnancyCheckEwes())
.append("naturalConceptionRate", getNaturalConceptionRate())
.append("artificialPregnancyCheckEwes", getArtificialPregnancyCheckEwes())
.append("artificialConceptionRate", getArtificialConceptionRate())
.append("ramMotherMilkVolume", getRamMotherMilkVolume())
.append("milkProductionEbv", getMilkProductionEbv())
.append("accuracy", getAccuracy())
.append("informationCount", getInformationCount())
.append("isPaternityTested", getIsPaternityTested())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("isDelete", getIsDelete())
.toString();
}
}

View File

@ -1,31 +0,0 @@
package com.zhyc.module.base.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 牧场管理对象 da_ranch
*
* @author ruoyi
* @date 2025-07-22
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DaRanch extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 牧场名称 */
private String ranch;
}

View File

@ -1,57 +0,0 @@
package com.zhyc.module.base.domain;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 羊舍管理对象 da_sheepfold
*
* @author wyt
* @date 2025-07-11
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DaSheepfold extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 羊舍id */
@Excel(name = "羊舍id")
private Long id;
/** 牧场 */
@Excel(name = "牧场")
private Long ranchId;
/** 羊舍名称 */
@Excel(name = "羊舍名称")
private String sheepfoldName;
/** 羊舍类型id */
@Excel(name = "羊舍类型id")
private Long sheepfoldTypeId;
/** 羊舍编号 */
@Excel(name = "羊舍编号")
private String sheepfoldNo;
/** 排号 */
@Excel(name = "排号")
private String rowNo;
/** 栏数 */
@Excel(name = "栏数")
private String columns;
/** 备注 */
@Excel(name = "备注")
private String comment;
}

View File

@ -1,273 +0,0 @@
package com.zhyc.module.base.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
/**
* 羊只档案对象 sheep_file
*
* @author wyt
* @date 2025-07-13
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SheepFile extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 羊只id */
private Long id;
/** 管理耳号 */
@Excel(name = "管理耳号")
private String bsManageTags;
/** 牧场id */
@Excel(name = "牧场id")
private Long ranchId;
/** 牧场名称 */
@Excel(name = "牧场名称")
private String drRanch;
/** 羊舍id */
@Excel(name = "羊舍id")
private Long sheepfoldId;
/** 羊舍名称 */
@Excel(name = "羊舍名称")
private String sheepfoldName;
/** 电子耳号 */
@Excel(name = "电子耳号")
private String electronicTags;
/** 品种id */
@Excel(name = "品种id")
private Long varietyId;
/** 品种 */
@Excel(name = "品种")
private String variety;
/** 家系 */
@Excel(name = "家系")
private String family;
/** 羊只类型 */
@Excel(name = "羊只类型")
private String name;
/** 性别 */
@Excel(name = "性别")
private Long gender;
/** 出生日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date birthday;
/** 日龄 */
@Excel(name = "日龄")
private Long dayAge;
/** 月龄 */
@Excel(name = "月龄")
private Long monthAge;
/** 胎次 */
@Excel(name = "胎次")
private Long parity;
/** 出生体重 */
@Excel(name = "出生体重")
private Long birthWeight;
/** 断奶日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "断奶日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date weaningDate;
/** 羊只状态 */
@Excel(name = "羊只状态")
private Long statusId;
/** 断奶体重 */
@Excel(name = "断奶体重")
private Long weaningWeight;
/** 当前体重 */
@Excel(name = "当前体重")
private Long currentWeight;
/** 繁育状态id */
@Excel(name = "繁育状态id")
private Long breedStatusId;
/** 繁殖状态 */
@Excel(name = "繁殖状态")
private String breed;
/** 父号id */
@Excel(name = "父号id")
private Long bsFatherId;
/** 父亲管理耳号 */
@Excel(name = "父亲管理耳号")
private String fatherManageTags;
/** 母号id */
@Excel(name = "母号id")
private Long bsMotherId;
/** 母亲管理耳号 */
@Excel(name = "母亲管理耳号")
private String motherManageTags;
/** 受体id */
@Excel(name = "受体id")
private Long receptorId;
/** 受体管理耳号 */
@Excel(name = "受体管理耳号")
private String receptorManageTags;
/** 祖父号id */
@Excel(name = "祖父号id")
private Long fatherFatherId;
/** 祖父管理耳号 */
@Excel(name = "祖父管理耳号")
private String grandfatherManageTags;
/** 祖母号id */
@Excel(name = "祖母号id")
private Long fatherMotherId;
/** 祖母管理耳号 */
@Excel(name = "祖母管理耳号")
private String grandmotherManageTags;
/** 外祖父号id */
@Excel(name = "外祖父号id")
private Long fatherId;
/** 外祖父管理耳号 */
@Excel(name = "外祖父管理耳号")
private String maternalGrandfatherManageTags;
/** 外祖母号id */
@Excel(name = "外祖母号id")
private Long motherId;
/** 外祖母管理耳号 */
@Excel(name = "外祖母管理耳号")
private String maternalGrandmotherManageTags;
/** 配种日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "配种日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date matingDate;
/** 配种类型 */
@Excel(name = "配种类型")
private Long matingTypeId;
/** 孕检日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "孕检日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date pregDate;
/** 产羔日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "产羔日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date lambingDate;
/** 产羔时怀孕天数 */
@Excel(name = "产羔时怀孕天数")
private Long lambingDay;
/** 配后天数 */
@Excel(name = "配后天数")
private Long matingDay;
/** 怀孕天数 */
@Excel(name = "怀孕天数")
private Long gestationDay;
/** 预产日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "预产日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date expectedDate;
/** 产后天数 */
@Excel(name = "产后天数")
private Long postLambingDay;
/** 泌乳天数 */
@Excel(name = "泌乳天数")
private Long lactationDay;
/** 空怀天数 */
@Excel(name = "空怀天数")
private Long anestrousDay;
/** 配种次数 */
@Excel(name = "配种次数")
private Long matingCounts;
/** 累计配种次数 */
@Excel(name = "累计配种次数")
private Long matingTotal;
/** 累计流产次数 */
@Excel(name = "累计流产次数")
private Long miscarriageCounts;
/** 备注 */
@Excel(name = "备注")
private String comment;
/** 是否性控 */
@Excel(name = "是否性控")
private Long controlled;
/** 体况评分 */
@Excel(name = "体况评分")
private Long body;
/** 乳房评分 */
@Excel(name = "乳房评分")
private Long breast;
/** 入群来源 */
@Excel(name = "入群来源")
private String source;
/** 入群日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "入群日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date sourceDate;
/** 来源牧场id */
@Excel(name = "来源牧场id")
private Long sourceRanchId;
/** 来源牧场 */
@Excel(name = "来源牧场")
private String sourceRanch;
/** 是否删除 */
private Long isDelete;
}

View File

@ -1,67 +0,0 @@
package com.zhyc.module.base.mapper;
import com.zhyc.module.base.domain.BasSheepGroup;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 分组管理Mapper接口
*
* @author wyt
* @date 2025-07-14
*/
@Mapper
public interface BasSheepGroupMapper
{
/**
* 查询分组管理
*
* @param groupId 分组管理主键
* @return 分组管理
*/
public BasSheepGroup selectBasSheepGroupByGroupId(Long groupId);
/**
* 查询分组管理列表
*
* @param basSheepGroup 分组管理
* @return 分组管理集合
*/
public List<BasSheepGroup> selectBasSheepGroupList(BasSheepGroup basSheepGroup);
/**
* 新增分组管理
*
* @param basSheepGroup 分组管理
* @return 结果
*/
public int insertBasSheepGroup(BasSheepGroup basSheepGroup);
/**
* 修改分组管理
*
* @param basSheepGroup 分组管理
* @return 结果
*/
public int updateBasSheepGroup(BasSheepGroup basSheepGroup);
/**
* 删除分组管理
*
* @param groupId 分组管理主键
* @return 结果
*/
public int deleteBasSheepGroupByGroupId(Long groupId);
/**
* 批量删除分组管理
*
* @param groupIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteBasSheepGroupByGroupIds(Long[] groupIds);
List<BasSheepGroup> selectLeafNodes();
}

View File

@ -1,88 +0,0 @@
package com.zhyc.module.base.mapper;
import java.util.List;
import java.util.Map;
import com.zhyc.module.base.domain.BasSheepGroupMapping;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* 羊只分组关联Mapper接口
*
* @author wyt
* @date 2025-07-16
*/
@Mapper
public interface BasSheepGroupMappingMapper
{
/**
* 查询羊只分组关联
*
* @param id 羊只分组关联主键
* @return 羊只分组关联
*/
public BasSheepGroupMapping selectBasSheepGroupMappingById(Long id);
/**
* 查询羊只分组关联列表
*
* @param basSheepGroupMapping 羊只分组关联
* @return 羊只分组关联集合
*/
public List<BasSheepGroupMapping> selectBasSheepGroupMappingList(BasSheepGroupMapping basSheepGroupMapping);
/**
* 联表查询羊只分组关联列表支持耳号列表
*/
List<Map<String, Object>> selectBasSheepGroupMappingList(
@Param("sheepId") Long sheepId,
@Param("groupId") Long groupId,
@Param("bsManageTags") List<String> bsManageTags
);
/**
* 新增羊只分组关联
*
* @param basSheepGroupMapping 羊只分组关联
* @return 结果
*/
public int insertBasSheepGroupMapping(BasSheepGroupMapping basSheepGroupMapping);
/**
* 修改羊只分组关联
*
* @param basSheepGroupMapping 羊只分组关联
* @return 结果
*/
public int updateBasSheepGroupMapping(BasSheepGroupMapping basSheepGroupMapping);
/**
* 删除羊只分组关联
*
* @param id 羊只分组关联主键
* @return 结果
*/
public int deleteBasSheepGroupMappingById(Long id);
/**
* 批量删除羊只分组关联
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteBasSheepGroupMappingByIds(Long[] ids);
List<Map<String, Object>> selectSheepIdsByEarTags(@Param("earTags") List<String> earTags);
int batchInsert(@Param("list") List<BasSheepGroupMapping> list);
List<BasSheepGroupMapping> selectListByGroupId(@Param("groupId") Long groupId);
}

View File

@ -1,83 +0,0 @@
package com.zhyc.module.base.mapper;
import java.util.List;
import com.zhyc.module.base.domain.BasSheep;
import org.apache.ibatis.annotations.Param;
/**
* 羊只基本信息Mapper接口
*
* @author ruoyi
* @date 2025-07-15
*/
public interface BasSheepMapper
{
/**
* 查询羊只基本信息
*
* @param id 羊只基本信息主键
* @return 羊只基本信息
*/
public BasSheep selectBasSheepById(Long id);
/**
* 查询羊只基本信息列表
*
* @param basSheep 羊只基本信息
* @return 羊只基本信息集合
*/
public List<BasSheep> selectBasSheepList(BasSheep basSheep);
/**
* 新增羊只基本信息
*
* @param basSheep 羊只基本信息
* @return 结果
*/
public int insertBasSheep(BasSheep basSheep);
/**
* 修改羊只基本信息
*
* @param basSheep 羊只基本信息
* @return 结果
*/
public int updateBasSheep(BasSheep basSheep);
/**
* 删除羊只基本信息
*
* @param id 羊只基本信息主键
* @return 结果
*/
public int deleteBasSheepById(Long id);
/**
* 批量删除羊只基本信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteBasSheepByIds(Long[] ids);
/**
* 根据管理耳号查询
*/
BasSheep selectBasSheepByManageTags(String manageTags);
List<BasSheep> selectBasSheepBySheepfold(String id);
// 根据牧场ID获取羊只列表
List<BasSheep> getSheepByRanchId(Long ranchId);
List<BasSheep> selectBasSheepListByIds(List<Long> ids);
//用于校验改耳号部分新管理/电子耳号
int existsByManageTag(@Param("tag") String tag);
int existsByElectronicTag(@Param("tag") String tag);
}

View File

@ -1,61 +0,0 @@
package com.zhyc.module.base.mapper;
import java.util.List;
import com.zhyc.module.base.domain.BasSheepType;
/**
* 羊只类型Mapper接口
*
* @author ruoyi
* @date 2025-07-22
*/
public interface BasSheepTypeMapper
{
/**
* 查询羊只类型
*
* @param id 羊只类型主键
* @return 羊只类型
*/
public BasSheepType selectBasSheepTypeById(Integer id);
/**
* 查询羊只类型列表
*
* @param basSheepType 羊只类型
* @return 羊只类型集合
*/
public List<BasSheepType> selectBasSheepTypeList(BasSheepType basSheepType);
/**
* 新增羊只类型
*
* @param basSheepType 羊只类型
* @return 结果
*/
public int insertBasSheepType(BasSheepType basSheepType);
/**
* 修改羊只类型
*
* @param basSheepType 羊只类型
* @return 结果
*/
public int updateBasSheepType(BasSheepType basSheepType);
/**
* 删除羊只类型
*
* @param id 羊只类型主键
* @return 结果
*/
public int deleteBasSheepTypeById(Integer id);
/**
* 批量删除羊只类型
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteBasSheepTypeByIds(Integer[] ids);
}

View File

@ -1,75 +0,0 @@
package com.zhyc.module.base.mapper;
import java.util.List;
import com.zhyc.module.base.domain.BasSheepVariety;
import org.apache.ibatis.annotations.Mapper;
/**
* 羊只品种Mapper接口
*
* @author ruoyi
* @date 2025-07-15
*/
@Mapper
public interface BasSheepVarietyMapper
{
/**
* 查询羊只品种
*
* @param id 羊只品种主键
* @return 羊只品种
*/
public BasSheepVariety selectBasSheepVarietyById(Long id);
/**
* 查询羊只品种列表
*
* @param basSheepVariety 羊只品种
* @return 羊只品种集合
*/
public List<BasSheepVariety> selectBasSheepVarietyList(BasSheepVariety basSheepVariety);
/**
* 新增羊只品种
*
* @param basSheepVariety 羊只品种
* @return 结果
*/
public int insertBasSheepVariety(BasSheepVariety basSheepVariety);
/**
* 修改羊只品种
*
* @param basSheepVariety 羊只品种
* @return 结果
*/
public int updateBasSheepVariety(BasSheepVariety basSheepVariety);
/**
* 删除羊只品种
*
* @param id 羊只品种主键
* @return 结果
*/
public int deleteBasSheepVarietyById(Long id);
/**
* 批量删除羊只品种
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteBasSheepVarietyByIds(Long[] ids);
/**
* 根据品种名称查询品种 ID 用于导入羊只
*
* @param varietyName 品种名称
* @return 品种 ID
*/
Long selectIdByName(String varietyName);
BasSheepVariety selectByVarietyName(String varietyName);
}

View File

@ -1,109 +0,0 @@
package com.zhyc.module.base.mapper;
import java.util.List;
import com.zhyc.module.base.domain.BreedRamFile;
/**
* 种公羊档案Mapper接口
*
* @author zhyc
* @date 2025-07-29
*/
public interface BreedRamFileMapper
{
/**
* 查询种公羊档案
*
* @param id 种公羊档案主键
* @return 种公羊档案
*/
public BreedRamFile selectBreedRamFileById(Long id);
/**
* 查询种公羊档案列表
*
* @param breedRamFile 种公羊档案
* @return 种公羊档案集合
*/
public List<BreedRamFile> selectBreedRamFileList(BreedRamFile breedRamFile);
/**
* 新增种公羊档案
*
* @param breedRamFile 种公羊档案
* @return 结果
*/
public int insertBreedRamFile(BreedRamFile breedRamFile);
/**
* 修改种公羊档案
*
* @param breedRamFile 种公羊档案
* @return 结果
*/
public int updateBreedRamFile(BreedRamFile breedRamFile);
/**
* 删除种公羊档案
*
* @param id 种公羊档案主键
* @return 结果
*/
public int deleteBreedRamFileById(Long id);
/**
* 批量删除种公羊档案
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteBreedRamFileByIds(Long[] ids);
/**
* 根据普通耳号查询种公羊档案
*
* @param ordinaryEarNumber 普通耳号
* @return 种公羊档案
*/
public BreedRamFile selectBreedRamFileByOrdinaryEarNumber(String ordinaryEarNumber);
/**
* 根据电子耳号查询种公羊档案
*
* @param electronicTags 电子耳号
* @return 种公羊档案
*/
public BreedRamFile selectBreedRamFileByElectronicTags(String electronicTags);
/**
* 根据牧场ID查询种公羊档案列表
*
* @param ranchId 牧场ID
* @return 种公羊档案集合
*/
public List<BreedRamFile> selectBreedRamFileListByRanchId(Long ranchId);
/**
* 根据羊舍ID查询种公羊档案列表
*
* @param sheepfoldId 羊舍ID
* @return 种公羊档案集合
*/
public List<BreedRamFile> selectBreedRamFileListBySheepfoldId(Long sheepfoldId);
/**
* 查询核心羊群种公羊档案列表
*
* @param breedRamFile 种公羊档案
* @return 种公羊档案集合
*/
public List<BreedRamFile> selectCoreFlockBreedRamFileList(BreedRamFile breedRamFile);
/**
* 查询种用种公羊档案列表
*
* @param breedRamFile 种公羊档案
* @return 种公羊档案集合
*/
public List<BreedRamFile> selectBreedingUseBreedRamFileList(BreedRamFile breedRamFile);
}

View File

@ -1,61 +0,0 @@
package com.zhyc.module.base.mapper;
import java.util.List;
import com.zhyc.module.base.domain.DaRanch;
/**
* 牧场管理Mapper接口
*
* @author ruoyi
* @date 2025-07-22
*/
public interface DaRanchMapper
{
/**
* 查询牧场管理
*
* @param id 牧场管理主键
* @return 牧场管理
*/
public DaRanch selectDaRanchById(Long id);
/**
* 查询牧场管理列表
*
* @param daRanch 牧场管理
* @return 牧场管理集合
*/
public List<DaRanch> selectDaRanchList(DaRanch daRanch);
/**
* 新增牧场管理
*
* @param daRanch 牧场管理
* @return 结果
*/
public int insertDaRanch(DaRanch daRanch);
/**
* 修改牧场管理
*
* @param daRanch 牧场管理
* @return 结果
*/
public int updateDaRanch(DaRanch daRanch);
/**
* 删除牧场管理
*
* @param id 牧场管理主键
* @return 结果
*/
public int deleteDaRanchById(Long id);
/**
* 批量删除牧场管理
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDaRanchByIds(Long[] ids);
}

View File

@ -1,67 +0,0 @@
package com.zhyc.module.base.mapper;
import com.zhyc.module.base.domain.DaSheepfold;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 羊舍管理Mapper接口
*
* @author wyt
* @date 2025-07-11
*/
@Mapper
public interface DaSheepfoldMapper
{
/**
* 查询羊舍管理
*
* @param id 羊舍管理主键
* @return 羊舍管理
*/
public DaSheepfold selectDaSheepfoldById(Long id);
/**
* 查询羊舍管理列表
*
* @param daSheepfold 羊舍管理
* @return 羊舍管理集合
*/
public List<DaSheepfold> selectDaSheepfoldList(DaSheepfold daSheepfold);
/**
* 新增羊舍管理
*
* @param daSheepfold 羊舍管理
* @return 结果
*/
public int insertDaSheepfold(DaSheepfold daSheepfold);
/**
* 修改羊舍管理
*
* @param daSheepfold 羊舍管理
* @return 结果
*/
public int updateDaSheepfold(DaSheepfold daSheepfold);
/**
* 删除羊舍管理
*
* @param id 羊舍管理主键
* @return 结果
*/
public int deleteDaSheepfoldById(Long id);
/**
* 批量删除羊舍管理
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDaSheepfoldByIds(Long[] ids);
public int selectCount(DaSheepfold daSheepfold);
}

View File

@ -1,63 +0,0 @@
package com.zhyc.module.base.mapper;
import com.zhyc.module.base.domain.SheepFile;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Map;
/**
* 羊只档案Mapper接口
*
* @author wyt
* @date 2025-07-13
*/
@Mapper
public interface SheepFileMapper
{
/**
* 查询羊只档案
*
* @param id 羊只档案主键
* @return 羊只档案
*/
public SheepFile selectSheepFileById(Long id);
/**
* 查询羊只档案列表
*
* @param sheepFile 羊只档案
* @return 羊只档案集合
*/
public List<SheepFile> selectSheepFileList(SheepFile sheepFile);
/**
* 根据管理耳号查询
*
* @param tags 管理耳号
* @return 结果
*/
SheepFile selectSheepByManageTags(String tags);
// 在群羊只总数
Long countInGroup();
// 羊只类别分布 name 分组
List<Map<String,Object>> countBySheepType();
// 繁育状态分布 breed 分组
List<Map<String,Object>> countByBreedStatus();
// 品种分布 variety 分组
List<Map<String,Object>> countByVariety();
// 泌乳羊胎次分布name = '泌乳羊' 时按 parity 分组
List<Map<String,Object>> countParityOfLactation();
}

View File

@ -1,73 +0,0 @@
package com.zhyc.module.base.service;
import java.util.List;
import java.util.Map;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.module.base.domain.BasSheepGroupMapping;
/**
* 羊只分组关联Service接口
*
* @author wyt
* @date 2025-07-16
*/
public interface IBasSheepGroupMappingService
{
/**
* 查询羊只分组关联
*
* @param id 羊只分组关联主键
* @return 羊只分组关联
*/
public BasSheepGroupMapping selectBasSheepGroupMappingById(Long id);
/**
* 查询羊只分组关联列表
*
* @param basSheepGroupMapping 羊只分组关联
* @return 羊只分组关联集合
*/
public List<BasSheepGroupMapping> selectBasSheepGroupMappingList(BasSheepGroupMapping basSheepGroupMapping);
/**
* 联表查询羊只分组关联列表支持耳号列表
*/
List<Map<String, Object>> selectBasSheepGroupMappingList(Long sheepId, Long groupId, List<String> bsManageTags);
/**
* 新增羊只分组关联
*
* @param basSheepGroupMapping 羊只分组关联
* @return 结果
*/
public int insertBasSheepGroupMapping(BasSheepGroupMapping basSheepGroupMapping);
/**
* 修改羊只分组关联
*
* @param basSheepGroupMapping 羊只分组关联
* @return 结果
*/
public int updateBasSheepGroupMapping(BasSheepGroupMapping basSheepGroupMapping);
/**
* 批量删除羊只分组关联
*
* @param ids 需要删除的羊只分组关联主键集合
* @return 结果
*/
public int deleteBasSheepGroupMappingByIds(Long[] ids);
/**
* 删除羊只分组关联信息
*
* @param id 羊只分组关联主键
* @return 结果
*/
public int deleteBasSheepGroupMappingById(Long id);
public AjaxResult addByEarTags(List<String> earTags, Long groupId);
}

View File

@ -1,64 +0,0 @@
package com.zhyc.module.base.service;
import com.zhyc.module.base.domain.BasSheepGroup;
import java.util.List;
/**
* 分组管理Service接口
*
* @author wyt
* @date 2025-07-14
*/
public interface IBasSheepGroupService
{
/**
* 查询分组管理
*
* @param groupId 分组管理主键
* @return 分组管理
*/
public BasSheepGroup selectBasSheepGroupByGroupId(Long groupId);
/**
* 查询分组管理列表
*
* @param basSheepGroup 分组管理
* @return 分组管理集合
*/
public List<BasSheepGroup> selectBasSheepGroupList(BasSheepGroup basSheepGroup);
/**
* 新增分组管理
*
* @param basSheepGroup 分组管理
* @return 结果
*/
public int insertBasSheepGroup(BasSheepGroup basSheepGroup);
/**
* 修改分组管理
*
* @param basSheepGroup 分组管理
* @return 结果
*/
public int updateBasSheepGroup(BasSheepGroup basSheepGroup);
/**
* 批量删除分组管理
*
* @param groupIds 需要删除的分组管理主键集合
* @return 结果
*/
public int deleteBasSheepGroupByGroupIds(Long[] groupIds);
/**
* 删除分组管理信息
*
* @param groupId 分组管理主键
* @return 结果
*/
public int deleteBasSheepGroupByGroupId(Long groupId);
List<BasSheepGroup> selectLeafNodes();
}

View File

@ -1,77 +0,0 @@
package com.zhyc.module.base.service;
import java.util.List;
import com.zhyc.module.base.domain.BasSheep;
/**
* 羊只基本信息Service接口
*
* @author ruoyi
* @date 2025-07-15
*/
public interface IBasSheepService
{
/**
* 查询羊只基本信息
*
* @param id 羊只基本信息主键
* @return 羊只基本信息
*/
public BasSheep selectBasSheepById(Long id);
/**
* 查询羊只基本信息列表
*
* @param basSheep 羊只基本信息
* @return 羊只基本信息集合
*/
public List<BasSheep> selectBasSheepList(BasSheep basSheep);
/**
* 新增羊只基本信息
*
* @param basSheep 羊只基本信息
* @return 结果
*/
public int insertBasSheep(BasSheep basSheep);
/**
* 修改羊只基本信息
*
* @param basSheep 羊只基本信息
* @return 结果
*/
public int updateBasSheep(BasSheep basSheep);
/**
* 批量删除羊只基本信息
*
* @param ids 需要删除的羊只基本信息主键集合
* @return 结果
*/
public int deleteBasSheepByIds(Long[] ids);
/**
* 删除羊只基本信息信息
*
* @param id 羊只基本信息主键
* @return 结果
*/
public int deleteBasSheepById(Long id);
/**
* 根据羊只耳号获取羊只
*/
BasSheep selectBasSheepByManageTags(String trim);
/**
* 根据牧场ID获取羊只列表
*/
List<BasSheep> getSheepByRanchId(Long ranchId);
List<BasSheep> selectBasSheepListByIds(List<Long> ids);
//校验新管理/电子耳号
boolean existsByTag(String tag, Integer earType);
}

View File

@ -1,65 +0,0 @@
package com.zhyc.module.base.service;
import java.util.List;
import com.zhyc.module.base.domain.BasSheep;
import com.zhyc.module.base.domain.BasSheepType;
/**
* 羊只类型Service接口
*
* @author ruoyi
* @date 2025-07-22
*/
public interface IBasSheepTypeService
{
/**
* 查询羊只类型
*
* @param id 羊只类型主键
* @return 羊只类型
*/
public BasSheepType selectBasSheepTypeById(Integer id);
/**
* 查询羊只类型列表
*
* @param basSheepType 羊只类型
* @return 羊只类型集合
*/
public List<BasSheepType> selectBasSheepTypeList(BasSheepType basSheepType);
/**
* 新增羊只类型
*
* @param basSheepType 羊只类型
* @return 结果
*/
public int insertBasSheepType(BasSheepType basSheepType);
/**
* 修改羊只类型
*
* @param basSheepType 羊只类型
* @return 结果
*/
public int updateBasSheepType(BasSheepType basSheepType);
/**
* 批量删除羊只类型
*
* @param ids 需要删除的羊只类型主键集合
* @return 结果
*/
public int deleteBasSheepTypeByIds(Integer[] ids);
/**
* 删除羊只类型信息
*
* @param id 羊只类型主键
* @return 结果
*/
public int deleteBasSheepTypeById(Integer id);
}

View File

@ -1,67 +0,0 @@
package com.zhyc.module.base.service;
import java.util.List;
import com.zhyc.module.base.domain.BasSheepVariety;
/**
* 羊只品种Service接口
*
* @author ruoyi
* @date 2025-07-15
*/
public interface IBasSheepVarietyService
{
/**
* 查询羊只品种
*
* @param id 羊只品种主键
* @return 羊只品种
*/
public BasSheepVariety selectBasSheepVarietyById(Long id);
/**
* 查询羊只品种列表
*
* @param basSheepVariety 羊只品种
* @return 羊只品种集合
*/
public List<BasSheepVariety> selectBasSheepVarietyList(BasSheepVariety basSheepVariety);
/**
* 新增羊只品种
*
* @param basSheepVariety 羊只品种
* @return 结果
*/
public int insertBasSheepVariety(BasSheepVariety basSheepVariety);
/**
* 修改羊只品种
*
* @param basSheepVariety 羊只品种
* @return 结果
*/
public int updateBasSheepVariety(BasSheepVariety basSheepVariety);
/**
* 批量删除羊只品种
*
* @param ids 需要删除的羊只品种主键集合
* @return 结果
*/
public int deleteBasSheepVarietyByIds(Long[] ids);
/**
* 删除羊只品种信息
*
* @param id 羊只品种主键
* @return 结果
*/
public int deleteBasSheepVarietyById(Long id);
// 根据品种名称查询品种
public BasSheepVariety selectByVarietyName(String varietyName);
}

View File

@ -1,61 +0,0 @@
package com.zhyc.module.base.service;
import java.util.List;
import com.zhyc.module.base.domain.BreedRamFile;
/**
* 种公羊档案Service接口
*
* @author zhyc
* @date 2025-07-29
*/
public interface IBreedRamFileService
{
/**
* 查询种公羊档案
*
* @param id 种公羊档案主键
* @return 种公羊档案
*/
public BreedRamFile selectBreedRamFileById(Long id);
/**
* 查询种公羊档案列表
*
* @param breedRamFile 种公羊档案
* @return 种公羊档案集合
*/
public List<BreedRamFile> selectBreedRamFileList(BreedRamFile breedRamFile);
/**
* 新增种公羊档案
*
* @param breedRamFile 种公羊档案
* @return 结果
*/
public int insertBreedRamFile(BreedRamFile breedRamFile);
/**
* 修改种公羊档案
*
* @param breedRamFile 种公羊档案
* @return 结果
*/
public int updateBreedRamFile(BreedRamFile breedRamFile);
/**
* 批量删除种公羊档案
*
* @param ids 需要删除的种公羊档案主键集合
* @return 结果
*/
public int deleteBreedRamFileByIds(Long[] ids);
/**
* 删除种公羊档案信息
*
* @param id 种公羊档案主键
* @return 结果
*/
public int deleteBreedRamFileById(Long id);
}

View File

@ -1,61 +0,0 @@
package com.zhyc.module.base.service;
import java.util.List;
import com.zhyc.module.base.domain.DaRanch;
/**
* 牧场管理Service接口
*
* @author ruoyi
* @date 2025-07-22
*/
public interface IDaRanchService
{
/**
* 查询牧场管理
*
* @param id 牧场管理主键
* @return 牧场管理
*/
public DaRanch selectDaRanchById(Long id);
/**
* 查询牧场管理列表
*
* @param daRanch 牧场管理
* @return 牧场管理集合
*/
public List<DaRanch> selectDaRanchList(DaRanch daRanch);
/**
* 新增牧场管理
*
* @param daRanch 牧场管理
* @return 结果
*/
public int insertDaRanch(DaRanch daRanch);
/**
* 修改牧场管理
*
* @param daRanch 牧场管理
* @return 结果
*/
public int updateDaRanch(DaRanch daRanch);
/**
* 批量删除牧场管理
*
* @param ids 需要删除的牧场管理主键集合
* @return 结果
*/
public int deleteDaRanchByIds(Long[] ids);
/**
* 删除牧场管理信息
*
* @param id 牧场管理主键
* @return 结果
*/
public int deleteDaRanchById(Long id);
}

View File

@ -1,76 +0,0 @@
package com.zhyc.module.base.service;
import com.zhyc.module.base.domain.BasSheep;
import com.zhyc.module.base.domain.DaSheepfold;
import java.util.List;
/**
* 羊舍管理Service接口
*
* @author wyt
* @date 2025-07-11
*/
public interface IDaSheepfoldService
{
/**
* 查询羊舍管理
*
* @param id 羊舍管理主键
* @return 羊舍管理
*/
public DaSheepfold selectDaSheepfoldById(Long id);
/**
* 查询羊舍管理列表
*
* @param daSheepfold 羊舍管理
* @return 羊舍管理集合
*/
public List<DaSheepfold> selectDaSheepfoldList(DaSheepfold daSheepfold);
/**
* 新增羊舍管理
*
* @param daSheepfold 羊舍管理
* @return 结果
*/
public int insertDaSheepfold(DaSheepfold daSheepfold);
/**
* 修改羊舍管理
*
* @param daSheepfold 羊舍管理
* @return 结果
*/
public int updateDaSheepfold(DaSheepfold daSheepfold);
/**
* 批量删除羊舍管理
*
* @param ids 需要删除的羊舍管理主键集合
* @return 结果
*/
public int deleteDaSheepfoldByIds(Long[] ids);
/**
* 删除羊舍管理信息
*
* @param id 羊舍管理主键
* @return 结果
*/
public int deleteDaSheepfoldById(Long id);
/**
* 检查羊舍编号是否已存在
*
* @param ranchId 羊舍所属牧场ID
* @param sheepfoldTypeId 羊舍类型ID
* @param sheepfoldNo 羊舍编号
* @return 是否已存在
*/
boolean checkSheepfoldNoExist(Long ranchId, Long sheepfoldTypeId, String sheepfoldNo);
// 根据羊舍id获取该羊舍的羊
List<BasSheep> sheepListById(String id);
}

View File

@ -1,41 +0,0 @@
package com.zhyc.module.base.service;
import com.zhyc.module.base.domain.SheepFile;
import java.util.List;
import java.util.Map;
/**
* 羊只档案Service接口
*
* @author wyt
* @date 2025-07-13
*/
public interface ISheepFileService
{
/**
* 查询羊只档案
*
* @param id 羊只档案主键
* @return 羊只档案
*/
public SheepFile selectSheepFileById(Long id);
/**
* 查询羊只档案列表
*
* @param sheepFile 羊只档案
* @return 羊只档案集合
*/
public List<SheepFile> selectSheepFileList(SheepFile sheepFile);
SheepFile selectBasSheepByManageTags(String trim);
Long countInGroup();
List<Map<String,Object>> countBySheepType();
List<Map<String,Object>> countByBreedStatus();
List<Map<String,Object>> countByVariety();
List<Map<String,Object>> countParityOfLactation();
}

View File

@ -1,189 +0,0 @@
package com.zhyc.module.base.service.impl;
import java.util.*;
import java.util.stream.Collectors;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.module.base.domain.BasSheepGroupMapping;
import com.zhyc.module.base.mapper.BasSheepGroupMappingMapper;
import com.zhyc.module.base.service.IBasSheepGroupMappingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* 羊只分组关联Service业务层处理
*
* @author wyt
* @date 2025-07-16
*/
@Service
public class BasSheepGroupMappingServiceImpl implements IBasSheepGroupMappingService
{
@Autowired
private BasSheepGroupMappingMapper basSheepGroupMappingMapper;
/**
* 查询羊只分组关联
*
* @param id 羊只分组关联主键
* @return 羊只分组关联
*/
@Override
public BasSheepGroupMapping selectBasSheepGroupMappingById(Long id)
{
return basSheepGroupMappingMapper.selectBasSheepGroupMappingById(id);
}
/**
* 查询羊只分组关联列表
*
* @param basSheepGroupMapping 羊只分组关联
* @return 羊只分组关联
*/
@Override
public List<BasSheepGroupMapping> selectBasSheepGroupMappingList(BasSheepGroupMapping basSheepGroupMapping)
{
return basSheepGroupMappingMapper.selectBasSheepGroupMappingList(basSheepGroupMapping);
}
@Override
public List<Map<String, Object>> selectBasSheepGroupMappingList(
Long sheepId, Long groupId, List<String> bsManageTags) {
return basSheepGroupMappingMapper.selectBasSheepGroupMappingList(sheepId, groupId, bsManageTags);
}
/**
* 新增羊只分组关联
*
* @param basSheepGroupMapping 羊只分组关联
* @return 结果
*/
@Override
public int insertBasSheepGroupMapping(BasSheepGroupMapping basSheepGroupMapping)
{
return basSheepGroupMappingMapper.insertBasSheepGroupMapping(basSheepGroupMapping);
}
/**
* 修改羊只分组关联
*
* @param basSheepGroupMapping 羊只分组关联
* @return 结果
*/
// @Override
// public int updateBasSheepGroupMapping(BasSheepGroupMapping basSheepGroupMapping)
// {
// return basSheepGroupMappingMapper.updateBasSheepGroupMapping(basSheepGroupMapping);
// }
@Override
public int updateBasSheepGroupMapping(BasSheepGroupMapping basSheepGroupMapping) {
Long SheepId = basSheepGroupMapping.getSheepId();
Long GroupId = basSheepGroupMapping.getGroupId();
existsInGroup(SheepId,GroupId);
if (existsInGroup(basSheepGroupMapping.getSheepId(), basSheepGroupMapping.getGroupId())) {
throw new RuntimeException("该羊已在此分组,无需修改");
}
return basSheepGroupMappingMapper.updateBasSheepGroupMapping(basSheepGroupMapping);
}
/**
* 批量删除羊只分组关联
*
* @param ids 需要删除的羊只分组关联主键
* @return 结果
*/
@Override
public int deleteBasSheepGroupMappingByIds(Long[] ids)
{
return basSheepGroupMappingMapper.deleteBasSheepGroupMappingByIds(ids);
}
/**
* 删除羊只分组关联信息
*
* @param id 羊只分组关联主键
* @return 结果
*/
@Override
public int deleteBasSheepGroupMappingById(Long id)
{
return basSheepGroupMappingMapper.deleteBasSheepGroupMappingById(id);
}
@Override
public AjaxResult addByEarTags(List<String> earTags, Long groupId) {
// 1. 参数判空
if (earTags == null || earTags.isEmpty()) {
return AjaxResult.error("耳号列表不能为空");
}
// 2. 根据耳号查询羊只manage_tags -> id
List<Map<String, Object>> sheepList = basSheepGroupMappingMapper.selectSheepIdsByEarTags(earTags);
Map<String, Long> tagToId = new HashMap<>();
for (Map<String, Object> s : sheepList) {
tagToId.put((String) s.get("manage_tags"), ((Number) s.get("id")).longValue());
}
// 3. 不存在的耳号
List<String> missing = new ArrayList<>();
for (String tag : earTags) {
if (!tagToId.containsKey(tag)) {
missing.add(tag);
}
}
if (!missing.isEmpty()) {
Map<String, Object> res = new HashMap<>();
res.put("success", false);
res.put("missing", missing);
return AjaxResult.success(res);
}
// 4. 查询该分组下已存在的羊只ID
List<BasSheepGroupMapping> existingRows = basSheepGroupMappingMapper.selectListByGroupId(groupId);
System.out.println("🔍 existingRows 类型 = " + existingRows.getClass());
Set<Long> existingIds = existingRows.stream()
.map(BasSheepGroupMapping::getSheepId)
.collect(Collectors.toSet());
System.out.println("🔍 existingIds = " + existingIds);
// 5. 过滤出未在该分组的羊只
List<BasSheepGroupMapping> toInsert = new ArrayList<>();
for (Map.Entry<String, Long> e : tagToId.entrySet()) {
Long sheepId = e.getValue();
if (!existingIds.contains(sheepId)) {
BasSheepGroupMapping m = new BasSheepGroupMapping();
m.setSheepId(sheepId);
m.setGroupId(groupId);
toInsert.add(m);
}
}
if (toInsert.isEmpty()) {
return AjaxResult.success("所选羊只已全部在该分组中");
}
// 6. 批量插入
int rows = basSheepGroupMappingMapper.batchInsert(toInsert);
Map<String, Object> res = new HashMap<>();
res.put("success", true);
res.put("inserted", rows);
return AjaxResult.success(res);
}
private boolean existsInGroup(Long sheepId, Long groupId) {
BasSheepGroupMapping param = new BasSheepGroupMapping();
List<Map<String, Object>> list = basSheepGroupMappingMapper
.selectBasSheepGroupMappingList(sheepId, groupId, null);
return !list.isEmpty();
}
}

View File

@ -1,123 +0,0 @@
package com.zhyc.module.base.service.impl;
import com.zhyc.common.utils.DateUtils;
import com.zhyc.module.base.domain.BasSheepGroup;
import com.zhyc.module.base.mapper.BasSheepGroupMapper;
import com.zhyc.module.base.service.IBasSheepGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 分组管理Service业务层处理
*
* @author wyt
* @date 2025-07-14
*/
@Service
public class BasSheepGroupServiceImpl implements IBasSheepGroupService
{
@Autowired
private BasSheepGroupMapper basSheepGroupMapper;
/**
* 查询分组管理
*
* @param groupId 分组管理主键
* @return 分组管理
*/
@Override
public BasSheepGroup selectBasSheepGroupByGroupId(Long groupId)
{
return basSheepGroupMapper.selectBasSheepGroupByGroupId(groupId);
}
/**
* 查询分组管理列表
*
* @param basSheepGroup 分组管理
* @return 分组管理
*/
// @Override
// public List<BasSheepGroup> selectBasSheepGroupList(BasSheepGroup basSheepGroup)
// {
// return basSheepGroupMapper.selectBasSheepGroupList(basSheepGroup);
// }
@Override
public List<BasSheepGroup> selectBasSheepGroupList(BasSheepGroup basSheepGroup) {
List<BasSheepGroup> groups = basSheepGroupMapper.selectBasSheepGroupList(basSheepGroup);
// 处理祖先名称显示格式
groups.forEach(group -> {
if (group.getAncestorNames() != null) {
String formattedNames = group.getAncestorNames().replace(",", " / ");
group.setAncestorNames(formattedNames);
}
});
return groups;
}
/**
* 新增分组管理
*
* @param basSheepGroup 分组管理
* @return 结果
*/
@Override
public int insertBasSheepGroup(BasSheepGroup basSheepGroup)
{
basSheepGroup.setCreateTime(DateUtils.getNowDate());
return basSheepGroupMapper.insertBasSheepGroup(basSheepGroup);
}
/**
* 修改分组管理
*
* @param basSheepGroup 分组管理
* @return 结果
*/
@Override
public int updateBasSheepGroup(BasSheepGroup basSheepGroup)
{
basSheepGroup.setUpdateTime(DateUtils.getNowDate());
return basSheepGroupMapper.updateBasSheepGroup(basSheepGroup);
}
/**
* 批量删除分组管理
*
* @param groupIds 需要删除的分组管理主键
* @return 结果
*/
@Override
public int deleteBasSheepGroupByGroupIds(Long[] groupIds)
{
return basSheepGroupMapper.deleteBasSheepGroupByGroupIds(groupIds);
}
/**
* 删除分组管理信息
*
* @param groupId 分组管理主键
* @return 结果
*/
@Override
public int deleteBasSheepGroupByGroupId(Long groupId)
{
return basSheepGroupMapper.deleteBasSheepGroupByGroupId(groupId);
}
@Override
public List<BasSheepGroup> selectLeafNodes() {
List<BasSheepGroup> leafNodes = basSheepGroupMapper.selectLeafNodes();
// 如果 ancestorNames 需要格式化可以复用已有的逻辑
leafNodes.forEach(group -> {
if (group.getAncestorNames() != null) {
group.setAncestorNames(group.getAncestorNames().replace(",", " / "));
}
});
return leafNodes;
}
}

View File

@ -1,125 +0,0 @@
package com.zhyc.module.base.service.impl;
import java.util.List;
import com.zhyc.common.utils.DateUtils;
import com.zhyc.module.base.domain.BasSheep;
import com.zhyc.module.base.mapper.BasSheepMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhyc.module.base.service.IBasSheepService;
/**
* 羊只基本信息Service业务层处理
*
* @author ruoyi
* @date 2025-07-15
*/
@Service
public class BasSheepServiceImpl implements IBasSheepService
{
@Autowired
private BasSheepMapper basSheepMapper;
/**
* 查询羊只基本信息
*
* @param id 羊只基本信息主键
* @return 羊只基本信息
*/
@Override
public BasSheep selectBasSheepById(Long id)
{
return basSheepMapper.selectBasSheepById(id);
}
/**
* 查询羊只基本信息列表
*
* @param basSheep 羊只基本信息
* @return 羊只基本信息
*/
@Override
public List<BasSheep> selectBasSheepList(BasSheep basSheep)
{
return basSheepMapper.selectBasSheepList(basSheep);
}
/**
* 新增羊只基本信息
*
* @param basSheep 羊只基本信息
* @return 结果
*/
@Override
public int insertBasSheep(BasSheep basSheep)
{
basSheep.setCreateTime(DateUtils.getNowDate());
return basSheepMapper.insertBasSheep(basSheep);
}
/**
* 修改羊只基本信息
*
* @param basSheep 羊只基本信息
* @return 结果
*/
@Override
public int updateBasSheep(BasSheep basSheep)
{
basSheep.setUpdateTime(DateUtils.getNowDate());
return basSheepMapper.updateBasSheep(basSheep);
}
/**
* 批量删除羊只基本信息
*
* @param ids 需要删除的羊只基本信息主键
* @return 结果
*/
@Override
public int deleteBasSheepByIds(Long[] ids)
{
return basSheepMapper.deleteBasSheepByIds(ids);
}
/**
* 删除羊只基本信息信息
*
* @param id 羊只基本信息主键
* @return 结果
*/
@Override
public int deleteBasSheepById(Long id)
{
return basSheepMapper.deleteBasSheepById(id);
}
@Override
public BasSheep selectBasSheepByManageTags(String manageTags){
return basSheepMapper.selectBasSheepByManageTags(manageTags);
}
@Override
public List<BasSheep> getSheepByRanchId(Long ranchId) {
return basSheepMapper.getSheepByRanchId(ranchId);
}
@Override
public List<BasSheep> selectBasSheepListByIds(List<Long> ids) {
return basSheepMapper.selectBasSheepListByIds(ids);
}
//校验新管理/电子耳号
@Override
public boolean existsByTag(String tag, Integer earType) {
if (earType == 0) {
return basSheepMapper.existsByElectronicTag(tag) > 0;
} else if (earType == 1) {
return basSheepMapper.existsByManageTag(tag) > 0;
}
return false;
}
}

View File

@ -1,89 +0,0 @@
package com.zhyc.module.base.service.impl;
import java.util.List;
import com.zhyc.module.base.domain.BasSheep;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhyc.module.base.mapper.BasSheepTypeMapper;
import com.zhyc.module.base.domain.BasSheepType;
import com.zhyc.module.base.service.IBasSheepTypeService;
/**
* 羊只类型Service业务层处理
*
* @author ruoyi
* @date 2025-07-22
*/
@Service
public class BasSheepTypeServiceImpl implements IBasSheepTypeService {
@Autowired
private BasSheepTypeMapper basSheepTypeMapper;
/**
* 查询羊只类型
*
* @param id 羊只类型主键
* @return 羊只类型
*/
@Override
public BasSheepType selectBasSheepTypeById(Integer id) {
return basSheepTypeMapper.selectBasSheepTypeById(id);
}
/**
* 查询羊只类型列表
*
* @param basSheepType 羊只类型
* @return 羊只类型
*/
@Override
public List<BasSheepType> selectBasSheepTypeList(BasSheepType basSheepType) {
return basSheepTypeMapper.selectBasSheepTypeList(basSheepType);
}
/**
* 新增羊只类型
*
* @param basSheepType 羊只类型
* @return 结果
*/
@Override
public int insertBasSheepType(BasSheepType basSheepType) {
return basSheepTypeMapper.insertBasSheepType(basSheepType);
}
/**
* 修改羊只类型
*
* @param basSheepType 羊只类型
* @return 结果
*/
@Override
public int updateBasSheepType(BasSheepType basSheepType) {
return basSheepTypeMapper.updateBasSheepType(basSheepType);
}
/**
* 批量删除羊只类型
*
* @param ids 需要删除的羊只类型主键
* @return 结果
*/
@Override
public int deleteBasSheepTypeByIds(Integer[] ids) {
return basSheepTypeMapper.deleteBasSheepTypeByIds(ids);
}
/**
* 删除羊只类型信息
*
* @param id 羊只类型主键
* @return 结果
*/
@Override
public int deleteBasSheepTypeById(Integer id) {
return basSheepTypeMapper.deleteBasSheepTypeById(id);
}
}

View File

@ -1,99 +0,0 @@
package com.zhyc.module.base.service.impl;
import java.util.List;
import com.zhyc.module.base.domain.BasSheepVariety;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhyc.module.base.mapper.BasSheepVarietyMapper;
import com.zhyc.module.base.service.IBasSheepVarietyService;
/**
* 羊只品种Service业务层处理
*
* @author ruoyi
* @date 2025-07-15
*/
@Service
public class BasSheepVarietyServiceImpl implements IBasSheepVarietyService
{
@Autowired
private BasSheepVarietyMapper basSheepVarietyMapper;
/**
* 查询羊只品种
*
* @param id 羊只品种主键
* @return 羊只品种
*/
@Override
public BasSheepVariety selectBasSheepVarietyById(Long id)
{
return basSheepVarietyMapper.selectBasSheepVarietyById(id);
}
/**
* 查询羊只品种列表
*
* @param basSheepVariety 羊只品种
* @return 羊只品种
*/
@Override
public List<BasSheepVariety> selectBasSheepVarietyList(BasSheepVariety basSheepVariety)
{
return basSheepVarietyMapper.selectBasSheepVarietyList(basSheepVariety);
}
/**
* 新增羊只品种
*
* @param basSheepVariety 羊只品种
* @return 结果
*/
@Override
public int insertBasSheepVariety(BasSheepVariety basSheepVariety)
{
return basSheepVarietyMapper.insertBasSheepVariety(basSheepVariety);
}
/**
* 修改羊只品种
*
* @param basSheepVariety 羊只品种
* @return 结果
*/
@Override
public int updateBasSheepVariety(BasSheepVariety basSheepVariety)
{
return basSheepVarietyMapper.updateBasSheepVariety(basSheepVariety);
}
/**
* 批量删除羊只品种
*
* @param ids 需要删除的羊只品种主键
* @return 结果
*/
@Override
public int deleteBasSheepVarietyByIds(Long[] ids)
{
return basSheepVarietyMapper.deleteBasSheepVarietyByIds(ids);
}
/**
* 删除羊只品种信息
*
* @param id 羊只品种主键
* @return 结果
*/
@Override
public int deleteBasSheepVarietyById(Long id)
{
return basSheepVarietyMapper.deleteBasSheepVarietyById(id);
}
@Override
public BasSheepVariety selectByVarietyName(String varietyName) {
return basSheepVarietyMapper.selectByVarietyName(varietyName);
}
}

View File

@ -1,96 +0,0 @@
package com.zhyc.module.base.service.impl;
import java.util.List;
import com.zhyc.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhyc.module.base.mapper.BreedRamFileMapper;
import com.zhyc.module.base.domain.BreedRamFile;
import com.zhyc.module.base.service.IBreedRamFileService;
/**
* 种公羊档案Service业务层处理
*
* @author zhyc
* @date 2025-07-29
*/
@Service
public class BreedRamFileServiceImpl implements IBreedRamFileService
{
@Autowired
private BreedRamFileMapper breedRamFileMapper;
/**
* 查询种公羊档案
*
* @param id 种公羊档案主键
* @return 种公羊档案
*/
@Override
public BreedRamFile selectBreedRamFileById(Long id)
{
return breedRamFileMapper.selectBreedRamFileById(id);
}
/**
* 查询种公羊档案列表
*
* @param breedRamFile 种公羊档案
* @return 种公羊档案
*/
@Override
public List<BreedRamFile> selectBreedRamFileList(BreedRamFile breedRamFile)
{
return breedRamFileMapper.selectBreedRamFileList(breedRamFile);
}
/**
* 新增种公羊档案
*
* @param breedRamFile 种公羊档案
* @return 结果
*/
@Override
public int insertBreedRamFile(BreedRamFile breedRamFile)
{
breedRamFile.setCreateTime(DateUtils.getNowDate());
return breedRamFileMapper.insertBreedRamFile(breedRamFile);
}
/**
* 修改种公羊档案
*
* @param breedRamFile 种公羊档案
* @return 结果
*/
@Override
public int updateBreedRamFile(BreedRamFile breedRamFile)
{
breedRamFile.setUpdateTime(DateUtils.getNowDate());
return breedRamFileMapper.updateBreedRamFile(breedRamFile);
}
/**
* 批量删除种公羊档案
*
* @param ids 需要删除的种公羊档案主键
* @return 结果
*/
@Override
public int deleteBreedRamFileByIds(Long[] ids)
{
return breedRamFileMapper.deleteBreedRamFileByIds(ids);
}
/**
* 删除种公羊档案信息
*
* @param id 种公羊档案主键
* @return 结果
*/
@Override
public int deleteBreedRamFileById(Long id)
{
return breedRamFileMapper.deleteBreedRamFileById(id);
}
}

View File

@ -1,93 +0,0 @@
package com.zhyc.module.base.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhyc.module.base.mapper.DaRanchMapper;
import com.zhyc.module.base.domain.DaRanch;
import com.zhyc.module.base.service.IDaRanchService;
/**
* 牧场管理Service业务层处理
*
* @author ruoyi
* @date 2025-07-22
*/
@Service
public class DaRanchServiceImpl implements IDaRanchService
{
@Autowired
private DaRanchMapper daRanchMapper;
/**
* 查询牧场管理
*
* @param id 牧场管理主键
* @return 牧场管理
*/
@Override
public DaRanch selectDaRanchById(Long id)
{
return daRanchMapper.selectDaRanchById(id);
}
/**
* 查询牧场管理列表
*
* @param daRanch 牧场管理
* @return 牧场管理
*/
@Override
public List<DaRanch> selectDaRanchList(DaRanch daRanch)
{
return daRanchMapper.selectDaRanchList(daRanch);
}
/**
* 新增牧场管理
*
* @param daRanch 牧场管理
* @return 结果
*/
@Override
public int insertDaRanch(DaRanch daRanch)
{
return daRanchMapper.insertDaRanch(daRanch);
}
/**
* 修改牧场管理
*
* @param daRanch 牧场管理
* @return 结果
*/
@Override
public int updateDaRanch(DaRanch daRanch)
{
return daRanchMapper.updateDaRanch(daRanch);
}
/**
* 批量删除牧场管理
*
* @param ids 需要删除的牧场管理主键
* @return 结果
*/
@Override
public int deleteDaRanchByIds(Long[] ids)
{
return daRanchMapper.deleteDaRanchByIds(ids);
}
/**
* 删除牧场管理信息
*
* @param id 牧场管理主键
* @return 结果
*/
@Override
public int deleteDaRanchById(Long id)
{
return daRanchMapper.deleteDaRanchById(id);
}
}

View File

@ -1,114 +0,0 @@
package com.zhyc.module.base.service.impl;
import com.zhyc.module.base.domain.BasSheep;
import com.zhyc.module.base.domain.DaSheepfold;
import com.zhyc.module.base.mapper.BasSheepMapper;
import com.zhyc.module.base.mapper.DaSheepfoldMapper;
import com.zhyc.module.base.service.IDaSheepfoldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 羊舍管理Service业务层处理
*
* @author wyt
* @date 2025-07-11
*/
@Service
public class DaSheepfoldServiceImpl implements IDaSheepfoldService
{
@Autowired
private DaSheepfoldMapper daSheepfoldMapper;
@Autowired
private BasSheepMapper basSheepMapper;
/**
* 查询羊舍管理
*
* @param id 羊舍管理主键
* @return 羊舍管理
*/
@Override
public DaSheepfold selectDaSheepfoldById(Long id)
{
return daSheepfoldMapper.selectDaSheepfoldById(id);
}
/**
* 查询羊舍管理列表
*
* @param daSheepfold 羊舍管理
* @return 羊舍管理
*/
@Override
public List<DaSheepfold> selectDaSheepfoldList(DaSheepfold daSheepfold)
{
return daSheepfoldMapper.selectDaSheepfoldList(daSheepfold);
}
/**
* 新增羊舍管理
*
* @param daSheepfold 羊舍管理
* @return 结果
*/
@Override
public int insertDaSheepfold(DaSheepfold daSheepfold)
{
return daSheepfoldMapper.insertDaSheepfold(daSheepfold);
}
/**
* 修改羊舍管理
*
* @param daSheepfold 羊舍管理
* @return 结果
*/
@Override
public int updateDaSheepfold(DaSheepfold daSheepfold)
{
return daSheepfoldMapper.updateDaSheepfold(daSheepfold);
}
/**
* 批量删除羊舍管理
*
* @param ids 需要删除的羊舍管理主键
* @return 结果
*/
@Override
public int deleteDaSheepfoldByIds(Long[] ids)
{
return daSheepfoldMapper.deleteDaSheepfoldByIds(ids);
}
/**
* 删除羊舍管理信息
*
* @param id 羊舍管理主键
* @return 结果
*/
@Override
public int deleteDaSheepfoldById(Long id)
{
return daSheepfoldMapper.deleteDaSheepfoldById(id);
}
@Override
public boolean checkSheepfoldNoExist(Long ranchId, Long sheepfoldTypeId, String sheepfoldNo) {
DaSheepfold query = new DaSheepfold();
query.setRanchId(ranchId);
query.setSheepfoldTypeId(sheepfoldTypeId);
query.setSheepfoldNo(sheepfoldNo);
return daSheepfoldMapper.selectCount(query) > 0;
}
@Override
public List<BasSheep> sheepListById(String id) {
List<BasSheep> basSheep = basSheepMapper.selectBasSheepBySheepfold(id);
return basSheep;
}
}

View File

@ -1,74 +0,0 @@
package com.zhyc.module.base.service.impl;
import com.zhyc.common.utils.DateUtils;
import com.zhyc.module.base.domain.SheepFile;
import com.zhyc.module.base.mapper.SheepFileMapper;
import com.zhyc.module.base.service.ISheepFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;import java.util.Map;
/**
* 羊只档案Service业务层处理
*
* @author wyt
* @date 2025-07-13
*/
@Service
public class SheepFileServiceImpl implements ISheepFileService {
@Autowired
private SheepFileMapper sheepFileMapper;
/**
* 查询羊只档案
*
* @param id 羊只档案主键
* @return 羊只档案
*/
@Override
public SheepFile selectSheepFileById(Long id) {
return sheepFileMapper.selectSheepFileById(id);
}
/**
* 查询羊只档案列表
*
* @param sheepFile 羊只档案
* @return 羊只档案
*/
@Override
public List<SheepFile> selectSheepFileList(SheepFile sheepFile) {
return sheepFileMapper.selectSheepFileList(sheepFile);
}
@Override
public SheepFile selectBasSheepByManageTags(String tags) {
return sheepFileMapper.selectSheepByManageTags(tags);
}
@Override
public List<Map<String, Object>> countBySheepType() {
return sheepFileMapper.countBySheepType();
}
@Override
public List<Map<String, Object>> countByBreedStatus() {
return sheepFileMapper.countByBreedStatus();
}
@Override
public List<Map<String, Object>> countByVariety() {
return sheepFileMapper.countByVariety();
}
@Override
public List<Map<String, Object>> countParityOfLactation() {
return sheepFileMapper.countParityOfLactation();
}
@Override
public Long countInGroup() { return sheepFileMapper.countInGroup(); }
}

View File

@ -1,106 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.domain.Deworm;
import com.zhyc.module.biosafety.service.IDewormService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 驱虫Controller
*
* @author ruoyi
* @date 2025-07-15
*/
@RestController
@RequestMapping("/biosafety/deworm")
public class DewormController extends BaseController
{
@Autowired
private IDewormService dewormService;
/**
* 查询驱虫列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:deworm:list')")
@GetMapping("/list")
public TableDataInfo list(Deworm deworm)
{
startPage();
List<Deworm> list = dewormService.selectDewormList(deworm);
return getDataTable(list);
}
/**
* 导出驱虫列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:deworm:export')")
@Log(title = "驱虫", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Deworm deworm)
{
List<Deworm> list = dewormService.selectDewormList(deworm);
ExcelUtil<Deworm> util = new ExcelUtil<Deworm>(Deworm.class);
util.exportExcel(response, list, "驱虫数据");
}
/**
* 获取驱虫详细信息
*/
@PreAuthorize("@ss.hasPermi('biosafety:deworm:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(dewormService.selectDewormById(id));
}
/**
* 新增驱虫
*/
@PreAuthorize("@ss.hasPermi('biosafety:deworm:add')")
@Log(title = "驱虫", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody Deworm deworm)
{
System.out.println(deworm);
return toAjax(dewormService.insertDeworm(deworm));
}
/**
* 修改驱虫
*/
@PreAuthorize("@ss.hasPermi('biosafety:deworm:edit')")
@Log(title = "驱虫", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody Deworm deworm)
{
return toAjax(dewormService.updateDeworm(deworm));
}
/**
* 删除驱虫
*/
@PreAuthorize("@ss.hasPermi('biosafety:deworm:remove')")
@Log(title = "驱虫", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(dewormService.deleteDewormByIds(ids));
}
}

View File

@ -1,104 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.biosafety.domain.Diagnosis;
import com.zhyc.module.biosafety.service.IDiagnosisService;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 诊疗结果Controller
*
* @author ruoyi
* @date 2025-07-15
*/
@RestController
@RequestMapping("/diagnosis/diagnosis")
public class DiagnosisController extends BaseController
{
@Autowired
private IDiagnosisService diagnosisService;
/**
* 查询诊疗结果列表
*/
@PreAuthorize("@ss.hasPermi('diagnosis:diagnosis:list')")
@GetMapping("/list")
public TableDataInfo list(Diagnosis diagnosis)
{
startPage();
List<Diagnosis> list = diagnosisService.selectDiagnosisList(diagnosis);
return getDataTable(list);
}
/**
* 导出诊疗结果列表
*/
@PreAuthorize("@ss.hasPermi('diagnosis:diagnosis:export')")
@Log(title = "诊疗结果", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Diagnosis diagnosis)
{
List<Diagnosis> list = diagnosisService.selectDiagnosisList(diagnosis);
ExcelUtil<Diagnosis> util = new ExcelUtil<Diagnosis>(Diagnosis.class);
util.exportExcel(response, list, "诊疗结果数据");
}
/**
* 获取诊疗结果详细信息
*/
@PreAuthorize("@ss.hasPermi('diagnosis:diagnosis:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(diagnosisService.selectDiagnosisById(id));
}
/**
* 新增诊疗结果
*/
@PreAuthorize("@ss.hasPermi('diagnosis:diagnosis:add')")
@Log(title = "诊疗结果", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody Diagnosis diagnosis)
{
return toAjax(diagnosisService.insertDiagnosis(diagnosis));
}
/**
* 修改诊疗结果
*/
@PreAuthorize("@ss.hasPermi('diagnosis:diagnosis:edit')")
@Log(title = "诊疗结果", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody Diagnosis diagnosis)
{
return toAjax(diagnosisService.updateDiagnosis(diagnosis));
}
/**
* 删除诊疗结果
*/
@PreAuthorize("@ss.hasPermi('diagnosis:diagnosis:remove')")
@Log(title = "诊疗结果", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(diagnosisService.deleteDiagnosisByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.service.IDisinfectService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.biosafety.domain.Disinfect;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 消毒记录Controller
*
* @author ruoyi
* @date 2025-07-15
*/
@RestController
@RequestMapping("/biosafety/disinfect")
public class DisinfectController extends BaseController
{
@Autowired
private IDisinfectService disinfectService;
/**
* 查询消毒记录列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:disinfect:list')")
@GetMapping("/list")
public TableDataInfo list(Disinfect disinfect)
{
startPage();
List<Disinfect> list = disinfectService.selectDisinfectList(disinfect);
return getDataTable(list);
}
/**
* 导出消毒记录列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:disinfect:export')")
@Log(title = "消毒记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Disinfect disinfect)
{
List<Disinfect> list = disinfectService.selectDisinfectList(disinfect);
ExcelUtil<Disinfect> util = new ExcelUtil<Disinfect>(Disinfect.class);
util.exportExcel(response, list, "消毒记录数据");
}
/**
* 获取消毒记录详细信息
*/
@PreAuthorize("@ss.hasPermi('biosafety:disinfect:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(disinfectService.selectDisinfectById(id));
}
/**
* 新增消毒记录
*/
@PreAuthorize("@ss.hasPermi('biosafety:disinfect:add')")
@Log(title = "消毒记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody Disinfect disinfect)
{
return toAjax(disinfectService.insertDisinfect(disinfect));
}
/**
* 修改消毒记录
*/
@PreAuthorize("@ss.hasPermi('biosafety:disinfect:edit')")
@Log(title = "消毒记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody Disinfect disinfect)
{
return toAjax(disinfectService.updateDisinfect(disinfect));
}
/**
* 删除消毒记录
*/
@PreAuthorize("@ss.hasPermi('biosafety:disinfect:remove')")
@Log(title = "消毒记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(disinfectService.deleteDisinfectByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.service.IHealthService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.biosafety.domain.Health;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 保健Controller
*
* @author ruoyi
* @date 2025-07-15
*/
@RestController
@RequestMapping("/biosafety/health")
public class HealthController extends BaseController
{
@Autowired
private IHealthService healthService;
/**
* 查询保健列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:health:list')")
@GetMapping("/list")
public TableDataInfo list(Health health)
{
startPage();
List<Health> list = healthService.selectHealthList(health);
return getDataTable(list);
}
/**
* 导出保健列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:health:export')")
@Log(title = "保健", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Health health)
{
List<Health> list = healthService.selectHealthList(health);
ExcelUtil<Health> util = new ExcelUtil<Health>(Health.class);
util.exportExcel(response, list, "保健数据");
}
/**
* 获取保健详细信息
*/
@PreAuthorize("@ss.hasPermi('biosafety:health:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(healthService.selectHealthById(id));
}
/**
* 新增保健
*/
@PreAuthorize("@ss.hasPermi('biosafety:health:add')")
@Log(title = "保健", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody Health health)
{
return toAjax(healthService.insertHealth(health));
}
/**
* 修改保健
*/
@PreAuthorize("@ss.hasPermi('biosafety:health:edit')")
@Log(title = "保健", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody Health health)
{
return toAjax(healthService.updateHealth(health));
}
/**
* 删除保健
*/
@PreAuthorize("@ss.hasPermi('biosafety:health:remove')")
@Log(title = "保健", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(healthService.deleteHealthByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.service.IImmunityService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.biosafety.domain.Immunity;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 免疫Controller
*
* @author ruoyi
* @date 2025-07-15
*/
@RestController
@RequestMapping("/biosafety/immunity")
public class ImmunityController extends BaseController
{
@Autowired
private IImmunityService immunityService;
/**
* 查询免疫列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:immunity:list')")
@GetMapping("/list")
public TableDataInfo list(Immunity immunity)
{
startPage();
List<Immunity> list = immunityService.selectImmunityList(immunity);
return getDataTable(list);
}
/**
* 导出免疫列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:immunity:export')")
@Log(title = "免疫", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Immunity immunity)
{
List<Immunity> list = immunityService.selectImmunityList(immunity);
ExcelUtil<Immunity> util = new ExcelUtil<Immunity>(Immunity.class);
util.exportExcel(response, list, "免疫数据");
}
/**
* 获取免疫详细信息
*/
@PreAuthorize("@ss.hasPermi('biosafety:immunity:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(immunityService.selectImmunityById(id));
}
/**
* 新增免疫
*/
@PreAuthorize("@ss.hasPermi('biosafety:immunity:add')")
@Log(title = "免疫", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody Immunity immunity)
{
return toAjax(immunityService.insertImmunity(immunity));
}
/**
* 修改免疫
*/
@PreAuthorize("@ss.hasPermi('biosafety:immunity:edit')")
@Log(title = "免疫", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody Immunity immunity)
{
return toAjax(immunityService.updateImmunity(immunity));
}
/**
* 删除免疫
*/
@PreAuthorize("@ss.hasPermi('biosafety:immunity:remove')")
@Log(title = "免疫", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(immunityService.deleteImmunityByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.domain.QuarantineItems;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.biosafety.service.IQuarantineItemsService;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 检疫项目Controller
*
* @author ruoyi
* @date 2025-07-14
*/
@RestController
@RequestMapping("/biosafety/items")
public class QuarantineItemsController extends BaseController
{
@Autowired
private IQuarantineItemsService quarantineItemsService;
/**
* 查询检疫项目列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:items:list')")
@GetMapping("/list")
public TableDataInfo list(QuarantineItems quarantineItems)
{
startPage();
List<QuarantineItems> list = quarantineItemsService.selectQuarantineItemsList(quarantineItems);
return getDataTable(list);
}
/**
* 导出检疫项目列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:items:export')")
@Log(title = "检疫项目", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, QuarantineItems quarantineItems)
{
List<QuarantineItems> list = quarantineItemsService.selectQuarantineItemsList(quarantineItems);
ExcelUtil<QuarantineItems> util = new ExcelUtil<QuarantineItems>(QuarantineItems.class);
util.exportExcel(response, list, "检疫项目数据");
}
/**
* 获取检疫项目详细信息
*/
@PreAuthorize("@ss.hasPermi('biosafety:items:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(quarantineItemsService.selectQuarantineItemsById(id));
}
/**
* 新增检疫项目
*/
@PreAuthorize("@ss.hasPermi('biosafety:items:add')")
@Log(title = "检疫项目", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody QuarantineItems quarantineItems)
{
return toAjax(quarantineItemsService.insertQuarantineItems(quarantineItems));
}
/**
* 修改检疫项目
*/
@PreAuthorize("@ss.hasPermi('biosafety:items:edit')")
@Log(title = "检疫项目", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody QuarantineItems quarantineItems)
{
return toAjax(quarantineItemsService.updateQuarantineItems(quarantineItems));
}
/**
* 删除检疫项目
*/
@PreAuthorize("@ss.hasPermi('biosafety:items:remove')")
@Log(title = "检疫项目", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(quarantineItemsService.deleteQuarantineItemsByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.domain.QuarantineReport;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.biosafety.service.IQuarantineReportService;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 检疫记录Controller
*
* @author ruoyi
* @date 2025-07-14
*/
@RestController
@RequestMapping("/biosafety/quarantine")
public class QuarantineReportController extends BaseController
{
@Autowired
private IQuarantineReportService quarantineReportService;
/**
* 查询检疫记录列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:quarantine:list')")
@GetMapping("/list")
public TableDataInfo list(QuarantineReport quarantineReport)
{
startPage();
List<QuarantineReport> list = quarantineReportService.selectQuarantineReportList(quarantineReport);
return getDataTable(list);
}
/**
* 导出检疫记录列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:quarantine:export')")
@Log(title = "检疫记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, QuarantineReport quarantineReport)
{
List<QuarantineReport> list = quarantineReportService.selectQuarantineReportList(quarantineReport);
ExcelUtil<QuarantineReport> util = new ExcelUtil<QuarantineReport>(QuarantineReport.class);
util.exportExcel(response, list, "检疫记录数据");
}
/**
* 获取检疫记录详细信息
*/
@PreAuthorize("@ss.hasPermi('bisosafety:quarantine:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(quarantineReportService.selectQuarantineReportById(id));
}
/**
* 新增检疫记录
*/
@PreAuthorize("@ss.hasPermi('biosafety:quarantine:add')")
@Log(title = "检疫记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody QuarantineReport quarantineReport)
{
return toAjax(quarantineReportService.insertQuarantineReport(quarantineReport));
}
/**
* 修改检疫记录
*/
@PreAuthorize("@ss.hasPermi('biosafety:quarantine:edit')")
@Log(title = "检疫记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody QuarantineReport quarantineReport)
{
return toAjax(quarantineReportService.updateQuarantineReport(quarantineReport));
}
/**
* 删除检疫记录
*/
@PreAuthorize("@ss.hasPermi('biosafety:quarantine:remove')")
@Log(title = "检疫记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(quarantineReportService.deleteQuarantineReportByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.domain.QuarantineSample;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.biosafety.service.IQuarantineSampleService;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 样品类型Controller
*
* @author ruoyi
* @date 2025-07-14
*/
@RestController
@RequestMapping("/biosafety/sample")
public class QuarantineSampleController extends BaseController
{
@Autowired
private IQuarantineSampleService quarantineSampleService;
/**
* 查询样品类型列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:sample:list')")
@GetMapping("/list")
public TableDataInfo list(QuarantineSample quarantineSample)
{
startPage();
List<QuarantineSample> list = quarantineSampleService.selectQuarantineSampleList(quarantineSample);
return getDataTable(list);
}
/**
* 导出样品类型列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:sample:export')")
@Log(title = "样品类型", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, QuarantineSample quarantineSample)
{
List<QuarantineSample> list = quarantineSampleService.selectQuarantineSampleList(quarantineSample);
ExcelUtil<QuarantineSample> util = new ExcelUtil<QuarantineSample>(QuarantineSample.class);
util.exportExcel(response, list, "样品类型数据");
}
/**
* 获取样品类型详细信息
*/
@PreAuthorize("@ss.hasPermi('biosafety:sample:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(quarantineSampleService.selectQuarantineSampleById(id));
}
/**
* 新增样品类型
*/
@PreAuthorize("@ss.hasPermi('biosafety:sample:add')")
@Log(title = "样品类型", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody QuarantineSample quarantineSample)
{
return toAjax(quarantineSampleService.insertQuarantineSample(quarantineSample));
}
/**
* 修改样品类型
*/
@PreAuthorize("@ss.hasPermi('biosafety:sample:edit')")
@Log(title = "样品类型", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody QuarantineSample quarantineSample)
{
return toAjax(quarantineSampleService.updateQuarantineSample(quarantineSample));
}
/**
* 删除样品类型
*/
@PreAuthorize("@ss.hasPermi('biosafety:sample:remove')")
@Log(title = "样品类型", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(quarantineSampleService.deleteQuarantineSampleByIds(ids));
}
}

View File

@ -1,103 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.domain.SwDisease;
import com.zhyc.module.biosafety.service.ISwDiseaseService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
/**
* 疾病Controller
*
* @author ruoyi
* @date 2025-07-09
*/
@RestController
@RequestMapping("/biosafety/disease")
public class SwDiseaseController extends BaseController
{
@Autowired
private ISwDiseaseService swDiseaseService;
/**
* 查询疾病列表
*/
@PreAuthorize("@ss.hasPermi('disease:disease:list')")
@GetMapping("/list")
public AjaxResult list(SwDisease swDisease)
{
List<SwDisease> list = swDiseaseService.selectSwDiseaseList(swDisease);
return success(list);
}
/**
* 导出疾病列表
*/
@PreAuthorize("@ss.hasPermi('disease:disease:export')")
@Log(title = "疾病", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SwDisease swDisease)
{
List<SwDisease> list = swDiseaseService.selectSwDiseaseList(swDisease);
ExcelUtil<SwDisease> util = new ExcelUtil<SwDisease>(SwDisease.class);
util.exportExcel(response, list, "疾病数据");
}
/**
* 获取疾病详细信息
*/
@PreAuthorize("@ss.hasPermi('disease:disease:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(swDiseaseService.selectSwDiseaseById(id));
}
/**
* 新增疾病
*/
@PreAuthorize("@ss.hasPermi('disease:disease:add')")
@Log(title = "疾病", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SwDisease swDisease)
{
return toAjax(swDiseaseService.insertSwDisease(swDisease));
}
/**
* 修改疾病
*/
@PreAuthorize("@ss.hasPermi('disease:disease:edit')")
@Log(title = "疾病", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SwDisease swDisease)
{
return toAjax(swDiseaseService.updateSwDisease(swDisease));
}
/**
* 删除疾病
*/
@PreAuthorize("@ss.hasPermi('disease:disease:remove')")
@Log(title = "疾病", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(swDiseaseService.deleteSwDiseaseByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.domain.SwMedicType;
import com.zhyc.module.biosafety.service.ISwMedicTypeService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 药品类型Controller
*
* @author ruoyi
* @date 2025-07-11
*/
@RestController
@RequestMapping("/biosafety/type")
public class SwMedicTypeController extends BaseController
{
@Autowired
private ISwMedicTypeService swMedicTypeService;
/**
* 查询药品类型列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:type:list')")
@GetMapping("/list")
public TableDataInfo list(SwMedicType swMedicType)
{
startPage();
List<SwMedicType> list = swMedicTypeService.selectSwMedicTypeList(swMedicType);
return getDataTable(list);
}
/**
* 导出药品类型列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:type:export')")
@Log(title = "药品类型", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SwMedicType swMedicType)
{
List<SwMedicType> list = swMedicTypeService.selectSwMedicTypeList(swMedicType);
ExcelUtil<SwMedicType> util = new ExcelUtil<SwMedicType>(SwMedicType.class);
util.exportExcel(response, list, "药品类型数据");
}
/**
* 获取药品类型详细信息
*/
@PreAuthorize("@ss.hasPermi('biosafety:type:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(swMedicTypeService.selectSwMedicTypeById(id));
}
/**
* 新增药品类型
*/
@PreAuthorize("@ss.hasPermi('biosafety:type:add')")
@Log(title = "药品类型", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SwMedicType swMedicType)
{
return toAjax(swMedicTypeService.insertSwMedicType(swMedicType));
}
/**
* 修改药品类型
*/
@PreAuthorize("@ss.hasPermi('biosafety:type:edit')")
@Log(title = "药品类型", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SwMedicType swMedicType)
{
return toAjax(swMedicTypeService.updateSwMedicType(swMedicType));
}
/**
* 删除药品类型
*/
@PreAuthorize("@ss.hasPermi('biosafety:type:remove')")
@Log(title = "药品类型", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(swMedicTypeService.deleteSwMedicTypeByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.domain.SwMedicine;
import com.zhyc.module.biosafety.service.ISwMedicineService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 药品Controller
*
* @author ruoyi
* @date 2025-07-11
*/
@RestController
@RequestMapping("/system/medicine")
public class SwMedicineController extends BaseController
{
@Autowired
private ISwMedicineService swMedicineService;
/**
* 查询药品列表
*/
@PreAuthorize("@ss.hasPermi('system:medicine:list')")
@GetMapping("/list")
public TableDataInfo list(SwMedicine swMedicine)
{
startPage();
List<SwMedicine> list = swMedicineService.selectSwMedicineList(swMedicine);
return getDataTable(list);
}
/**
* 导出药品列表
*/
@PreAuthorize("@ss.hasPermi('system:medicine:export')")
@Log(title = "药品", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SwMedicine swMedicine)
{
List<SwMedicine> list = swMedicineService.selectSwMedicineList(swMedicine);
ExcelUtil<SwMedicine> util = new ExcelUtil<SwMedicine>(SwMedicine.class);
util.exportExcel(response, list, "药品数据");
}
/**
* 获取药品详细信息
*/
@PreAuthorize("@ss.hasPermi('system:medicine:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(swMedicineService.selectSwMedicineById(id));
}
/**
* 新增药品
*/
@PreAuthorize("@ss.hasPermi('system:medicine:add')")
@Log(title = "药品", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SwMedicine swMedicine)
{
return toAjax(swMedicineService.insertSwMedicine(swMedicine));
}
/**
* 修改药品
*/
@PreAuthorize("@ss.hasPermi('system:medicine:edit')")
@Log(title = "药品", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SwMedicine swMedicine)
{
return toAjax(swMedicineService.updateSwMedicine(swMedicine));
}
/**
* 删除药品
*/
@PreAuthorize("@ss.hasPermi('system:medicine:remove')")
@Log(title = "药品", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(swMedicineService.deleteSwMedicineByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.domain.SwMedicineUsage;
import com.zhyc.module.biosafety.service.ISwMedicineUsageService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 药品使用记录Controller
*
* @author ruoyi
* @date 2025-07-12
*/
@RestController
@RequestMapping("/biosafety/usageInfo")
public class SwMedicineUsageController extends BaseController
{
@Autowired
private ISwMedicineUsageService swMedicineUsageService;
/**
* 查询药品使用记录列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:usageInfo:list')")
@GetMapping("/list")
public TableDataInfo list(SwMedicineUsage swMedicineUsage)
{
startPage();
List<SwMedicineUsage> list = swMedicineUsageService.selectSwMedicineUsageList(swMedicineUsage);
return getDataTable(list);
}
/**
* 导出药品使用记录列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:usageInfo:export')")
@Log(title = "药品使用记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SwMedicineUsage swMedicineUsage)
{
List<SwMedicineUsage> list = swMedicineUsageService.selectSwMedicineUsageList(swMedicineUsage);
ExcelUtil<SwMedicineUsage> util = new ExcelUtil<SwMedicineUsage>(SwMedicineUsage.class);
util.exportExcel(response, list, "药品使用记录数据");
}
/**
* 获取药品使用记录详细信息
*/
@PreAuthorize("@ss.hasPermi('biosafety:usageInfo:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Integer id)
{
return success(swMedicineUsageService.selectSwMedicineUsageById(id));
}
/**
* 新增药品使用记录
*/
@PreAuthorize("@ss.hasPermi('biosafety:usageInfo:add')")
@Log(title = "药品使用记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SwMedicineUsage swMedicineUsage)
{
return toAjax(swMedicineUsageService.insertSwMedicineUsage(swMedicineUsage));
}
/**
* 修改药品使用记录
*/
@PreAuthorize("@ss.hasPermi('biosafety:usageInfo:edit')")
@Log(title = "药品使用记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SwMedicineUsage swMedicineUsage)
{
return toAjax(swMedicineUsageService.updateSwMedicineUsage(swMedicineUsage));
}
/**
* 删除药品使用记录
*/
@PreAuthorize("@ss.hasPermi('biosafety:usageInfo:remove')")
@Log(title = "药品使用记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(swMedicineUsageService.deleteSwMedicineUsageByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.service.ISwPrescriptionService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.biosafety.domain.SwPrescription;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 处方Controller
*
* @author ruoyi
* @date 2025-07-11
*/
@RestController
@RequestMapping("/biosafety/prescription")
public class SwPrescriptionController extends BaseController
{
@Autowired
private ISwPrescriptionService swPrescriptionService;
/**
* 查询处方列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:prescription:list')")
@GetMapping("/list")
public TableDataInfo list(SwPrescription swPrescription)
{
startPage();
List<SwPrescription> list = swPrescriptionService.selectSwPrescriptionList(swPrescription);
return getDataTable(list);
}
/**
* 导出处方列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:prescription:export')")
@Log(title = "处方", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SwPrescription swPrescription)
{
List<SwPrescription> list = swPrescriptionService.selectSwPrescriptionList(swPrescription);
ExcelUtil<SwPrescription> util = new ExcelUtil<SwPrescription>(SwPrescription.class);
util.exportExcel(response, list, "处方数据");
}
/**
* 获取处方详细信息
*/
@PreAuthorize("@ss.hasPermi('biosafety:prescription:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(swPrescriptionService.selectSwPrescriptionById(id));
}
/**
* 新增处方
*/
@PreAuthorize("@ss.hasPermi('biosafety:prescription:add')")
@Log(title = "处方", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SwPrescription swPrescription)
{
return toAjax(swPrescriptionService.insertSwPrescription(swPrescription));
}
/**
* 修改处方
*/
@PreAuthorize("@ss.hasPermi('biosafety:prescription:edit')")
@Log(title = "处方", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SwPrescription swPrescription)
{
return toAjax(swPrescriptionService.updateSwPrescription(swPrescription));
}
/**
* 删除处方
*/
@PreAuthorize("@ss.hasPermi('biosafety:prescription:remove')")
@Log(title = "处方", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(swPrescriptionService.deleteSwPrescriptionByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.domain.SwUnit;
import com.zhyc.module.biosafety.service.ISwUnitService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 药品单位Controller
*
* @author ruoyi
* @date 2025-07-11
*/
@RestController
@RequestMapping("/biosafety/unit")
public class SwUnitController extends BaseController
{
@Autowired
private ISwUnitService swUnitService;
/**
* 查询药品单位列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:unit:list')")
@GetMapping("/list")
public TableDataInfo list(SwUnit swUnit)
{
startPage();
List<SwUnit> list = swUnitService.selectSwUnitList(swUnit);
return getDataTable(list);
}
/**
* 导出药品单位列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:unit:export')")
@Log(title = "药品单位", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SwUnit swUnit)
{
List<SwUnit> list = swUnitService.selectSwUnitList(swUnit);
ExcelUtil<SwUnit> util = new ExcelUtil<SwUnit>(SwUnit.class);
util.exportExcel(response, list, "药品单位数据");
}
/**
* 获取药品单位详细信息
*/
@PreAuthorize("@ss.hasPermi('biosafety:unit:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(swUnitService.selectSwUnitById(id));
}
/**
* 新增药品单位
*/
@PreAuthorize("@ss.hasPermi('biosafety:unit:add')")
@Log(title = "药品单位", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SwUnit swUnit)
{
return toAjax(swUnitService.insertSwUnit(swUnit));
}
/**
* 修改药品单位
*/
@PreAuthorize("@ss.hasPermi('biosafety:unit:edit')")
@Log(title = "药品单位", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SwUnit swUnit)
{
return toAjax(swUnitService.updateSwUnit(swUnit));
}
/**
* 删除药品单位
*/
@PreAuthorize("@ss.hasPermi('biosafety:unit:remove')")
@Log(title = "药品单位", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(swUnitService.deleteSwUnitByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.domain.SwUsage;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.module.biosafety.service.ISwUsageService;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 药品使用方法Controller
*
* @author ruoyi
* @date 2025-07-11
*/
@RestController
@RequestMapping("/biosafety/usage")
public class SwUsageController extends BaseController
{
@Autowired
private ISwUsageService swUsageService;
/**
* 查询药品使用方法列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:usage:list')")
@GetMapping("/list")
public TableDataInfo list(SwUsage swUsage)
{
startPage();
List<SwUsage> list = swUsageService.selectSwUsageList(swUsage);
return getDataTable(list);
}
/**
* 导出药品使用方法列表
*/
@PreAuthorize("@ss.hasPermi('biosafety:usage:export')")
@Log(title = "药品使用方法", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SwUsage swUsage)
{
List<SwUsage> list = swUsageService.selectSwUsageList(swUsage);
ExcelUtil<SwUsage> util = new ExcelUtil<SwUsage>(SwUsage.class);
util.exportExcel(response, list, "药品使用方法数据");
}
/**
* 获取药品使用方法详细信息
*/
@PreAuthorize("@ss.hasPermi('biosafety:usage:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(swUsageService.selectSwUsageById(id));
}
/**
* 新增药品使用方法
*/
@PreAuthorize("@ss.hasPermi('biosafety:usage:add')")
@Log(title = "药品使用方法", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SwUsage swUsage)
{
return toAjax(swUsageService.insertSwUsage(swUsage));
}
/**
* 修改药品使用方法
*/
@PreAuthorize("@ss.hasPermi('biosafety:usage:edit')")
@Log(title = "药品使用方法", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SwUsage swUsage)
{
return toAjax(swUsageService.updateSwUsage(swUsage));
}
/**
* 删除药品使用方法
*/
@PreAuthorize("@ss.hasPermi('biosafety:usage:remove')")
@Log(title = "药品使用方法", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(swUsageService.deleteSwUsageByIds(ids));
}
}

View File

@ -1,105 +0,0 @@
package com.zhyc.module.biosafety.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.zhyc.module.biosafety.domain.Treatment;
import com.zhyc.module.biosafety.service.ITreatmentService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhyc.common.annotation.Log;
import com.zhyc.common.core.controller.BaseController;
import com.zhyc.common.core.domain.AjaxResult;
import com.zhyc.common.enums.BusinessType;
import com.zhyc.common.utils.poi.ExcelUtil;
import com.zhyc.common.core.page.TableDataInfo;
/**
* 治疗记录Controller
*
* @author ruoyi
* @date 2025-07-15
*/
@RestController
@RequestMapping("/treatment/treatment")
public class TreatmentController extends BaseController
{
@Autowired
private ITreatmentService treatmentService;
/**
* 查询治疗记录列表
*/
@PreAuthorize("@ss.hasPermi('treatment:treatment:list')")
@GetMapping("/list")
public TableDataInfo list(Treatment treatment)
{
startPage();
List<Treatment> list = treatmentService.selectTreatmentList(treatment);
return getDataTable(list);
}
/**
* 导出治疗记录列表
*/
@PreAuthorize("@ss.hasPermi('treatment:treatment:export')")
@Log(title = "治疗记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, Treatment treatment)
{
List<Treatment> list = treatmentService.selectTreatmentList(treatment);
ExcelUtil<Treatment> util = new ExcelUtil<Treatment>(Treatment.class);
util.exportExcel(response, list, "治疗记录数据");
}
/**
* 获取治疗记录详细信息
*/
@PreAuthorize("@ss.hasPermi('treatment:treatment:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(treatmentService.selectTreatmentById(id));
}
/**
* 新增治疗记录
*/
@PreAuthorize("@ss.hasPermi('treatment:treatment:add')")
@Log(title = "治疗记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody Treatment treatment)
{
return toAjax(treatmentService.insertTreatment(treatment));
}
/**
* 修改治疗记录
*/
@PreAuthorize("@ss.hasPermi('treatment:treatment:edit')")
@Log(title = "治疗记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody Treatment treatment)
{
return toAjax(treatmentService.updateTreatment(treatment));
}
/**
* 删除治疗记录
*/
@PreAuthorize("@ss.hasPermi('treatment:treatment:remove')")
@Log(title = "治疗记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(treatmentService.deleteTreatmentByIds(ids));
}
}

View File

@ -1,75 +0,0 @@
package com.zhyc.module.biosafety.domain;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 驱虫对象 sw_deworm
*
* @author ruoyi
* @date 2025-07-15
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Deworm extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
private Long sheepId;
private Integer[] sheepIds;
/** 羊只id */
@Excel(name = "羊只耳号")
private String sheepNo;
@Excel(name = "品种")
private String variety;
@Excel(name = "羊只类别")
private String sheepType;
@Excel(name = "羊只性别")
private String gender;
@Excel(name = "月龄")
private Long monthAge;
@Excel(name = "繁殖状态")
private String breed;
/** 胎次 */
@Excel(name = "胎次")
private Long parity;
/** 药品使用记录 */
@Excel(name = "药品使用记录")
private Integer usageId;
// 药品使用
private List<SwMedicineUsageDetails> usageDetails;
/** 驱虫日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "驱虫日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date datetime;
/** 技术员 */
@Excel(name = "技术员")
private String technical;
/** 备注 */
@Excel(name = "备注")
private String comment;
}

View File

@ -1,97 +0,0 @@
package com.zhyc.module.biosafety.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 诊疗结果对象 sw_diagnosis
*
* @author ruoyi
* @date 2025-07-15
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Diagnosis extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 治疗记录id */
@Excel(name = "治疗记录")
private Long treatId;
/** 羊只id */
@Excel(name = "羊只耳号")
private String sheepNo;
private Long sheepId;
/** 时间日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "时间日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date datetime;
/** 羊只类别 */
@Excel(name = "羊只类别")
private String sheepType;
/** 性别 */
@Excel(name = "性别")
private String gender;
/** 性别 */
@Excel(name = "月龄")
private Long monthAge;
/** 胎次 */
@Excel(name = "胎次")
private String parity;
/** 疾病类型 */
@Excel(name = "疾病类型")
private String diseasePName;
private Long diseasePid;
/** 子疾病 */
@Excel(name = "子疾病")
private String diseaseName;
private Long diseaseId;
/** 诊疗结果 */
@Excel(name = "诊疗结果")
private String result;
/** 开始时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date begindate;
/** 结束时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date enddate;
/** 治疗天数 */
@Excel(name = "治疗天数")
private Long treatDay;
/** 羊舍id */
@Excel(name = "羊舍")
private String sheepfold;
private Long sheepfoldId;
}

View File

@ -1,67 +0,0 @@
package com.zhyc.module.biosafety.domain;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 消毒记录对象 sw_disinfect
*
* @author ruoyi
* @date 2025-07-15
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Disinfect extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
/** 羊舍id */
@Excel(name = "羊舍")
private String sheepfoldName;
private Integer sheepfoldId;
private Integer[] sheepfoldIds;
/** 消毒日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "消毒日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date datetime;
/** 技术员 */
@Excel(name = "技术员")
private String technician;
/** 消毒方式 */
@Excel(name = "消毒方式")
private String way;
/** 药品使用记录id */
@Excel(name = "药品使用记录id")
private Integer usageId;
/** 比例 */
@Excel(name = "比例")
private String ratio;
/** 备注 */
@Excel(name = "备注")
private String comment;
// 药品使用
private List<SwMedicineUsageDetails> usageDetails;
}

View File

@ -1,68 +0,0 @@
package com.zhyc.module.biosafety.domain;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 保健对象 sw_health
*
* @author ruoyi
* @date 2025-07-15
*/
@Data
public class Health extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 保健日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "保健日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date datetime;
/** 羊只id */
@Excel(name = "羊只id")
private Long sheepId;
private Integer[] sheepIds;
/** 羊只id */
@Excel(name = "羊只耳号")
private String sheepNo;
@Excel(name = "品种")
private String variety;
@Excel(name = "羊只类别")
private String sheepType;
@Excel(name = "羊只性别")
private String gender;
@Excel(name = "月龄")
private Long monthAge;
@Excel(name = "繁殖状态")
private String breed;
/** 胎次 */
@Excel(name = "胎次")
private Long parity;
/** 用药记录 */
@Excel(name = "用药记录")
private Integer usageId;
/** 技术员 */
@Excel(name = "技术员")
private String technical;
/** 备注 */
@Excel(name = "备注")
private String comment;
// 药品使用
private List<SwMedicineUsageDetails> usageDetails;
}

View File

@ -1,79 +0,0 @@
package com.zhyc.module.biosafety.domain;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 免疫对象 sw_immunity
*
* @author ruoyi
* @date 2025-07-15
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Immunity extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 羊只id */
@Excel(name = "羊只id")
private Long sheepId;
private Integer[] sheepIds;
/** 羊只id */
@Excel(name = "羊只耳号")
private String sheepNo;
@Excel(name = "品种")
private String variety;
@Excel(name = "羊只类别")
private String sheepType;
@Excel(name = "羊只性别")
private String gender;
@Excel(name = "月龄")
private Long monthAge;
@Excel(name = "繁殖状态")
private String breed;
/** 胎次 */
@Excel(name = "胎次")
private Long parity;
/** 使用记录 */
@Excel(name = "使用记录")
private Integer usageId;
/** 免疫日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "免疫日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date datetime;
/** 技术员 */
@Excel(name = "技术员")
private String technical;
/** 备注 */
@Excel(name = "备注")
private String comment;
// 药品使用
private List<SwMedicineUsageDetails> usageDetails;
}

View File

@ -1,31 +0,0 @@
package com.zhyc.module.biosafety.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 检疫项目对象 sw_quarantine_items
*
* @author ruoyi
* @date 2025-07-14
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QuarantineItems extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
/** 名称 */
@Excel(name = "名称")
private String name;
}

View File

@ -1,95 +0,0 @@
package com.zhyc.module.biosafety.domain;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
import org.apache.ibatis.type.Alias;
/**
* 检疫记录对象 sw_quarantine_report
*
* @author ruoyi
* @date 2025-07-14
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Alias("QuarantineReport")
public class QuarantineReport extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
// 羊只耳号
private String[] ids;
/** 羊只 */
private Long sheepId;
@Excel(name = "羊只耳号")
private String sheepNo;
@Excel(name = "羊只类别")
private String sheepType;
@Excel(name = "羊只性别")
private String gender;
@Excel(name = "月龄")
private Long monthAge;
@Excel(name = "胎次")
private Long parity;
@Excel(name = "繁育状态")
private String breed;
/** 检疫日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "检疫日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date datetime;
/** 检疫项目 */
private Long quarItem;
/** 检疫项目 */
@Excel(name = "检疫项目")
private String itemName;
/** 样品类型 */
private Long sampleType;
/** 样品 */
@Excel(name = "样品类型")
private String sample;
/** 采样员 */
@Excel(name = "采样员")
private String sampler;
/** 检疫员 */
@Excel(name = "检疫员")
private String quarOfficer;
/** 检疫结果 */
@Excel(name = "检疫结果")
private String result;
/** 状态 */
@Excel(name = "状态")
private Integer status;
/** 备注*/
@Excel(name = "备注")
private String comment;
}

View File

@ -1,31 +0,0 @@
package com.zhyc.module.biosafety.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 样品类型对象 sw_quarantine_sample
*
* @author ruoyi
* @date 2025-07-14
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QuarantineSample extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
/** 样品类型 */
@Excel(name = "样品类型")
private String name;
}

View File

@ -1,40 +0,0 @@
package com.zhyc.module.biosafety.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.TreeEntity;
/**
* 疾病对象 sw_disease
*
* @author ruoyi
* @date 2025-07-09
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SwDisease extends TreeEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
/** 名称 */
@Excel(name = "名称")
private String name;
/** 描述 */
@Excel(name = "描述")
private String comment;
/** */
@Excel(name = "")
private Long pid;
}

View File

@ -1,58 +0,0 @@
package com.zhyc.module.biosafety.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 药品类型对象 sw_medic_type
*
* @author ruoyi
* @date 2025-07-11
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SwMedicType extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Long id;
/** 药品类型 */
@Excel(name = "药品类型")
private String name;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.toString();
}
}

View File

@ -1,49 +0,0 @@
package com.zhyc.module.biosafety.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 药品对象 sw_medicine
*
* @author ruoyi
* @date 2025-07-11
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SwMedicine extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** */
private Long id;
/** 药品编号 */
@Excel(name = "药品编号")
private String medica;
/** 药品名称 */
@Excel(name = "药品名称")
private String name;
/** 药品类型 */
@Excel(name = "药品类型")
private Long medicType;
/** 使用方法 */
@Excel(name = "使用方法")
private Long usageId;
/** 备注 */
@Excel(name = "备注")
private String comment;
}

View File

@ -1,41 +0,0 @@
package com.zhyc.module.biosafety.domain;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 药品使用记录对象 sw_medicine_usage
*
* @author ruoyi
* @date 2025-07-12
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SwMedicineUsage extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Integer id;
/** 使用名称 */
@Excel(name = "使用名称")
private String name;
/** 使用类型 */
@Excel(name = "使用类型")
private String useType;
/** 药品使用记录详情信息 */
private List<SwMedicineUsageDetails> swMedicineUsageDetailsList;
}

View File

@ -1,59 +0,0 @@
package com.zhyc.module.biosafety.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 药品使用记录详情对象 sw_medicine_usage_details
*
* @author ruoyi
* @date 2025-07-12
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SwMedicineUsageDetails extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
/** 药品使用记录id */
@Excel(name = "药品使用记录id")
private Integer mediUsage;
/** 药品id */
@Excel(name = "药品id")
private Long mediId;
/** 药品名称*/
@Excel(name = "药品名称")
private String mediName;
/** 用量 */
@Excel(name = "用量")
private String dosage;
/** 单位 */
@Excel(name = "单位")
private String unit;
/** 使用方法 */
@Excel(name = "使用方法")
private String usageId;
/** 生产厂家 */
@Excel(name = "生产厂家")
private String manufacturer;
/** 生产批号 */
@Excel(name = "生产批号")
private String batchNumber;
}

View File

@ -1,114 +0,0 @@
package com.zhyc.module.biosafety.domain;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 处方详情对象 sw_pres_detail
*
* @author ruoyi
* @date 2025-07-11
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SwPresDetail extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
/** 处方id */
private Long persId;
/** 药品id */
@Excel(name = "药品id")
private Integer mediId;
/** 用量 */
@Excel(name = "用量")
private BigDecimal dosage;
/** 单位 */
@Excel(name = "单位")
private Integer unitId;
/** 使用方法 */
@Excel(name = "使用方法")
private Integer usageId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setPersId(Long persId)
{
this.persId = persId;
}
public Long getPersId()
{
return persId;
}
public void setMediId(Integer mediId)
{
this.mediId = mediId;
}
public Integer getMediId()
{
return mediId;
}
public void setDosage(BigDecimal dosage)
{
this.dosage = dosage;
}
public BigDecimal getDosage()
{
return dosage;
}
public void setUnitId(Integer unitId)
{
this.unitId = unitId;
}
public Integer getUnitId()
{
return unitId;
}
public void setUsageId(Integer usageId)
{
this.usageId = usageId;
}
public Integer getUsageId()
{
return usageId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("persId", getPersId())
.append("mediId", getMediId())
.append("dosage", getDosage())
.append("unitId", getUnitId())
.append("usageId", getUsageId())
.toString();
}
}

View File

@ -1,138 +0,0 @@
package com.zhyc.module.biosafety.domain;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 处方对象 sw_prescription
*
* @author ruoyi
* @date 2025-07-11
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SwPrescription extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long id;
/** 处方编号 */
@Excel(name = "处方编号")
private String no;
/** 处方名称 */
@Excel(name = "处方名称")
private String name;
/** 类型(免疫/保健/驱虫/消毒/疾病治疗) */
@Excel(name = "类型", readConverterExp = "免疫/保健/驱虫/消毒/疾病治疗")
private Integer persType;
/** 备注 */
@Excel(name = "备注")
private String comment;
/** 状态(0禁用1启用) */
@Excel(name = "状态(0禁用1启用)")
private Integer status;
/** 处方详情信息 */
private List<SwPresDetail> swPresDetailList;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setNo(String no)
{
this.no = no;
}
public String getNo()
{
return no;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setPersType(Integer persType)
{
this.persType = persType;
}
public Integer getPersType()
{
return persType;
}
public void setComment(String comment)
{
this.comment = comment;
}
public String getComment()
{
return comment;
}
public void setStatus(Integer status)
{
this.status = status;
}
public Integer getStatus()
{
return status;
}
public List<SwPresDetail> getSwPresDetailList()
{
return swPresDetailList;
}
public void setSwPresDetailList(List<SwPresDetail> swPresDetailList)
{
this.swPresDetailList = swPresDetailList;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("no", getNo())
.append("name", getName())
.append("persType", getPersType())
.append("comment", getComment())
.append("status", getStatus())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("swPresDetailList", getSwPresDetailList())
.toString();
}
}

View File

@ -1,33 +0,0 @@
package com.zhyc.module.biosafety.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 药品单位对象 sw_unit
*
* @author ruoyi
* @date 2025-07-11
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SwUnit extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Integer id;
/** 单位 */
@Excel(name = "单位")
private String name;
/* 国际单位*/
private String unit;
}

View File

@ -1,32 +0,0 @@
package com.zhyc.module.biosafety.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 药品使用方法对象 sw_usage
*
* @author ruoyi
* @date 2025-07-11
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SwUsage extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 编号 */
private Integer id;
/** 使用方法 */
@Excel(name = "使用方法")
private String name;
}

View File

@ -1,107 +0,0 @@
package com.zhyc.module.biosafety.domain;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zhyc.common.annotation.Excel;
import com.zhyc.common.core.domain.BaseEntity;
/**
* 治疗记录对象 sw_treatment
*
* @author ruoyi
* @date 2025-07-15
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Treatment extends BaseEntity
{
private static final long serialVersionUID = 1L;
private Long id;
/** 诊疗记录id */
private Long diagId;
/** 羊只耳号 */
@Excel(name = "羊只耳号")
private String sheepNo;
private Long sheepId;
// 用于批量新增
private List<String> sheepIds;
/** 品种 */
@Excel(name = "品种")
private String variety;
/** 羊只类别 */
@Excel(name = "羊只类别")
private String sheepType;
/** 月龄 */
@Excel(name = "月龄")
private Long monthAge;
/** 性别 */
@Excel(name = "性别")
private String gender;
/** 胎次 */
@Excel(name = "胎次")
private Long parity;
/** 繁殖状态 */
@Excel(name = "繁殖状态")
private String breed;
/** 泌乳天数 */
@Excel(name = "泌乳天数")
private Long lactDay;
/** 怀孕天数 */
@Excel(name = "怀孕天数")
private Long gestDay;
/** 治疗日期 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "治疗日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date datetime;
/** 疾病类型 */
@Excel(name = "疾病类型")
private String diseaseName;
private Long diseaseId;
/** 父疾病 */
@Excel(name = "父疾病")
private String diseasePName;
private Long diseasePid;
/** 兽医 */
@Excel(name = "兽医")
private String veterinary;
/** 药品使用记录id */
@Excel(name = "药品使用记录id")
private Integer usageId;
// 药品使用
private List<SwMedicineUsageDetails> usageDetails;
/** 备注 */
@Excel(name = "备注")
private String comment;
}

View File

@ -1,64 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.Deworm;
import org.apache.ibatis.annotations.Mapper;
/**
* 驱虫Mapper接口
*
* @author ruoyi
* @date 2025-07-15
*/
@Mapper
public interface DewormMapper
{
/**
* 查询驱虫
*
* @param id 驱虫主键
* @return 驱虫
*/
public Deworm selectDewormById(Long id);
/**
* 查询驱虫列表
*
* @param deworm 驱虫
* @return 驱虫集合
*/
public List<Deworm> selectDewormList(Deworm deworm);
/**
* 新增驱虫
*
* @param deworm 驱虫
* @return 结果
*/
public int insertDeworm(List<Deworm> deworm);
/**
* 修改驱虫
*
* @param deworm 驱虫
* @return 结果
*/
public int updateDeworm(Deworm deworm);
/**
* 删除驱虫
*
* @param id 驱虫主键
* @return 结果
*/
public int deleteDewormById(Long id);
/**
* 批量删除驱虫
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDewormByIds(Long[] ids);
}

View File

@ -1,63 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.Diagnosis;
import org.apache.ibatis.annotations.Mapper;
/**
* 诊疗结果Mapper接口
*
* @author ruoyi
* @date 2025-07-15
*/
@Mapper
public interface DiagnosisMapper
{
/**
* 查询诊疗结果
*
* @param id 诊疗结果主键
* @return 诊疗结果
*/
public Diagnosis selectDiagnosisById(Long id);
/**
* 查询诊疗结果列表
*
* @param diagnosis 诊疗结果
* @return 诊疗结果集合
*/
public List<Diagnosis> selectDiagnosisList(Diagnosis diagnosis);
/**
* 新增诊疗结果
*
* @param diagnosis 诊疗结果
* @return 结果
*/
public int insertDiagnosis(Diagnosis diagnosis);
/**
* 修改诊疗结果
*
* @param diagnosis 诊疗结果
* @return 结果
*/
public int updateDiagnosis(Diagnosis diagnosis);
/**
* 删除诊疗结果
*
* @param id 诊疗结果主键
* @return 结果
*/
public int deleteDiagnosisById(Long id);
/**
* 批量删除诊疗结果
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDiagnosisByIds(Long[] ids);
}

View File

@ -1,63 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.Disinfect;
import org.apache.ibatis.annotations.Mapper;
/**
* 消毒记录Mapper接口
*
* @author ruoyi
* @date 2025-07-15
*/
@Mapper
public interface DisinfectMapper
{
/**
* 查询消毒记录
*
* @param id 消毒记录主键
* @return 消毒记录
*/
public Disinfect selectDisinfectById(Long id);
/**
* 查询消毒记录列表
*
* @param disinfect 消毒记录
* @return 消毒记录集合
*/
public List<Disinfect> selectDisinfectList(Disinfect disinfect);
/**
* 新增消毒记录
*
* @param disinfect 消毒记录
* @return 结果
*/
public int insertDisinfect(List<Disinfect> disinfect);
/**
* 修改消毒记录
*
* @param disinfect 消毒记录
* @return 结果
*/
public int updateDisinfect(Disinfect disinfect);
/**
* 删除消毒记录
*
* @param id 消毒记录主键
* @return 结果
*/
public int deleteDisinfectById(Long id);
/**
* 批量删除消毒记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteDisinfectByIds(Long[] ids);
}

View File

@ -1,63 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.Health;
import org.apache.ibatis.annotations.Mapper;
/**
* 保健Mapper接口
*
* @author ruoyi
* @date 2025-07-15
*/
@Mapper
public interface HealthMapper
{
/**
* 查询保健
*
* @param id 保健主键
* @return 保健
*/
public Health selectHealthById(Long id);
/**
* 查询保健列表
*
* @param health 保健
* @return 保健集合
*/
public List<Health> selectHealthList(Health health);
/**
* 新增保健
*
* @param health 保健
* @return 结果
*/
public int insertHealth(List<Health> health);
/**
* 修改保健
*
* @param health 保健
* @return 结果
*/
public int updateHealth(Health health);
/**
* 删除保健
*
* @param id 保健主键
* @return 结果
*/
public int deleteHealthById(Long id);
/**
* 批量删除保健
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteHealthByIds(Long[] ids);
}

View File

@ -1,63 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.Immunity;
import org.apache.ibatis.annotations.Mapper;
/**
* 免疫Mapper接口
*
* @author ruoyi
* @date 2025-07-15
*/
@Mapper
public interface ImmunityMapper
{
/**
* 查询免疫
*
* @param id 免疫主键
* @return 免疫
*/
public Immunity selectImmunityById(Long id);
/**
* 查询免疫列表
*
* @param immunity 免疫
* @return 免疫集合
*/
public List<Immunity> selectImmunityList(Immunity immunity);
/**
* 新增免疫
*
* @param immunity 免疫
* @return 结果
*/
public int insertImmunity(List<Immunity> immunity);
/**
* 修改免疫
*
* @param immunity 免疫
* @return 结果
*/
public int updateImmunity(Immunity immunity);
/**
* 删除免疫
*
* @param id 免疫主键
* @return 结果
*/
public int deleteImmunityById(Long id);
/**
* 批量删除免疫
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteImmunityByIds(Long[] ids);
}

View File

@ -1,64 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.QuarantineItems;
import org.apache.ibatis.annotations.Mapper;
/**
* 检疫项目Mapper接口
*
* @author ruoyi
* @date 2025-07-14
*/
@Mapper
public interface QuarantineItemsMapper
{
/**
* 查询检疫项目
*
* @param id 检疫项目主键
* @return 检疫项目
*/
public QuarantineItems selectQuarantineItemsById(Long id);
/**
* 查询检疫项目列表
*
* @param quarantineItems 检疫项目
* @return 检疫项目集合
*/
public List<QuarantineItems> selectQuarantineItemsList(QuarantineItems quarantineItems);
/**
* 新增检疫项目
*
* @param quarantineItems 检疫项目
* @return 结果
*/
public int insertQuarantineItems(QuarantineItems quarantineItems);
/**
* 修改检疫项目
*
* @param quarantineItems 检疫项目
* @return 结果
*/
public int updateQuarantineItems(QuarantineItems quarantineItems);
/**
* 删除检疫项目
*
* @param id 检疫项目主键
* @return 结果
*/
public int deleteQuarantineItemsById(Long id);
/**
* 批量删除检疫项目
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteQuarantineItemsByIds(Long[] ids);
}

View File

@ -1,64 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.QuarantineReport;
import org.apache.ibatis.annotations.Mapper;
/**
* 检疫记录Mapper接口
*
* @author ruoyi
* @date 2025-07-14
*/
@Mapper
public interface QuarantineReportMapper
{
/**
* 查询检疫记录
*
* @param id 检疫记录主键
* @return 检疫记录
*/
public QuarantineReport selectQuarantineReportById(Long id);
/**
* 查询检疫记录列表
*
* @param quarantineReport 检疫记录
* @return 检疫记录集合
*/
public List<QuarantineReport> selectQuarantineReportList(QuarantineReport quarantineReport);
/**
* 新增检疫记录
*
* @param quarantineReport 检疫记录
* @return 结果
*/
public int insertQuarantineReport(List<QuarantineReport> quarantineReport);
/**
* 修改检疫记录
*
* @param quarantineReport 检疫记录
* @return 结果
*/
public int updateQuarantineReport(QuarantineReport quarantineReport);
/**
* 删除检疫记录
*
* @param id 检疫记录主键
* @return 结果
*/
public int deleteQuarantineReportById(Long id);
/**
* 批量删除检疫记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteQuarantineReportByIds(Long[] ids);
}

View File

@ -1,64 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.QuarantineSample;
import org.apache.ibatis.annotations.Mapper;
/**
* 样品类型Mapper接口
*
* @author ruoyi
* @date 2025-07-14
*/
@Mapper
public interface QuarantineSampleMapper
{
/**
* 查询样品类型
*
* @param id 样品类型主键
* @return 样品类型
*/
public QuarantineSample selectQuarantineSampleById(Long id);
/**
* 查询样品类型列表
*
* @param quarantineSample 样品类型
* @return 样品类型集合
*/
public List<QuarantineSample> selectQuarantineSampleList(QuarantineSample quarantineSample);
/**
* 新增样品类型
*
* @param quarantineSample 样品类型
* @return 结果
*/
public int insertQuarantineSample(QuarantineSample quarantineSample);
/**
* 修改样品类型
*
* @param quarantineSample 样品类型
* @return 结果
*/
public int updateQuarantineSample(QuarantineSample quarantineSample);
/**
* 删除样品类型
*
* @param id 样品类型主键
* @return 结果
*/
public int deleteQuarantineSampleById(Long id);
/**
* 批量删除样品类型
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteQuarantineSampleByIds(Long[] ids);
}

View File

@ -1,63 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.SwDisease;
import org.apache.ibatis.annotations.Mapper;
/**
* 疾病Mapper接口
*
* @author ruoyi
* @date 2025-07-09
*/
@Mapper
public interface SwDiseaseMapper
{
/**
* 查询疾病
*
* @param id 疾病主键
* @return 疾病
*/
public SwDisease selectSwDiseaseById(Long id);
/**
* 查询疾病列表
*
* @param swDisease 疾病
* @return 疾病集合
*/
public List<SwDisease> selectSwDiseaseList(SwDisease swDisease);
/**
* 新增疾病
*
* @param swDisease 疾病
* @return 结果
*/
public int insertSwDisease(SwDisease swDisease);
/**
* 修改疾病
*
* @param swDisease 疾病
* @return 结果
*/
public int updateSwDisease(SwDisease swDisease);
/**
* 删除疾病
*
* @param id 疾病主键
* @return 结果
*/
public int deleteSwDiseaseById(Long id);
/**
* 批量删除疾病
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSwDiseaseByIds(Long[] ids);
}

View File

@ -1,64 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.SwMedicType;
import org.apache.ibatis.annotations.Mapper;
/**
* 药品类型Mapper接口
*
* @author ruoyi
* @date 2025-07-11
*/
@Mapper
public interface SwMedicTypeMapper
{
/**
* 查询药品类型
*
* @param id 药品类型主键
* @return 药品类型
*/
public SwMedicType selectSwMedicTypeById(Long id);
/**
* 查询药品类型列表
*
* @param swMedicType 药品类型
* @return 药品类型集合
*/
public List<SwMedicType> selectSwMedicTypeList(SwMedicType swMedicType);
/**
* 新增药品类型
*
* @param swMedicType 药品类型
* @return 结果
*/
public int insertSwMedicType(SwMedicType swMedicType);
/**
* 修改药品类型
*
* @param swMedicType 药品类型
* @return 结果
*/
public int updateSwMedicType(SwMedicType swMedicType);
/**
* 删除药品类型
*
* @param id 药品类型主键
* @return 结果
*/
public int deleteSwMedicTypeById(Long id);
/**
* 批量删除药品类型
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSwMedicTypeByIds(Long[] ids);
}

View File

@ -1,63 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.SwMedicine;
import org.apache.ibatis.annotations.Mapper;
/**
* 药品Mapper接口
*
* @author ruoyi
* @date 2025-07-11
*/
@Mapper
public interface SwMedicineMapper
{
/**
* 查询药品
*
* @param id 药品主键
* @return 药品
*/
public SwMedicine selectSwMedicineById(Long id);
/**
* 查询药品列表
*
* @param swMedicine 药品
* @return 药品集合
*/
public List<SwMedicine> selectSwMedicineList(SwMedicine swMedicine);
/**
* 新增药品
*
* @param swMedicine 药品
* @return 结果
*/
public int insertSwMedicine(SwMedicine swMedicine);
/**
* 修改药品
*
* @param swMedicine 药品
* @return 结果
*/
public int updateSwMedicine(SwMedicine swMedicine);
/**
* 删除药品
*
* @param id 药品主键
* @return 结果
*/
public int deleteSwMedicineById(Long id);
/**
* 批量删除药品
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSwMedicineByIds(Long[] ids);
}

View File

@ -1,90 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.SwMedicineUsage;
import com.zhyc.module.biosafety.domain.SwMedicineUsageDetails;
import org.apache.ibatis.annotations.Mapper;
/**
* 药品使用记录Mapper接口
*
* @author ruoyi
* @date 2025-07-12
*/
@Mapper
public interface SwMedicineUsageMapper
{
/**
* 查询药品使用记录
*
* @param id 药品使用记录主键
* @return 药品使用记录
*/
public SwMedicineUsage selectSwMedicineUsageById(Integer id);
/**
* 查询药品使用记录列表
*
* @param swMedicineUsage 药品使用记录
* @return 药品使用记录集合
*/
public List<SwMedicineUsage> selectSwMedicineUsageList(SwMedicineUsage swMedicineUsage);
/**
* 新增药品使用记录
*
* @param swMedicineUsage 药品使用记录
* @return 结果
*/
public int insertSwMedicineUsage(SwMedicineUsage swMedicineUsage);
/**
* 修改药品使用记录
*
* @param swMedicineUsage 药品使用记录
* @return 结果
*/
public int updateSwMedicineUsage(SwMedicineUsage swMedicineUsage);
/**
* 删除药品使用记录
*
* @param id 药品使用记录主键
* @return 结果
*/
public int deleteSwMedicineUsageById(Integer id);
/**
* 批量删除药品使用记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSwMedicineUsageByIds(Long[] ids);
/**
* 批量删除药品使用记录详情
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSwMedicineUsageDetailsByMediUsages(Long[] ids);
/**
* 批量新增药品使用记录详情
*
* @param swMedicineUsageDetailsList 药品使用记录详情列表
* @return 结果
*/
public int batchSwMedicineUsageDetails(List<SwMedicineUsageDetails> swMedicineUsageDetailsList);
/**
* 通过药品使用记录主键删除药品使用记录详情信息
*
* @param id 药品使用记录ID
* @return 结果
*/
public int deleteSwMedicineUsageDetailsByMediUsage(Integer id);
}

View File

@ -1,89 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.SwPrescription;
import com.zhyc.module.biosafety.domain.SwPresDetail;
import org.apache.ibatis.annotations.Mapper;
/**
* 处方Mapper接口
*
* @author ruoyi
* @date 2025-07-11
*/
@Mapper
public interface SwPrescriptionMapper
{
/**
* 查询处方
*
* @param id 处方主键
* @return 处方
*/
public SwPrescription selectSwPrescriptionById(Long id);
/**
* 查询处方列表
*
* @param swPrescription 处方
* @return 处方集合
*/
public List<SwPrescription> selectSwPrescriptionList(SwPrescription swPrescription);
/**
* 新增处方
*
* @param swPrescription 处方
* @return 结果
*/
public int insertSwPrescription(SwPrescription swPrescription);
/**
* 修改处方
*
* @param swPrescription 处方
* @return 结果
*/
public int updateSwPrescription(SwPrescription swPrescription);
/**
* 删除处方
*
* @param id 处方主键
* @return 结果
*/
public int deleteSwPrescriptionById(Long id);
/**
* 批量删除处方
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSwPrescriptionByIds(Long[] ids);
/**
* 批量删除处方详情
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSwPresDetailByPersIds(Long[] ids);
/**
* 批量新增处方详情
*
* @param swPresDetailList 处方详情列表
* @return 结果
*/
public int batchSwPresDetail(List<SwPresDetail> swPresDetailList);
/**
* 通过处方主键删除处方详情信息
*
* @param id 处方ID
* @return 结果
*/
public int deleteSwPresDetailByPersId(Long id);
}

View File

@ -1,64 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import com.zhyc.module.biosafety.domain.SwUnit;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
* 药品单位Mapper接口
*
* @author ruoyi
* @date 2025-07-11
*/
@Mapper
public interface SwUnitMapper
{
/**
* 查询药品单位
*
* @param id 药品单位主键
* @return 药品单位
*/
public SwUnit selectSwUnitById(Long id);
/**
* 查询药品单位列表
*
* @param swUnit 药品单位
* @return 药品单位集合
*/
public List<SwUnit> selectSwUnitList(SwUnit swUnit);
/**
* 新增药品单位
*
* @param swUnit 药品单位
* @return 结果
*/
public int insertSwUnit(SwUnit swUnit);
/**
* 修改药品单位
*
* @param swUnit 药品单位
* @return 结果
*/
public int updateSwUnit(SwUnit swUnit);
/**
* 删除药品单位
*
* @param id 药品单位主键
* @return 结果
*/
public int deleteSwUnitById(Long id);
/**
* 批量删除药品单位
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSwUnitByIds(Long[] ids);
}

View File

@ -1,63 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.SwUsage;
import org.apache.ibatis.annotations.Mapper;
/**
* 药品使用方法Mapper接口
*
* @author ruoyi
* @date 2025-07-11
*/
@Mapper
public interface SwUsageMapper
{
/**
* 查询药品使用方法
*
* @param id 药品使用方法主键
* @return 药品使用方法
*/
public SwUsage selectSwUsageById(Long id);
/**
* 查询药品使用方法列表
*
* @param swUsage 药品使用方法
* @return 药品使用方法集合
*/
public List<SwUsage> selectSwUsageList(SwUsage swUsage);
/**
* 新增药品使用方法
*
* @param swUsage 药品使用方法
* @return 结果
*/
public int insertSwUsage(SwUsage swUsage);
/**
* 修改药品使用方法
*
* @param swUsage 药品使用方法
* @return 结果
*/
public int updateSwUsage(SwUsage swUsage);
/**
* 删除药品使用方法
*
* @param id 药品使用方法主键
* @return 结果
*/
public int deleteSwUsageById(Long id);
/**
* 批量删除药品使用方法
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSwUsageByIds(Long[] ids);
}

View File

@ -1,66 +0,0 @@
package com.zhyc.module.biosafety.mapper;
import java.util.List;
import com.zhyc.module.biosafety.domain.Treatment;
import org.apache.ibatis.annotations.Mapper;
/**
* 治疗记录Mapper接口
*
* @author ruoyi
* @date 2025-07-15
*/
@Mapper
public interface TreatmentMapper
{
/**
* 查询治疗记录
*
* @param id 治疗记录主键
* @return 治疗记录
*/
public Treatment selectTreatmentById(Long id);
/**
* 查询治疗记录列表
*
* @param treatment 治疗记录
* @return 治疗记录集合
*/
public List<Treatment> selectTreatmentList(Treatment treatment);
/**
* 新增治疗记录
*
* @param treatment 治疗记录
* @return 结果
*/
public int insertTreatment(Treatment treatment);
/**
* 修改治疗记录
*
* @param treatment 治疗记录
* @return 结果
*/
public int updateTreatment(Treatment treatment);
/**
* 删除治疗记录
*
* @param id 治疗记录主键
* @return 结果
*/
public int deleteTreatmentById(Long id);
/**
* 批量删除治疗记录
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteTreatmentByIds(Long[] ids);
int insertTreatmentList(List<Treatment> treatments);
}

View File

@ -1,62 +0,0 @@
package com.zhyc.module.biosafety.service;
import java.util.List;
import com.zhyc.module.biosafety.domain.Deworm;
/**
* 驱虫Service接口
*
* @author ruoyi
* @date 2025-07-15
*/
public interface IDewormService
{
/**
* 查询驱虫
*
* @param id 驱虫主键
* @return 驱虫
*/
public Deworm selectDewormById(Long id);
/**
* 查询驱虫列表
*
* @param deworm 驱虫
* @return 驱虫集合
*/
public List<Deworm> selectDewormList(Deworm deworm);
/**
* 新增驱虫
*
* @param deworm 驱虫
* @return 结果
*/
public int insertDeworm(Deworm deworm);
/**
* 修改驱虫
*
* @param deworm 驱虫
* @return 结果
*/
public int updateDeworm(Deworm deworm);
/**
* 批量删除驱虫
*
* @param ids 需要删除的驱虫主键集合
* @return 结果
*/
public int deleteDewormByIds(Long[] ids);
/**
* 删除驱虫信息
*
* @param id 驱虫主键
* @return 结果
*/
public int deleteDewormById(Long id);
}

View File

@ -1,62 +0,0 @@
package com.zhyc.module.biosafety.service;
import java.util.List;
import com.zhyc.module.biosafety.domain.Diagnosis;
/**
* 诊疗结果Service接口
*
* @author ruoyi
* @date 2025-07-15
*/
public interface IDiagnosisService
{
/**
* 查询诊疗结果
*
* @param id 诊疗结果主键
* @return 诊疗结果
*/
public Diagnosis selectDiagnosisById(Long id);
/**
* 查询诊疗结果列表
*
* @param diagnosis 诊疗结果
* @return 诊疗结果集合
*/
public List<Diagnosis> selectDiagnosisList(Diagnosis diagnosis);
/**
* 新增诊疗结果
*
* @param diagnosis 诊疗结果
* @return 结果
*/
public int insertDiagnosis(Diagnosis diagnosis);
/**
* 修改诊疗结果
*
* @param diagnosis 诊疗结果
* @return 结果
*/
public int updateDiagnosis(Diagnosis diagnosis);
/**
* 批量删除诊疗结果
*
* @param ids 需要删除的诊疗结果主键集合
* @return 结果
*/
public int deleteDiagnosisByIds(Long[] ids);
/**
* 删除诊疗结果信息
*
* @param id 诊疗结果主键
* @return 结果
*/
public int deleteDiagnosisById(Long id);
}

View File

@ -1,61 +0,0 @@
package com.zhyc.module.biosafety.service;
import java.util.List;
import com.zhyc.module.biosafety.domain.Disinfect;
/**
* 消毒记录Service接口
*
* @author ruoyi
* @date 2025-07-15
*/
public interface IDisinfectService
{
/**
* 查询消毒记录
*
* @param id 消毒记录主键
* @return 消毒记录
*/
public Disinfect selectDisinfectById(Long id);
/**
* 查询消毒记录列表
*
* @param disinfect 消毒记录
* @return 消毒记录集合
*/
public List<Disinfect> selectDisinfectList(Disinfect disinfect);
/**
* 新增消毒记录
*
* @param disinfect 消毒记录
* @return 结果
*/
public int insertDisinfect(Disinfect disinfect);
/**
* 修改消毒记录
*
* @param disinfect 消毒记录
* @return 结果
*/
public int updateDisinfect(Disinfect disinfect);
/**
* 批量删除消毒记录
*
* @param ids 需要删除的消毒记录主键集合
* @return 结果
*/
public int deleteDisinfectByIds(Long[] ids);
/**
* 删除消毒记录信息
*
* @param id 消毒记录主键
* @return 结果
*/
public int deleteDisinfectById(Long id);
}

View File

@ -1,61 +0,0 @@
package com.zhyc.module.biosafety.service;
import java.util.List;
import com.zhyc.module.biosafety.domain.Health;
/**
* 保健Service接口
*
* @author ruoyi
* @date 2025-07-15
*/
public interface IHealthService
{
/**
* 查询保健
*
* @param id 保健主键
* @return 保健
*/
public Health selectHealthById(Long id);
/**
* 查询保健列表
*
* @param health 保健
* @return 保健集合
*/
public List<Health> selectHealthList(Health health);
/**
* 新增保健
*
* @param health 保健
* @return 结果
*/
public int insertHealth(Health health);
/**
* 修改保健
*
* @param health 保健
* @return 结果
*/
public int updateHealth(Health health);
/**
* 批量删除保健
*
* @param ids 需要删除的保健主键集合
* @return 结果
*/
public int deleteHealthByIds(Long[] ids);
/**
* 删除保健信息
*
* @param id 保健主键
* @return 结果
*/
public int deleteHealthById(Long id);
}

View File

@ -1,61 +0,0 @@
package com.zhyc.module.biosafety.service;
import java.util.List;
import com.zhyc.module.biosafety.domain.Immunity;
/**
* 免疫Service接口
*
* @author ruoyi
* @date 2025-07-15
*/
public interface IImmunityService
{
/**
* 查询免疫
*
* @param id 免疫主键
* @return 免疫
*/
public Immunity selectImmunityById(Long id);
/**
* 查询免疫列表
*
* @param immunity 免疫
* @return 免疫集合
*/
public List<Immunity> selectImmunityList(Immunity immunity);
/**
* 新增免疫
*
* @param immunity 免疫
* @return 结果
*/
public int insertImmunity(Immunity immunity);
/**
* 修改免疫
*
* @param immunity 免疫
* @return 结果
*/
public int updateImmunity(Immunity immunity);
/**
* 批量删除免疫
*
* @param ids 需要删除的免疫主键集合
* @return 结果
*/
public int deleteImmunityByIds(Long[] ids);
/**
* 删除免疫信息
*
* @param id 免疫主键
* @return 结果
*/
public int deleteImmunityById(Long id);
}

Some files were not shown because too many files have changed in this diff Show More