| @ -1,66 +0,0 @@ | |||
| package com.hxhq.business.controller; | |||
| import java.util.Arrays; | |||
| import java.util.List; | |||
| import org.springframework.beans.factory.annotation.Autowired; | |||
| import org.springframework.stereotype.Controller; | |||
| import org.springframework.web.bind.annotation.*; | |||
| import com.hxhq.business.domain.ZcgYj; | |||
| import com.hxhq.business.service.IZcgYjService; | |||
| 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 2025-12-18 | |||
| */ | |||
| @RestController | |||
| @RequestMapping("/business/zcgYj") | |||
| public class ZcgYjController extends BaseController | |||
| { | |||
| @Autowired | |||
| private IZcgYjService zcgYjService; | |||
| /** | |||
| * 查询暂存柜-关联药剂列表 | |||
| */ | |||
| @GetMapping("/list") | |||
| public TableDataInfo list(ZcgYj zcgYj) | |||
| { | |||
| startPage(); | |||
| List<ZcgYj> list = zcgYjService.queryList(zcgYj); | |||
| return getDataTable(list); | |||
| } | |||
| /** | |||
| * 获取暂存柜-关联药剂详细信息 | |||
| */ | |||
| @GetMapping(value = "/info") | |||
| public AjaxResult getInfo(Long id) | |||
| { | |||
| return AjaxResult.success(zcgYjService.getById(id)); | |||
| } | |||
| /** | |||
| * 新增暂存柜-关联药剂信息 | |||
| */ | |||
| @PostMapping("/save") | |||
| public AjaxResult save(@RequestBody ZcgYj zcgYj) | |||
| { | |||
| return toAjax(zcgYjService.saveOrUpdate(zcgYj)); | |||
| } | |||
| /** | |||
| * 删除暂存柜-关联药剂信息 | |||
| */ | |||
| @PostMapping("/delete") | |||
| public AjaxResult delete(@RequestBody Long[] ids) | |||
| { | |||
| return toAjax(zcgYjService.removeByIds(Arrays.asList(ids))); | |||
| } | |||
| } | |||
| @ -1,71 +0,0 @@ | |||
| package com.hxhq.business.domain; | |||
| import com.baomidou.mybatisplus.annotation.TableName; | |||
| import com.hxhq.common.core.domain.MpBaseEntity; | |||
| /** | |||
| * 暂存柜-关联药剂对象 t_zcg_yj | |||
| * | |||
| * @author hxhq | |||
| * @date 2025-12-18 | |||
| */ | |||
| @TableName("t_zcg_yj") | |||
| public class ZcgYj extends MpBaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 暂存库id */ | |||
| private Long zcgId; | |||
| /** 药剂名称 */ | |||
| private String yjmc; | |||
| /** 药剂id */ | |||
| private Long yjId; | |||
| /** 药剂类型:1:供试品;3:给药制剂;5:麻精药 */ | |||
| private Long yjlx; | |||
| public void setZcgId(Long zcgId) | |||
| { | |||
| this.zcgId = zcgId; | |||
| } | |||
| public Long getZcgId() | |||
| { | |||
| return zcgId; | |||
| } | |||
| public void setYjmc(String yjmc) | |||
| { | |||
| this.yjmc = yjmc; | |||
| } | |||
| public String getYjmc() | |||
| { | |||
| return yjmc; | |||
| } | |||
| public void setYjId(Long yjId) | |||
| { | |||
| this.yjId = yjId; | |||
| } | |||
| public Long getYjId() | |||
| { | |||
| return yjId; | |||
| } | |||
| public void setYjlx(Long yjlx) | |||
| { | |||
| this.yjlx = yjlx; | |||
| } | |||
| public Long getYjlx() | |||
| { | |||
| return yjlx; | |||
| } | |||
| } | |||
| @ -0,0 +1,51 @@ | |||
| package com.hxhq.business.enums.zykgl; | |||
| /** | |||
| * 借阅状态 1:未借用 5:借用中 | |||
| * @author tanfei | |||
| */ | |||
| public enum zcgJyztEnum { | |||
| /** | |||
| * 未借用 | |||
| */ | |||
| wjy(1, "未借用"), | |||
| /** | |||
| * 借用中 | |||
| */ | |||
| jyz(5, "借用中"); | |||
| private int value; | |||
| private String text; | |||
| zcgJyztEnum(int value, String text) { | |||
| this.value = value; | |||
| this.text = text; | |||
| } | |||
| public int getValue() { | |||
| return value; | |||
| } | |||
| public void setValue(int value) { | |||
| this.value = value; | |||
| } | |||
| public String getText() { | |||
| return text; | |||
| } | |||
| public void setText(String text) { | |||
| this.text = text; | |||
| } | |||
| public static zcgJyztEnum getEnumByValue(int type) { | |||
| for (zcgJyztEnum bt : values()) { | |||
| if (bt.value == type) { | |||
| return bt; | |||
| } | |||
| } | |||
| return null; | |||
| } | |||
| } | |||
| @ -0,0 +1,120 @@ | |||
| package com.hxhq.business.form.zcg; | |||
| import com.hxhq.business.domain.Zcg; | |||
| /** | |||
| * @author 15881 | |||
| */ | |||
| public class YsffForm { | |||
| /** 暂存柜id */ | |||
| private Long id; | |||
| /** 关联药剂 */ | |||
| private String glyj; | |||
| /** 签名意义 */ | |||
| private String qmyy; | |||
| /** 备注 */ | |||
| private String remark; | |||
| /** 钥匙1领取人ID */ | |||
| private Long lqr1Id; | |||
| /** 钥匙2领取人ID */ | |||
| private Long lqr2Id; | |||
| /** 钥匙1领取人密码 */ | |||
| private String lqr1mm; | |||
| /** 钥匙2领取人密码 */ | |||
| private String lqr2mm; | |||
| /** 发放人 */ | |||
| private String ffrId; | |||
| /** 钥匙2领取人密码 */ | |||
| private String ffrmm; | |||
| public Long getId() { | |||
| return id; | |||
| } | |||
| public void setId(Long id) { | |||
| this.id = id; | |||
| } | |||
| public String getGlyj() { | |||
| return glyj; | |||
| } | |||
| public void setGlyj(String glyj) { | |||
| this.glyj = glyj; | |||
| } | |||
| public String getQmyy() { | |||
| return qmyy; | |||
| } | |||
| public void setQmyy(String qmyy) { | |||
| this.qmyy = qmyy; | |||
| } | |||
| public String getRemark() { | |||
| return remark; | |||
| } | |||
| public void setRemark(String remark) { | |||
| this.remark = remark; | |||
| } | |||
| public Long getLqr1Id() { | |||
| return lqr1Id; | |||
| } | |||
| public void setLqr1Id(Long lqr1Id) { | |||
| this.lqr1Id = lqr1Id; | |||
| } | |||
| public Long getLqr2Id() { | |||
| return lqr2Id; | |||
| } | |||
| public void setLqr2Id(Long lqr2Id) { | |||
| this.lqr2Id = lqr2Id; | |||
| } | |||
| public String getLqr1mm() { | |||
| return lqr1mm; | |||
| } | |||
| public void setLqr1mm(String lqr1mm) { | |||
| this.lqr1mm = lqr1mm; | |||
| } | |||
| public String getLqr2mm() { | |||
| return lqr2mm; | |||
| } | |||
| public void setLqr2mm(String lqr2mm) { | |||
| this.lqr2mm = lqr2mm; | |||
| } | |||
| public String getFfrId() { | |||
| return ffrId; | |||
| } | |||
| public void setFfrId(String ffrId) { | |||
| this.ffrId = ffrId; | |||
| } | |||
| public String getFfrmm() { | |||
| return ffrmm; | |||
| } | |||
| public void setFfrmm(String ffrmm) { | |||
| this.ffrmm = ffrmm; | |||
| } | |||
| } | |||
| @ -0,0 +1,10 @@ | |||
| package com.hxhq.business.form.zcg; | |||
| import com.hxhq.business.domain.Zcg; | |||
| /** | |||
| * @author 15881 | |||
| */ | |||
| public class YsghForm extends Zcg { | |||
| } | |||
| @ -0,0 +1,42 @@ | |||
| package com.hxhq.business.form.zcg; | |||
| import com.hxhq.business.domain.Zcg; | |||
| /** | |||
| * @author 15881 | |||
| */ | |||
| public class ZcgSearchForm { | |||
| /** 借用人 */ | |||
| private Long jyrId; | |||
| /** 暂存柜名称 */ | |||
| private String mc; | |||
| /** 状态:1:未借用;5:借用中 */ | |||
| private Integer zt; | |||
| public Long getJyrId() { | |||
| return jyrId; | |||
| } | |||
| public void setJyrId(Long jyrId) { | |||
| this.jyrId = jyrId; | |||
| } | |||
| public String getMc() { | |||
| return mc; | |||
| } | |||
| public void setMc(String mc) { | |||
| this.mc = mc; | |||
| } | |||
| public Integer getZt() { | |||
| return zt; | |||
| } | |||
| public void setZt(Integer zt) { | |||
| this.zt = zt; | |||
| } | |||
| } | |||
| @ -1,14 +0,0 @@ | |||
| package com.hxhq.business.mapper; | |||
| import com.hxhq.business.domain.ZcgYj; | |||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||
| /** | |||
| * 暂存柜-关联药剂Mapper接口 | |||
| * | |||
| * @author hxhq | |||
| * @date 2025-12-18 | |||
| */ | |||
| public interface ZcgYjMapper extends BaseMapper<ZcgYj> | |||
| { | |||
| } | |||
| @ -1,23 +0,0 @@ | |||
| package com.hxhq.business.service; | |||
| import java.util.List; | |||
| import com.hxhq.business.domain.ZcgYj; | |||
| import com.baomidou.mybatisplus.extension.service.IService; | |||
| /** | |||
| * 暂存柜-关联药剂Service接口 | |||
| * | |||
| * @author hxhq | |||
| * @date 2025-12-18 | |||
| */ | |||
| public interface IZcgYjService extends IService<ZcgYj> | |||
| { | |||
| /** | |||
| * 查询暂存柜-关联药剂列表 | |||
| * | |||
| * @param zcgYj 暂存柜-关联药剂 | |||
| * @return 暂存柜-关联药剂集合 | |||
| */ | |||
| public List<ZcgYj> queryList(ZcgYj zcgYj); | |||
| } | |||
| @ -1,34 +0,0 @@ | |||
| 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 org.springframework.stereotype.Service; | |||
| import com.hxhq.business.mapper.ZcgYjMapper; | |||
| import com.hxhq.business.domain.ZcgYj; | |||
| import com.hxhq.business.service.IZcgYjService; | |||
| import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |||
| /** | |||
| * 暂存柜-关联药剂Service业务层处理 | |||
| * | |||
| * @author hxhq | |||
| * @date 2025-12-18 | |||
| */ | |||
| @Service | |||
| public class ZcgYjServiceImpl extends ServiceImpl<ZcgYjMapper, ZcgYj> implements IZcgYjService | |||
| { | |||
| /** | |||
| * 查询暂存柜-关联药剂列表 | |||
| * | |||
| * @param zcgYj 暂存柜-关联药剂 | |||
| * @return 暂存柜-关联药剂 | |||
| */ | |||
| @Override | |||
| public List<ZcgYj> queryList(ZcgYj zcgYj) | |||
| { | |||
| QueryWrapper<ZcgYj> queryWrapper = Wrappers.query(); | |||
| return this.list(queryWrapper); | |||
| } | |||
| } | |||
| @ -1,6 +0,0 @@ | |||
| <?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.ZcgYjMapper"> | |||
| </mapper> | |||