| @ -0,0 +1,94 @@ | |||
| package com.hxhq.business.domain; | |||
| import com.baomidou.mybatisplus.annotation.TableName; | |||
| import com.hxhq.common.core.domain.MpBaseEntity; | |||
| /** | |||
| * 麻精药发放记录-稽查轨迹对象 t_mjy_ffjl_jcgj | |||
| * | |||
| * @author hxhq | |||
| * @date 2025-12-25 | |||
| */ | |||
| @TableName("t_mjy_ffjl_jcgj") | |||
| public class MjyFfjlJcgj extends MpBaseEntity | |||
| { | |||
| private static final long serialVersionUID = 1L; | |||
| /** 发放记录id */ | |||
| private Long ffjlId; | |||
| /** 稽查轨迹类型:1:流程;3:编辑 */ | |||
| private Integer jcgjlx; | |||
| /** 稽查名称 */ | |||
| private String jcmc; | |||
| /** 稽查名称颜色:1:蓝色;3:红色;5:绿色;7:橙色 */ | |||
| private Integer jcmcys; | |||
| /** 稽查内容 */ | |||
| private String jcnr; | |||
| /** 签名人id */ | |||
| private Long qmrId; | |||
| /** 签名人名称 */ | |||
| private String qmrMc; | |||
| public Long getFfjlId() { | |||
| return ffjlId; | |||
| } | |||
| public void setFfjlId(Long ffjlId) { | |||
| this.ffjlId = ffjlId; | |||
| } | |||
| public Integer getJcgjlx() { | |||
| return jcgjlx; | |||
| } | |||
| public void setJcgjlx(Integer jcgjlx) { | |||
| this.jcgjlx = jcgjlx; | |||
| } | |||
| public String getJcmc() { | |||
| return jcmc; | |||
| } | |||
| public void setJcmc(String jcmc) { | |||
| this.jcmc = jcmc; | |||
| } | |||
| public Integer getJcmcys() { | |||
| return jcmcys; | |||
| } | |||
| public void setJcmcys(Integer jcmcys) { | |||
| this.jcmcys = jcmcys; | |||
| } | |||
| public String getJcnr() { | |||
| return jcnr; | |||
| } | |||
| public void setJcnr(String jcnr) { | |||
| this.jcnr = jcnr; | |||
| } | |||
| public Long getQmrId() { | |||
| return qmrId; | |||
| } | |||
| public void setQmrId(Long qmrId) { | |||
| this.qmrId = qmrId; | |||
| } | |||
| public String getQmrMc() { | |||
| return qmrMc; | |||
| } | |||
| public void setQmrMc(String qmrMc) { | |||
| this.qmrMc = qmrMc; | |||
| } | |||
| } | |||
| @ -0,0 +1,14 @@ | |||
| package com.hxhq.business.mapper; | |||
| import com.hxhq.business.domain.MjyFfjlJcgj; | |||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||
| /** | |||
| * 麻精药发放记录-稽查轨迹Mapper接口 | |||
| * | |||
| * @author hxhq | |||
| * @date 2025-12-25 | |||
| */ | |||
| public interface MjyFfjlJcgjMapper extends BaseMapper<MjyFfjlJcgj> | |||
| { | |||
| } | |||
| @ -0,0 +1,35 @@ | |||
| package com.hxhq.business.service; | |||
| import java.util.List; | |||
| import com.hxhq.business.domain.MjyFfjlJcgj; | |||
| import com.baomidou.mybatisplus.extension.service.IService; | |||
| import com.hxhq.business.domain.MjyJcgj; | |||
| /** | |||
| * 麻精药发放记录-稽查轨迹Service接口 | |||
| * | |||
| * @author hxhq | |||
| * @date 2025-12-25 | |||
| */ | |||
| public interface IMjyFfjlJcgjService extends IService<MjyFfjlJcgj> | |||
| { | |||
| /** | |||
| * 查询稽查轨迹列表 | |||
| * @param mjyJcgj 麻精药 | |||
| * @return | |||
| */ | |||
| public List<MjyFfjlJcgj> queryList(MjyFfjlJcgj mjyJcgj); | |||
| /** | |||
| * 新增稽查轨迹 | |||
| * @param ffjlId 发放记录id | |||
| * @param jcgjlx 稽查轨迹类型:1:流程;3:编辑 | |||
| * @param jcmc 稽查名称 | |||
| * @param jcmcys 稽查名称颜色:1:蓝色;3:红色;5:绿色;7:橙色 | |||
| * @param jcnr 稽查内容 | |||
| * @param jcrId 稽查人id | |||
| * @param jcrMc 稽查人名称 | |||
| */ | |||
| public void saveJcgj(Long ffjlId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,Long jcrId,String jcrMc); | |||
| } | |||
| @ -0,0 +1,69 @@ | |||
| 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.StringUtils; | |||
| import org.springframework.stereotype.Service; | |||
| import com.hxhq.business.mapper.MjyFfjlJcgjMapper; | |||
| import com.hxhq.business.domain.MjyFfjlJcgj; | |||
| import com.hxhq.business.service.IMjyFfjlJcgjService; | |||
| import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |||
| /** | |||
| * 麻精药发放记录-稽查轨迹Service业务层处理 | |||
| * | |||
| * @author hxhq | |||
| * @date 2025-12-25 | |||
| */ | |||
| @Service | |||
| public class MjyFfjlJcgjServiceImpl extends ServiceImpl<MjyFfjlJcgjMapper, MjyFfjlJcgj> implements IMjyFfjlJcgjService | |||
| { | |||
| /** | |||
| * 查询稽查轨迹列表 | |||
| * @param mjyFfjlJcgj 麻给药 | |||
| * @return | |||
| */ | |||
| @Override | |||
| public List<MjyFfjlJcgj> queryList(MjyFfjlJcgj mjyFfjlJcgj){ | |||
| QueryWrapper<MjyFfjlJcgj> queryWrapper = Wrappers.query(); | |||
| if(mjyFfjlJcgj.getFfjlId()==null||mjyFfjlJcgj.getFfjlId().longValue()<0){ | |||
| throw new SecurityException("发放记录id不能为空"); | |||
| } | |||
| queryWrapper.eq("ffjl_id",mjyFfjlJcgj.getFfjlId()); | |||
| if(mjyFfjlJcgj.getJcgjlx()!=null&&mjyFfjlJcgj.getJcgjlx().intValue()>0){ | |||
| queryWrapper.eq("jcgjlx",mjyFfjlJcgj.getJcgjlx()); | |||
| } | |||
| if (StringUtils.isNoneBlank(mjyFfjlJcgj.getJcmc())) { | |||
| queryWrapper.and(p -> p.like("`jcmc`", mjyFfjlJcgj.getJcmc()) | |||
| .or().like("`jcnr`", mjyFfjlJcgj.getJcmc())); | |||
| } | |||
| queryWrapper.orderByDesc("id"); | |||
| return this.list(queryWrapper); | |||
| } | |||
| /** | |||
| * 新增稽查轨迹 | |||
| * @param ffjlId 发放记录id | |||
| * @param jcgjlx 稽查轨迹类型:1:流程;3:编辑 | |||
| * @param jcmc 稽查名称 | |||
| * @param jcmcys 稽查名称颜色:1:蓝色;3:红色;5:绿色;7:橙色 | |||
| * @param jcnr 稽查内容 | |||
| * @param jcrId 稽查人id | |||
| * @param jcrMc 稽查人名称 | |||
| */ | |||
| @Override | |||
| public void saveJcgj(Long ffjlId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,Long jcrId,String jcrMc){ | |||
| MjyFfjlJcgj mjyFfjlJcgj = new MjyFfjlJcgj(); | |||
| mjyFfjlJcgj.setFfjlId(ffjlId); | |||
| mjyFfjlJcgj.setJcgjlx(jcgjlx); | |||
| mjyFfjlJcgj.setJcmc(jcmc); | |||
| mjyFfjlJcgj.setJcmcys(jcmcys); | |||
| mjyFfjlJcgj.setJcnr(jcnr); | |||
| mjyFfjlJcgj.setQmrId(jcrId); | |||
| mjyFfjlJcgj.setQmrMc(jcrMc); | |||
| this.save(mjyFfjlJcgj); | |||
| } | |||
| } | |||
| @ -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.MjyFfjlJcgjMapper"> | |||
| </mapper> | |||