Browse Source

fix:[试验管理]bug修改

master
15881625488@163.com 3 months ago
parent
commit
2a5022a76b
6 changed files with 34 additions and 13 deletions
  1. +12
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Template.java
  2. +11
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/study/StudyFormFillListDto.java
  3. +7
    -7
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/enums/template/ProductEnum.java
  4. +2
    -3
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java
  5. +1
    -1
      hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudyFormFillMapper.xml
  6. +1
    -1
      hxhq-modules/hxhq-system/src/main/resources/mapper/business/TemplateMapper.xml

+ 12
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/Template.java View File

@ -46,9 +46,12 @@ public class Template extends MpBaseEntity
/** 类型:1:普通模板;10:敏感模板 */ /** 类型:1:普通模板;10:敏感模板 */
private Integer type; private Integer type;
/** 产物:1:试剂;3:供试品;5:给药制剂;7:麻精药 */
/** 产物:1:试剂;3:给药制剂;5:麻精药 */
private Integer product; private Integer product;
/** 填报显示观察按钮:1:否;10:显示 */
private Integer showGc;
/** 显示的编号 */ /** 显示的编号 */
private String showSn; private String showSn;
@ -56,6 +59,14 @@ public class Template extends MpBaseEntity
@TableField(exist = false) @TableField(exist = false)
private String deptName; private String deptName;
public Integer getShowGc() {
return showGc;
}
public void setShowGc(Integer showGc) {
this.showGc = showGc;
}
public String getExportMethod() { public String getExportMethod() {
return exportMethod; return exportMethod;
} }

+ 11
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/dto/study/StudyFormFillListDto.java View File

