Browse Source

feat:[试验管理][物资信息]给药制剂,麻精药

master
15881625488@163.com 1 week ago
parent
commit
cd516a992e
13 changed files with 381 additions and 2 deletions
  1. +64
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyMaterialGyzjController.java
  2. +64
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyMaterialMjyController.java
  3. +45
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyMaterialGyzj.java
  4. +45
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyMaterialMjy.java
  5. +7
    -2
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/enums/zykgl/JcgjlxEnum.java
  6. +14
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/StudyMaterialGyzjMapper.java
  7. +14
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/StudyMaterialMjyMapper.java
  8. +23
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyMaterialGyzjService.java
  9. +23
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyMaterialMjyService.java
  10. +35
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyMaterialGyzjServiceImpl.java
  11. +35
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyMaterialMjyServiceImpl.java
  12. +6
    -0
      hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudyMaterialGyzjMapper.xml
  13. +6
    -0
      hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudyMaterialMjyMapper.xml

+ 64
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyMaterialGyzjController.java View File

@ -0,0 +1,64 @@
package com.hxhq.business.controller;
import java.util.Arrays;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.hxhq.business.domain.StudyMaterialGyzj;
import com.hxhq.business.service.IStudyMaterialGyzjService;
import com.hxhq.common.core.web.controller.BaseController;
import com.hxhq.common.core.web.domain.AjaxResult;
import com.hxhq.common.core.web.page.TableDataInfo;
/**
* 试验-物资列表-给药制剂Controller
*
* @author hxhq
* @date 2026-01-05
*/
@RestController
@RequestMapping("/business/studyMaterialGyzj")
public class StudyMaterialGyzjController extends BaseController
{
@Autowired
private IStudyMaterialGyzjService studyMaterialGyzjService;
/**
* 查询试验-物资列表-给药制剂列表
*/
@GetMapping("/list")
public TableDataInfo list(StudyMaterialGyzj studyMaterialGyzj)
{
startPage();
List<StudyMaterialGyzj> list = studyMaterialGyzjService.queryList(studyMaterialGyzj);
return getDataTable(list);
}
/**
* 获取试验-物资列表-给药制剂详细信息
*/
@GetMapping(value = "/info")
public AjaxResult getInfo(Long id)
{
return AjaxResult.success(studyMaterialGyzjService.getById(id));
}
/**
* 新增试验-物资列表-给药制剂信息
*/
@PostMapping("/save")
public AjaxResult save(@RequestBody StudyMaterialGyzj studyMaterialGyzj)
{
return toAjax(studyMaterialGyzjService.saveOrUpdate(studyMaterialGyzj));
}
/**
* 删除试验-物资列表-给药制剂信息
*/
@PostMapping("/delete")
public AjaxResult delete(@RequestBody Long[] ids)
{
return toAjax(studyMaterialGyzjService.removeByIds(Arrays.asList(ids)));
}
}

+ 64
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/StudyMaterialMjyController.java View File

@ -0,0 +1,64 @@
package com.hxhq.business.controller;
import java.util.Arrays;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.hxhq.business.domain.StudyMaterialMjy;
import com.hxhq.business.service.IStudyMaterialMjyService;
import com.hxhq.common.core.web.controller.BaseController;
import com.hxhq.common.core.web.domain.AjaxResult;
import com.hxhq.common.core.web.page.TableDataInfo;
/**
* 试验-物资列表-麻精药Controller
*
* @author hxhq
* @date 2026-01-05
*/
@RestController
@RequestMapping("/business/studyMaterialMjy")
public class StudyMaterialMjyController extends BaseController
{
@Autowired
private IStudyMaterialMjyService studyMaterialMjyService;
/**
* 查询试验-物资列表-麻精药列表
*/
@GetMapping("/list")
public TableDataInfo list(StudyMaterialMjy studyMaterialMjy)
{
startPage();
List<StudyMaterialMjy> list = studyMaterialMjyService.queryList(studyMaterialMjy);
return getDataTable(list);
}
/**
* 获取试验-物资列表-麻精药详细信息
*/
@GetMapping(value = "/info")
public AjaxResult getInfo(Long id)
{
return AjaxResult.success(studyMaterialMjyService.getById(id));
}
/**
* 新增试验-物资列表-麻精药信息
*/
@PostMapping("/save")
public AjaxResult save(@RequestBody StudyMaterialMjy studyMaterialMjy)
{
return toAjax(studyMaterialMjyService.saveOrUpdate(studyMaterialMjy));
}
/**
* 删除试验-物资列表-麻精药信息
*/
@PostMapping("/delete")
public AjaxResult delete(@RequestBody Long[] ids)
{
return toAjax(studyMaterialMjyService.removeByIds(Arrays.asList(ids)));
}
}

