| @ -0,0 +1,110 @@ | |||||
| package com.hxhq.business.domain; | |||||
| import com.baomidou.mybatisplus.annotation.TableName; | |||||
| import com.hxhq.common.core.domain.MpBaseEntity; | |||||
| /** | |||||
| * 试验-填报单-稽查轨迹对象 t_study_form_fill_jcgj | |||||
| * | |||||
| * @author hxhq | |||||
| * @date 2025-12-31 | |||||
| */ | |||||
| @TableName("t_study_form_fill_jcgj") | |||||
| public class StudyFormFillJcgj extends MpBaseEntity | |||||
| { | |||||
| private static final long serialVersionUID = 1L; | |||||
| /** 填报表单id */ | |||||
| private Long formId; | |||||
| /** 稽查轨迹类型: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 void setFormId(Long formId) | |||||
| { | |||||
| this.formId = formId; | |||||
| } | |||||
| public Long getFormId() | |||||
| { | |||||
| return formId; | |||||
| } | |||||
| public void setJcgjlx(Integer jcgjlx) | |||||
| { | |||||
| this.jcgjlx = jcgjlx; | |||||
| } | |||||
| public Integer getJcgjlx() | |||||
| { | |||||
| return jcgjlx; | |||||
| } | |||||
| public void setJcmc(String jcmc) | |||||
| { | |||||
| this.jcmc = jcmc; | |||||
| } | |||||
| public String getJcmc() | |||||
| { | |||||
| return jcmc; | |||||
| } | |||||
| public void setJcmcys(Integer jcmcys) | |||||
| { | |||||
| this.jcmcys = jcmcys; | |||||
| } | |||||
| public Integer getJcmcys() | |||||
| { | |||||
| return jcmcys; | |||||
| } | |||||
| public void setJcnr(String jcnr) | |||||
| { | |||||
| this.jcnr = jcnr; | |||||
| } | |||||
| public String getJcnr() | |||||
| { | |||||
| return jcnr; | |||||
| } | |||||
| public void setQmrId(Long qmrId) | |||||
| { | |||||
| this.qmrId = qmrId; | |||||
| } | |||||
| public Long getQmrId() | |||||
| { | |||||
| return qmrId; | |||||
| } | |||||
| public void setQmrMc(String qmrMc) | |||||
| { | |||||
| this.qmrMc = qmrMc; | |||||
| } | |||||
| public String getQmrMc() | |||||
| { | |||||
| return qmrMc; | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,71 @@ | |||||
| package com.hxhq.business.domain; | |||||
| import com.baomidou.mybatisplus.annotation.TableName; | |||||
| import com.hxhq.common.core.domain.MpBaseEntity; | |||||
| /** | |||||
| * 试验-填报单-签名信息对象 t_study_form_fill_qmxx | |||||
| * | |||||
| * @author hxhq | |||||
| * @date 2025-12-31 | |||||
| */ | |||||
| @TableName("t_study_form_fill_qmxx") | |||||
| public class StudyFormFillQmxx extends MpBaseEntity | |||||
| { | |||||
| private static final long serialVersionUID = 1L; | |||||
| /** 填报表单id */ | |||||
| private Long formId; | |||||
| /** 签名意义 */ | |||||
| private String qmyy; | |||||
| /** 签名人id */ | |||||
| private Long qmrId; | |||||
| /** 签名人名称 */ | |||||
| private String qmrMc; | |||||
| public void setFormId(Long formId) | |||||
| { | |||||
| this.formId = formId; | |||||
| } | |||||
| public Long getFormId() | |||||
| { | |||||
| return formId; | |||||
| } | |||||
| public void setQmyy(String qmyy) | |||||
| { | |||||
| this.qmyy = qmyy; | |||||
| } | |||||
| public String getQmyy() | |||||
| { | |||||
| return qmyy; | |||||
| } | |||||
| public void setQmrId(Long qmrId) | |||||
| { | |||||
| this.qmrId = qmrId; | |||||
| } | |||||
| public Long getQmrId() | |||||
| { | |||||
| return qmrId; | |||||
| } | |||||
| public void setQmrMc(String qmrMc) | |||||
| { | |||||
| this.qmrMc = qmrMc; | |||||
| } | |||||
| public String getQmrMc() | |||||
| { | |||||
| return qmrMc; | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,11 @@ | |||||
| package com.hxhq.business.dto.study; | |||||
| import com.hxhq.business.domain.StudyFormFill; | |||||
| /** | |||||
| * @author tanfei | |||||
| */ | |||||
| public class StudyFormFillListDto extends StudyFormFill { | |||||
| } | |||||
| @ -0,0 +1,14 @@ | |||||
| package com.hxhq.business.mapper; | |||||
| import com.hxhq.business.domain.StudyFormFillJcgj; | |||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||||
| /** | |||||
| * 试验-填报单-稽查轨迹Mapper接口 | |||||
| * | |||||
| * @author hxhq | |||||
| * @date 2025-12-31 | |||||
| */ | |||||
| public interface StudyFormFillJcgjMapper extends BaseMapper<StudyFormFillJcgj> | |||||
| { | |||||
| } | |||||
| @ -0,0 +1,14 @@ | |||||
| package com.hxhq.business.mapper; | |||||
| import com.hxhq.business.domain.StudyFormFillQmxx; | |||||
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | |||||
| /** | |||||
| * 试验-填报单-签名信息Mapper接口 | |||||
| * | |||||
| * @author hxhq | |||||
| * @date 2025-12-31 | |||||
| */ | |||||
| public interface StudyFormFillQmxxMapper extends BaseMapper<StudyFormFillQmxx> | |||||
| { | |||||
| } | |||||
| @ -0,0 +1,35 @@ | |||||
| package com.hxhq.business.service; | |||||
| import java.util.List; | |||||
| import com.hxhq.business.domain.StudyFormFillJcgj; | |||||
| import com.baomidou.mybatisplus.extension.service.IService; | |||||
| import com.hxhq.business.domain.StudyFormPreJcgj; | |||||
| /** | |||||
| * 试验-填报单-稽查轨迹Service接口 | |||||
| * | |||||
| * @author hxhq | |||||
| * @date 2025-12-31 | |||||
| */ | |||||
| public interface IStudyFormFillJcgjService extends IService<StudyFormFillJcgj> | |||||
| { | |||||
| /** | |||||
| * 轨迹列表 | |||||
| * @param studyFormFillJcgj | |||||
| * @return | |||||
| */ | |||||
| public List<StudyFormFillJcgj> queryList(StudyFormFillJcgj studyFormFillJcgj); | |||||
| /** | |||||
| * 新增稽查轨迹 | |||||
| * @param formId 记录id | |||||
| * @param jcgjlx 稽查轨迹类型:1:流程;3:编辑 | |||||
| * @param jcmc 稽查名称 | |||||
| * @param jcmcys 稽查名称颜色:1:蓝色;3:红色;5:绿色;7:橙色 | |||||
| * @param jcnr 稽查内容 | |||||
| * @param jcrId 稽查人id | |||||
| * @param jcrMc 稽查人名称 | |||||
| */ | |||||
| public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,Long jcrId,String jcrMc); | |||||
| } | |||||
| @ -0,0 +1,34 @@ | |||||
| package com.hxhq.business.service; | |||||
| import java.util.List; | |||||
| import com.hxhq.business.domain.StudyFormFillQmxx; | |||||
| import com.baomidou.mybatisplus.extension.service.IService; | |||||
| import com.hxhq.business.domain.StudyFormPreQmxx; | |||||
| /** | |||||
| * 试验-填报单-签名信息Service接口 | |||||
| * | |||||
| * @author hxhq | |||||
| * @date 2025-12-31 | |||||
| */ | |||||
| public interface IStudyFormFillQmxxService extends IService<StudyFormFillQmxx> | |||||
| { | |||||
| /** | |||||
| * 查询试验-填报单-签名信息列表 | |||||
| * | |||||
| * @param studyFormFillQmxx | |||||
| * @return 试验-填报单-签名信息集合 | |||||
| */ | |||||
| public List<StudyFormFillQmxx> queryList(StudyFormFillQmxx studyFormFillQmxx); | |||||
| /** | |||||
| * 新增签名信息 | |||||
| * @param formId | |||||
| * @param qmyy | |||||
| * @param qmrId | |||||
| * @param qmrMc | |||||
| * @param remark | |||||
| */ | |||||
| public void saveQmxx(Long formId, String qmyy, Long qmrId, String qmrMc,String remark); | |||||
| } | |||||
| @ -0,0 +1,72 @@ | |||||
| 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.business.domain.StudyFormPreJcgj; | |||||
| import com.hxhq.common.core.exception.ServiceException; | |||||
| import com.hxhq.common.core.utils.DateUtils; | |||||
| import com.hxhq.common.core.utils.StringUtils; | |||||
| import org.springframework.stereotype.Service; | |||||
| import com.hxhq.business.mapper.StudyFormFillJcgjMapper; | |||||
| import com.hxhq.business.domain.StudyFormFillJcgj; | |||||
| import com.hxhq.business.service.IStudyFormFillJcgjService; | |||||
| import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |||||
| /** | |||||
| * 试验-填报单-稽查轨迹Service业务层处理 | |||||
| * | |||||
| * @author hxhq | |||||
| * @date 2025-12-31 | |||||
| */ | |||||
| @Service | |||||
| public class StudyFormFillJcgjServiceImpl extends ServiceImpl<StudyFormFillJcgjMapper, StudyFormFillJcgj> implements IStudyFormFillJcgjService | |||||
| { | |||||
| /** | |||||
| * 查询稽查轨迹列表 | |||||
| * @param studyFormFillJcgj | |||||
| * @return | |||||
| */ | |||||
| @Override | |||||
| public List<StudyFormFillJcgj> queryList(StudyFormFillJcgj studyFormFillJcgj){ | |||||
| QueryWrapper<StudyFormFillJcgj> queryWrapper = Wrappers.query(); | |||||
| if(studyFormFillJcgj.getFormId()==null||studyFormFillJcgj.getFormId().longValue()<0){ | |||||
| throw new ServiceException("表单id不能为空"); | |||||
| } | |||||
| queryWrapper.eq("form_id",studyFormFillJcgj.getFormId()); | |||||
| if(studyFormFillJcgj.getJcgjlx()!=null&&studyFormFillJcgj.getJcgjlx().intValue()>0){ | |||||
| queryWrapper.eq("jcgjlx",studyFormFillJcgj.getJcgjlx()); | |||||
| } | |||||
| if (StringUtils.isNoneBlank(studyFormFillJcgj.getJcmc())) { | |||||
| queryWrapper.and(p -> p.like("`jcmc`", studyFormFillJcgj.getJcmc()) | |||||
| .or().like("`jcnr`", studyFormFillJcgj.getJcmc())); | |||||
| } | |||||
| queryWrapper.orderByDesc("id"); | |||||
| return this.list(queryWrapper); | |||||
| } | |||||
| /** | |||||
| * 新增稽查轨迹 | |||||
| * @param formId | |||||
| * @param jcgjlx 稽查轨迹类型:1:流程;3:编辑 | |||||
| * @param jcmc 稽查名称 | |||||
| * @param jcmcys 稽查名称颜色:1:蓝色;3:红色;5:绿色;7:橙色 | |||||
| * @param jcnr 稽查内容 | |||||
| * @param jcrId 稽查人id | |||||
| * @param jcrMc 稽查人名称 | |||||
| */ | |||||
| @Override | |||||
| public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,Long jcrId,String jcrMc){ | |||||
| StudyFormFillJcgj studyFormFillJcgj = new StudyFormFillJcgj(); | |||||
| studyFormFillJcgj.setFormId(formId); | |||||
| studyFormFillJcgj.setJcgjlx(jcgjlx); | |||||
| studyFormFillJcgj.setJcmc(jcmc); | |||||
| studyFormFillJcgj.setJcmcys(jcmcys); | |||||
| studyFormFillJcgj.setJcnr(jcnr); | |||||
| studyFormFillJcgj.setQmrId(jcrId); | |||||
| studyFormFillJcgj.setQmrMc(jcrMc); | |||||
| this.save(studyFormFillJcgj); | |||||
| } | |||||
| } | |||||
| @ -0,0 +1,62 @@ | |||||
| 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.business.domain.StudyFormPreQmxx; | |||||
| import com.hxhq.common.core.exception.ServiceException; | |||||
| import com.hxhq.common.core.utils.DateUtils; | |||||
| import org.springframework.stereotype.Service; | |||||
| import com.hxhq.business.mapper.StudyFormFillQmxxMapper; | |||||
| import com.hxhq.business.domain.StudyFormFillQmxx; | |||||
| import com.hxhq.business.service.IStudyFormFillQmxxService; | |||||
| import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | |||||
| /** | |||||
| * 试验-填报单-签名信息Service业务层处理 | |||||
| * | |||||
| * @author hxhq | |||||
| * @date 2025-12-31 | |||||
| */ | |||||
| @Service | |||||
| public class StudyFormFillQmxxServiceImpl extends ServiceImpl<StudyFormFillQmxxMapper, StudyFormFillQmxx> implements IStudyFormFillQmxxService | |||||
| { | |||||
| /** | |||||
| * 查询试验-填报单-签名信息列表 | |||||
| * | |||||
| * @param studyFormFillQmxx 试验-填报单-签名信息 | |||||
| * @return 试验-填报单-签名信息 | |||||
| */ | |||||
| @Override | |||||
| public List<StudyFormFillQmxx> queryList(StudyFormFillQmxx studyFormFillQmxx) | |||||
| { | |||||
| QueryWrapper<StudyFormFillQmxx> queryWrapper = Wrappers.query(); | |||||
| if(studyFormFillQmxx.getFormId()==null||studyFormFillQmxx.getFormId().longValue()<0){ | |||||
| throw new ServiceException("表单id不能为空"); | |||||
| } | |||||
| queryWrapper.eq("form_id",studyFormFillQmxx.getFormId()); | |||||
| queryWrapper.orderByDesc("id"); | |||||
| return this.list(queryWrapper); | |||||
| } | |||||
| /** | |||||
| * 新增签名信息 | |||||
| * @param formId | |||||
| * @param qmyy | |||||
| * @param qmrId | |||||
| * @param qmrMc | |||||
| * @param remark | |||||
| */ | |||||
| @Override | |||||
| public void saveQmxx(Long formId, String qmyy, Long qmrId, String qmrMc,String remark){ | |||||
| StudyFormFillQmxx studyFormFillQmxx=new StudyFormFillQmxx(); | |||||
| studyFormFillQmxx.setFormId(formId); | |||||
| studyFormFillQmxx.setQmyy(qmyy); | |||||
| studyFormFillQmxx.setQmrId(qmrId); | |||||
| studyFormFillQmxx.setQmrMc(qmrMc); | |||||
| studyFormFillQmxx.setRemark(remark); | |||||
| this.save(studyFormFillQmxx); | |||||
| } | |||||
| } | |||||
| @ -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.StudyFormFillJcgjMapper"> | |||||
| </mapper> | |||||
| @ -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.StudyFormFillQmxxMapper"> | |||||
| </mapper> | |||||