@ -13,6 +13,17 @@ public class StudyFormFillListDto extends StudyFormFill {
*/ */
private Long subjectLeader; private Long subjectLeader;
/** 填报显示观察按钮:1:否;10:显示 */
private Integer showGc;
public Integer getShowGc() {
return showGc;
}
public void setShowGc(Integer showGc) {
this.showGc = showGc;
}
public Long getSubjectLeader() { public Long getSubjectLeader() {
return subjectLeader; return subjectLeader;
} }

+ 7
- 7
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/enums/template/ProductEnum.java View File

@ -1,7 +1,7 @@
package com.hxhq.business.enums.template; package com.hxhq.business.enums.template;
/** /**
* 产物1试剂3供试品5给药制剂7麻精药
* 产物1试剂3给药制剂5麻精药7
* @author tanfei * @author tanfei
*/ */
public enum ProductEnum { public enum ProductEnum {
@ -12,19 +12,19 @@ public enum ProductEnum {
Sj(1, "试剂"), Sj(1, "试剂"),
/** /**
* 供试品
* 给药制剂
*/ */
Gsp(3, "供试品"),
Gyzj(3, "给药制剂"),
/** /**
* 给药制剂
* 麻精药
*/ */
Gyzj(5, "给药制剂"),
Mjy(5, "麻精药"),
/** /**
* 麻精药
*
*/ */
Mjy(7, "麻精药");
none(7, "");
private int value; private int value;
private String text; private String text;

+ 2
- 3
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java View File

@ -325,6 +325,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl
studyFormFillOld.setBdnr(studyFormFill.getBdnr()); studyFormFillOld.setBdnr(studyFormFill.getBdnr());
studyFormFillOld.setResource(studyFormFill.getResource()); studyFormFillOld.setResource(studyFormFill.getResource());
studyFormFillOld.setBdzt(StudyFormFillBdztEnum.ytj.getValue()); studyFormFillOld.setBdzt(StudyFormFillBdztEnum.ytj.getValue());
studyFormFillOld.setTjsj(new Date());
if (studyFormFillOld.getSftb().equals(NormalEnum.no.getValue())) { if (studyFormFillOld.getSftb().equals(NormalEnum.no.getValue())) {
studyFormFillOld.setEndDate(new Date()); studyFormFillOld.setEndDate(new Date());
studyFormFillOld.setCclist(studyFormFill.getCclist()); studyFormFillOld.setCclist(studyFormFill.getCclist());
@ -351,6 +352,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl
studyFormFill.setUserMc(SecurityUtils.getNickName()); studyFormFill.setUserMc(SecurityUtils.getNickName());
studyFormFill.setSftb(NormalEnum.yes.getValue()); studyFormFill.setSftb(NormalEnum.yes.getValue());
studyFormFill.setBdbh(getSn(studyFormFill)); studyFormFill.setBdbh(getSn(studyFormFill));
studyFormFill.setTjsj(new Date());
this.save(studyFormFill); this.save(studyFormFill);
//生成物资 //生成物资
genResource(studyFormFill); genResource(studyFormFill);
@ -373,9 +375,6 @@ public class StudyFormFillServiceImpl extends ServiceImpl
if (template.getProduct().equals(ProductEnum.Sj.getValue())) { if (template.getProduct().equals(ProductEnum.Sj.getValue())) {
sjService.genResource(studyFormFill, template); sjService.genResource(studyFormFill, template);
} }
if (template.getProduct().equals(ProductEnum.Gsp.getValue())) {
}
if (template.getProduct().equals(ProductEnum.Gyzj.getValue())) { if (template.getProduct().equals(ProductEnum.Gyzj.getValue())) {
} }

+ 1
- 1
hxhq-modules/hxhq-system/src/main/resources/mapper/business/StudyFormFillMapper.xml View File

@ -5,7 +5,7 @@
<mapper namespace="com.hxhq.business.mapper.StudyFormFillMapper"> <mapper namespace="com.hxhq.business.mapper.StudyFormFillMapper">
<select id="queryList" resultType="com.hxhq.business.dto.study.StudyFormFillListDto"> <select id="queryList" resultType="com.hxhq.business.dto.study.StudyFormFillListDto">
select t.id,t.bdbh,t.bdmc,t.create_time,t.user_mc,t.user_id,t.bdzt,t.bdzt,t.tjsj,tm.name as templateMc,tm.sn as templateSn,tm.dept_id as templateDeptId select t.id,t.bdbh,t.bdmc,t.create_time,t.user_mc,t.user_id,t.bdzt,t.bdzt,t.tjsj,tm.name as templateMc,tm.sn as templateSn,tm.dept_id as templateDeptId
,ss.leader as subjectLeader,t.sfbl
,ss.leader as subjectLeader,t.sfbl,tm.show_gc
FROM `t_study_form_fill` t FROM `t_study_form_fill` t
join t_template tm on tm.id=t.template_id join t_template tm on tm.id=t.template_id
join t_study_subject ss on t.study_subject_id=ss.id join t_study_subject ss on t.study_subject_id=ss.id

+ 1
- 1
hxhq-modules/hxhq-system/src/main/resources/mapper/business/TemplateMapper.xml View File

@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hxhq.business.mapper.TemplateMapper"> <mapper namespace="com.hxhq.business.mapper.TemplateMapper">
<select id="queryList"> <select id="queryList">
SELECT t.`id`,t.`sn`,t.`show_sn`,t.`name`,t.`dept_id`,t.`status`,t.`need_pre`,t.`type`,d.`dept_name`
SELECT t.`id`,t.`sn`,t.`show_sn`,t.`name`,t.`dept_id`,t.`status`,t.`need_pre`,t.`type`,d.`dept_name`,t.product
FROM `t_template` t FROM `t_template` t
LEFT JOIN `sys_dept` d ON t.`dept_id`=d.`dept_id` LEFT JOIN `sys_dept` d ON t.`dept_id`=d.`dept_id`
<if test="ew.sqlSegment != '' and ew.sqlSegment != null"> <if test="ew.sqlSegment != '' and ew.sqlSegment != null">

Loading…
Cancel
Save