+ 45
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyMaterialGyzj.java View File

@ -0,0 +1,45 @@
package com.hxhq.business.domain;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hxhq.common.core.domain.MpBaseEntity;
/**
* 试验-物资列表-给药制剂对象 t_study_material_gyzj
*
* @author hxhq
* @date 2026-01-05
*/
@TableName("t_study_material_gyzj")
public class StudyMaterialGyzj extends MpBaseEntity
{
private static final long serialVersionUID = 1L;
/** 所属试验id */
private Long studyId;
/** 给药制剂id */
private Long gyzjId;
public void setStudyId(Long studyId)
{
this.studyId = studyId;
}
public Long getStudyId()
{
return studyId;
}
public void setGyzjId(Long gyzjId)
{
this.gyzjId = gyzjId;
}
public Long getGyzjId()
{
return gyzjId;
}
}

+ 45
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyMaterialMjy.java View File

@ -0,0 +1,45 @@
package com.hxhq.business.domain;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hxhq.common.core.domain.MpBaseEntity;
/**
* 试验-物资列表-麻精药对象 t_study_material_mjy
*
* @author hxhq
* @date 2026-01-05
*/
@TableName("t_study_material_mjy")
public class StudyMaterialMjy extends MpBaseEntity
{
private static final long serialVersionUID = 1L;
/** 所属试验id */
private Long studyId;
/** 麻精药id */
private Long mjyId;
public void setStudyId(Long studyId)
{
this.studyId = studyId;
}
public Long getStudyId()
{
return studyId;
}
public void setMjyId(Long mjyId)
{
this.mjyId = mjyId;
}
public Long getMjyId()
{
return mjyId;
}
}

+ 7
- 2
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/enums/zykgl/JcgjlxEnum.java View File

@ -1,7 +1,7 @@
package com.hxhq.business.enums.zykgl; package com.hxhq.business.enums.zykgl;
/** /**
* 稽查轨迹类型:1:流程3编辑5人员
* 稽查轨迹类型:1:流程3编辑5人员7修改
* @author tanfei * @author tanfei
*/ */
public enum JcgjlxEnum { public enum JcgjlxEnum {
@ -19,7 +19,12 @@ public enum JcgjlxEnum {
/** /**
* 人员 * 人员
*/ */
ry(5, "人员");
ry(5, "人员"),
/**
* 修改
*/
xg(7, "修改");
private int value; private int value;
private String text; private String text;

+ 14
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/StudyMaterialGyzjMapper.java View File

@ -0,0 +1,14 @@
package com.hxhq.business.mapper;
import com.hxhq.business.domain.StudyMaterialGyzj;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* 试验-物资列表-给药制剂Mapper接口
*
* @author hxhq
* @date 2026-01-05
*/
public interface StudyMaterialGyzjMapper extends BaseMapper<StudyMaterialGyzj>
{
}

+ 14
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/mapper/StudyMaterialMjyMapper.java View File

@ -0,0 +1,14 @@
package com.hxhq.business.mapper;
import com.hxhq.business.domain.StudyMaterialMjy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* 试验-物资列表-麻精药Mapper接口
*
* @author hxhq
* @date 2026-01-05
*/
public interface StudyMaterialMjyMapper extends BaseMapper<StudyMaterialMjy>
{
}

+ 23
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyMaterialGyzjService.java View File

@ -0,0 +1,23 @@
package com.hxhq.business.service;
import java.util.List;
import com.hxhq.business.domain.StudyMaterialGyzj;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 试验-物资列表-给药制剂Service接口
*
* @author hxhq
* @date 2026-01-05
*/
public interface IStudyMaterialGyzjService extends IService<StudyMaterialGyzj>
{
/**
* 查询试验-物资列表-给药制剂列表
*
* @param studyMaterialGyzj 试验-物资列表-给药制剂
* @return 试验-物资列表-给药制剂集合
*/
public List<StudyMaterialGyzj> queryList(StudyMaterialGyzj studyMaterialGyzj);
}

+ 23
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyMaterialMjyService.java View File

@ -0,0 +1,23 @@
package com.hxhq.business.service;
import java.util.List;
import com.hxhq.business.domain.StudyMaterialMjy;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 试验-物资列表-麻精药Service接口
*
* @author hxhq
* @date 2026-01-05
*/
public interface IStudyMaterialMjyService extends IService<StudyMaterialMjy>
{
/**
* 查询试验-物资列表-麻精药列表
*
* @param studyMaterialMjy 试验-物资列表-麻精药
* @return 试验-物资列表-麻精药集合
*/
public List<StudyMaterialMjy> queryList(StudyMaterialMjy studyMaterialMjy);
}

+ 35
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyMaterialGyzjServiceImpl.java View File

@ -0,0 +1,35 @@
package com.hxhq.business.service.impl;
import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hxhq.common.core.utils.DateUtils;
import org.springframework.stereotype.Service;
import com.hxhq.business.mapper.StudyMaterialGyzjMapper;
import com.hxhq.business.domain.StudyMaterialGyzj;
import com.hxhq.business.service.IStudyMaterialGyzjService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* 试验-物资列表-给药制剂Service业务层处理
*
* @author hxhq
* @date 2026-01-05
*/
@Service
public class StudyMaterialGyzjServiceImpl extends ServiceImpl<StudyMaterialGyzjMapper, StudyMaterialGyzj> implements IStudyMaterialGyzjService
{
/**
* 查询试验-物资列表-给药制剂列表
*
* @param studyMaterialGyzj 试验-物资列表-给药制剂
* @return 试验-物资列表-给药制剂
*/
@Override
public List<StudyMaterialGyzj> queryList(StudyMaterialGyzj studyMaterialGyzj)
{
QueryWrapper<StudyMaterialGyzj> queryWrapper = Wrappers.query();
return this.list(queryWrapper);
}
}

+ 35
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyMaterialMjyServiceImpl.java View File

@ -0,0 +1,35 @@
package com.hxhq.business.service.impl;
import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hxhq.common.core.utils.DateUtils;
import org.springframework.stereotype.Service;
import com.hxhq.business.mapper.StudyMaterialMjyMapper;
import com.hxhq.business.domain.StudyMaterialMjy;
import com.hxhq.business.service.IStudyMaterialMjyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* 试验-物资列表-麻精药Service业务层处理
*
* @author hxhq
* @date 2026-01-05
*/
@Service
public class StudyMaterialMjyServiceImpl extends ServiceImpl<StudyMaterialMjyMapper, StudyMaterialMjy> implements IStudyMaterialMjyService
{
/**
* 查询试验-物资列表-麻精药列表
*
* @param studyMaterialMjy 试验-物资列表-麻精药
* @return 试验-物资列表-麻精药
*/
@Override
public List<StudyMaterialMjy> queryList(StudyMaterialMjy studyMaterialMjy)
{
QueryWrapper<StudyMaterialMjy> queryWrapper = Wrappers.query();
return this.list(queryWrapper);
}
}

+ 6
- 0
hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudyMaterialGyzjMapper.xml View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hxhq.business.mapper.StudyMaterialGyzjMapper">
</mapper>

+ 6
- 0
hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudyMaterialMjyMapper.xml View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hxhq.business.mapper.StudyMaterialMjyMapper">
</mapper>

Loading…
Cancel
Save