Browse Source

feat:[试验管理][表单优化]

master
15881625488@163.com 3 months ago
parent
commit
3145c0755a
29 changed files with 805 additions and 249 deletions
  1. +17
    -7
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormApply.java
  2. +32
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormApplyJcgj.java
  3. +21
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormApplyQmxx.java
  4. +19
    -7
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormFill.java
  5. +24
    -2
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormPlan.java
  6. +32
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormPlanJcgj.java
  7. +21
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormPlanQmxx.java
  8. +24
    -2
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormPre.java
  9. +32
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormPreJcgj.java
  10. +21
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormPreQmxx.java
  11. +4
    -4
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/study/StudyFormApplySearchForm.java
  12. +4
    -4
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/study/StudyFormFillSearchForm.java
  13. +36
    -4
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormApplyJcgjService.java
  14. +3
    -3
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormApplyQmxxService.java
  15. +35
    -5
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPlanJcgjService.java
  16. +3
    -3
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPlanQmxxService.java
  17. +35
    -4
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPreJcgjService.java
  18. +3
    -3
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPreQmxxService.java
  19. +95
    -13
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyJcgjServiceImpl.java
  20. +10
    -5
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyQmxxServiceImpl.java
  21. +57
    -70
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java
  22. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java
  23. +94
    -13
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanJcgjServiceImpl.java
  24. +11
    -5
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanQmxxServiceImpl.java
  25. +33
    -40
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java
  26. +94
    -13
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreJcgjServiceImpl.java
  27. +9
    -5
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreQmxxServiceImpl.java
  28. +29
    -36
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java
  29. +6
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormUtil.java

+ 17
- 7
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormApply.java View File

@ -30,11 +30,11 @@ public class StudyFormApply extends MpBaseEntity
private String bdbh;
/** 表单名称 */
@Compare(name = "表单名称")
@Compare(name = "表单名称",nameEn = "Concentration")
private String bdmc;
/** 表单说明 */
@Compare(name = "表单说明")
@Compare(name = "表单说明",nameEn = "Concentration")
private String bdsm;
/** 模板id */
@ -49,9 +49,12 @@ public class StudyFormApply extends MpBaseEntity
/** 表单归属人名称 */
private String userMc;
/** 是否补录:1:否;10:是 */
@Compare(name = "是否补录")
private Integer sfbl;
/** 表单归属人名称-英文 */
private String userMcEn;
/** 是否补录 */
@Compare(name = "是否补录",nameEn = "Concentration")
private String sfbl;
/** 表单状态:1:填报中;3:已提交;5:已复核;6:未通过;7:已完成;9:待废止;11:已废止 */
private Integer bdzt;
@ -92,6 +95,13 @@ public class StudyFormApply extends MpBaseEntity
@TableField(exist = false)
private String studyMc;
public String getUserMcEn() {
return userMcEn;
}
public void setUserMcEn(String userMcEn) {
this.userMcEn = userMcEn;
}
public String getResource() {
return resource;
@ -246,12 +256,12 @@ public class StudyFormApply extends MpBaseEntity
return userMc;
}
public void setSfbl(Integer sfbl)
public void setSfbl(String sfbl)
{
this.sfbl = sfbl;
}
public Integer getSfbl()
public String getSfbl()
{
return sfbl;
}

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

@ -24,18 +24,50 @@ public class StudyFormApplyJcgj extends MpBaseEntity
/** 稽查名称 */
private String jcmc;
/** 稽查名称-英文 */
private String jcmcEn;
/** 稽查名称颜色:1:蓝色;3:红色;5:绿色;7:橙色 */
private Integer jcmcys;
/** 稽查内容 */
private String jcnr;
/** 稽查内容-英文 */
private String jcnrEn;
/** 签名人id */
private Long qmrId;
/** 签名人名称 */
private String qmrMc;
/** 签名人名称-英文 */
private String qmrMcEn;
public String getJcmcEn() {
return jcmcEn;
}
public void setJcmcEn(String jcmcEn) {
this.jcmcEn = jcmcEn;
}
public String getJcnrEn() {
return jcnrEn;
}
public void setJcnrEn(String jcnrEn) {
this.jcnrEn = jcnrEn;
}
public String getQmrMcEn() {
return qmrMcEn;
}
public void setQmrMcEn(String qmrMcEn) {
this.qmrMcEn = qmrMcEn;
}
public void setFormId(Long formId)
{

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

@ -21,12 +21,33 @@ public class StudyFormApplyQmxx extends MpBaseEntity
/** 签名意义 */
private String qmyy;
/** 签名意义-英文 */
private String qmyyEn;
/** 签名人id */
private Long qmrId;
/** 签名人名称 */
private String qmrMc;
/** 签名人名称-英文 */
private String qmrMcEn;
public String getQmyyEn() {
return qmyyEn;
}
public void setQmyyEn(String qmyyEn) {
this.qmyyEn = qmyyEn;
}
public String getQmrMcEn() {
return qmrMcEn;
}
public void setQmrMcEn(String qmrMcEn) {
this.qmrMcEn = qmrMcEn;
}
public void setFormId(Long formId)
{

+ 19
- 7
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormFill.java View File

@ -41,17 +41,18 @@ public class StudyFormFill extends MpBaseEntity
/** 模板id */
private Long templateId;
/** 表单内容 */
private String bdnr;
/** 表单归属人id */
private Long userId;
/** 表单归属人名称 */
private String userMc;
/** 是否补录:1:否;10:是 */
private Integer sfbl;
/** 表单归属人名称-英文 */
private String userMcEn;
/** 是否补录 */
@Compare(name = "是否补录",nameEn = "Concentration")
private String sfbl;
/** 表单状态:1:填报中;3:已提交;5:已完成(经复核);7:已完成;9:待废止;11:已废止 */
private Integer bdzt;
@ -64,6 +65,9 @@ public class StudyFormFill extends MpBaseEntity
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date tjsj;
/** 表单内容 */
private String bdnr;
/** 物资信息 */
private String resource;
@ -121,6 +125,14 @@ public class StudyFormFill extends MpBaseEntity
@TableField(exist = false)
private String studyMc;
public String getUserMcEn() {
return userMcEn;
}
public void setUserMcEn(String userMcEn) {
this.userMcEn = userMcEn;
}
public String getZdgxjl() {
return zdgxjl;
}
@ -347,12 +359,12 @@ public class StudyFormFill extends MpBaseEntity
return userMc;
}
public void setSfbl(Integer sfbl)
public void setSfbl(String sfbl)
{
this.sfbl = sfbl;
}
public Integer getSfbl()
public String getSfbl()
{
return sfbl;
}

+ 24
- 2
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormPlan.java View File

@ -28,11 +28,11 @@ public class StudyFormPlan extends MpBaseEntity
private String bdbh;
/** 表单名称 */
@Compare(name = "表单名称")
@Compare(name = "表单名称",nameEn = "Concentration")
private String bdmc;
/** 表单说明 */
@Compare(name = "表单说明")
@Compare(name = "表单说明",nameEn = "Concentration")
private String bdsm;
/** 模板id */
@ -47,6 +47,9 @@ public class StudyFormPlan extends MpBaseEntity
/** 表单归属人名称 */
private String userMc;
/** 表单归属人名称-英文 */
private String userMcEn;
/** 表单状态:1:填报中;3:已提交;5:已完成(经复核)*/
private Integer bdzt;
@ -61,6 +64,9 @@ public class StudyFormPlan extends MpBaseEntity
/** 复核人员名称(通知用) */
private String fhryMc;
/** 复核人员名称-英文(通知用) */
private String fhryMcEn;
/** 物资信息 */
private String resource;
@ -90,6 +96,22 @@ public class StudyFormPlan extends MpBaseEntity
@TableField(exist = false)
private String studyMc;
public String getUserMcEn() {
return userMcEn;
}
public void setUserMcEn(String userMcEn) {
this.userMcEn = userMcEn;
}
public String getFhryMcEn() {
return fhryMcEn;
}
public void setFhryMcEn(String fhryMcEn) {
this.fhryMcEn = fhryMcEn;
}
public String getResource() {
return resource;
}

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

@ -24,18 +24,50 @@ public class StudyFormPlanJcgj extends MpBaseEntity
/** 稽查名称 */
private String jcmc;
/** 稽查名称-英文 */
private String jcmcEn;
/** 稽查名称颜色:1:蓝色;3:红色;5:绿色;7:橙色 */
private Integer jcmcys;
/** 稽查内容 */
private String jcnr;
/** 稽查内容-英文 */
private String jcnrEn;
/** 签名人id */
private Long qmrId;
/** 签名人名称 */
private String qmrMc;
/** 签名人名称-英文 */
private String qmrMcEn;
public String getJcmcEn() {
return jcmcEn;
}
public void setJcmcEn(String jcmcEn) {
this.jcmcEn = jcmcEn;
}
public String getJcnrEn() {
return jcnrEn;
}
public void setJcnrEn(String jcnrEn) {
this.jcnrEn = jcnrEn;
}
public String getQmrMcEn() {
return qmrMcEn;
}
public void setQmrMcEn(String qmrMcEn) {
this.qmrMcEn = qmrMcEn;
}
public void setFormId(Long formId)
{

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

@ -21,12 +21,33 @@ public class StudyFormPlanQmxx extends MpBaseEntity
/** 签名意义 */
private String qmyy;
/** 签名意义-英文 */
private String qmyyEn;
/** 签名人id */
private Long qmrId;
/** 签名人名称 */
private String qmrMc;
/** 签名人名称-英文 */
private String qmrMcEn;
public String getQmyyEn() {
return qmyyEn;
}
public void setQmyyEn(String qmyyEn) {
this.qmyyEn = qmyyEn;
}
public String getQmrMcEn() {
return qmrMcEn;
}
public void setQmrMcEn(String qmrMcEn) {
this.qmrMcEn = qmrMcEn;
}
public void setFormId(Long formId)
{

+ 24
- 2
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/domain/StudyFormPre.java View File

@ -31,11 +31,11 @@ public class StudyFormPre extends MpBaseEntity
private String bdbh;
/** 表单名称 */
@Compare(name = "表单名称")
@Compare(name = "表单名称",nameEn = "Concentration")
private String bdmc;
/** 表单说明 */
@Compare(name = "表单说明")
@Compare(name = "表单说明",nameEn = "Concentration")
private String bdsm;
/** 模板id */
@ -50,6 +50,9 @@ public class StudyFormPre extends MpBaseEntity
/** 表单归属人名称 */
private String userMc;
/** 表单归属人名称-英文 */
private String userMcEn;
/** 表单状态:1:填报中;3:已提交;5:已通过;7:未通过 */
private Integer bdzt;
@ -65,6 +68,9 @@ public class StudyFormPre extends MpBaseEntity
/** 审核人员名称(通知用) */
private String shryMc;
/** 审核人员名称-英文(通知用) */
private String shryMcEn;
/** 提交时间 */
@Excel(name = "提交时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ -98,6 +104,22 @@ public class StudyFormPre extends MpBaseEntity
@TableField(exist = false)
private String studyMc;
public String getUserMcEn() {
return userMcEn;
}
public void setUserMcEn(String userMcEn) {
this.userMcEn = userMcEn;
}
public String getShryMcEn() {
return shryMcEn;
}
public void setShryMcEn(String shryMcEn) {
this.shryMcEn = shryMcEn;
}
public String getResource() {
return resource;
}

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

@ -24,18 +24,50 @@ public class StudyFormPreJcgj extends MpBaseEntity
/** 稽查名称 */
private String jcmc;
/** 稽查名称-英文 */
private String jcmcEn;
/** 稽查名称颜色:1:蓝色;3:红色;5:绿色;7:橙色 */
private Integer jcmcys;
/** 稽查内容 */
private String jcnr;
/** 稽查内容-英文 */
private String jcnrEn;
/** 签名人id */
private Long qmrId;
/** 签名人名称 */
private String qmrMc;
/** 签名人名称-英文 */
private String qmrMcEn;
public String getJcmcEn() {
return jcmcEn;
}
public void setJcmcEn(String jcmcEn) {
this.jcmcEn = jcmcEn;
}
public String getJcnrEn() {
return jcnrEn;
}
public void setJcnrEn(String jcnrEn) {
this.jcnrEn = jcnrEn;
}
public String getQmrMcEn() {
return qmrMcEn;
}
public void setQmrMcEn(String qmrMcEn) {
this.qmrMcEn = qmrMcEn;
}
public void setFormId(Long formId)
{

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

@ -21,12 +21,33 @@ public class StudyFormPreQmxx extends MpBaseEntity
/** 签名意义 */
private String qmyy;
/** 签名意义-英文 */
private String qmyyEn;
/** 签名人id */
private Long qmrId;
/** 签名人名称 */
private String qmrMc;
/** 签名人名称-英文 */
private String qmrMcEn;
public String getQmyyEn() {
return qmyyEn;
}
public void setQmyyEn(String qmyyEn) {
this.qmyyEn = qmyyEn;
}
public String getQmrMcEn() {
return qmrMcEn;
}
public void setQmrMcEn(String qmrMcEn) {
this.qmrMcEn = qmrMcEn;
}
public void setFormId(Long formId)
{

+ 4
- 4
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/study/StudyFormApplySearchForm.java View File

@ -22,8 +22,8 @@ public class StudyFormApplySearchForm {
/** 模板名称 */
private String templateMc;
/** 是否补录:1:否;10:是 */
private Integer sfbl;
/** 是否补录 */
private String sfbl;
/** 提交时间开始 */
private String tjsjks;
@ -85,11 +85,11 @@ public class StudyFormApplySearchForm {
this.templateMc = templateMc;
}
public Integer getSfbl() {
public String getSfbl() {
return sfbl;
}
public void setSfbl(Integer sfbl) {
public void setSfbl(String sfbl) {
this.sfbl = sfbl;
}

+ 4
- 4
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/study/StudyFormFillSearchForm.java View File

@ -22,8 +22,8 @@ public class StudyFormFillSearchForm {
/** 模板名称 */
private String templateMc;
/** 是否补录:1:否;10:是 */
private Integer sfbl;
/** 是否补录*/
private String sfbl;
/** 提交时间开始 */
private String tjsjks;
@ -85,11 +85,11 @@ public class StudyFormFillSearchForm {
this.templateMc = templateMc;
}
public Integer getSfbl() {
public String getSfbl() {
return sfbl;
}
public void setSfbl(Integer sfbl) {
public void setSfbl(String sfbl) {
this.sfbl = sfbl;
}

+ 36
- 4
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormApplyJcgjService.java View File

@ -1,9 +1,14 @@
package com.hxhq.business.service;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.hxhq.business.domain.StudyFormApplyJcgj;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hxhq.business.domain.StudyFormApplyJcgj;
import com.hxhq.business.domain.StudyFormPreJcgj;
import com.hxhq.system.api.domain.SysUser;
/**
* 试验-申请单-稽查轨迹Service接口
@ -23,13 +28,40 @@ public interface IStudyFormApplyJcgjService extends IService
/**
* 新增稽查轨迹
* @param formId 记录id
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param qmr 签名人
* @param remark 备注
* @param time 时间
*/
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark, Date time);
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcrId 稽查人id
* @param jcrMc 稽查人名称
* @param qmr 签名人
* @param remark 备注
*/
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,Long jcrId,String jcrMc);
public StudyFormApplyJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark);
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcnrEn 稽查内容英文
* @param qmr 签名人
* @param remark 备注
*/
public StudyFormApplyJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr, String jcnrEn, SysUser qmr, String remark);
}

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

@ -4,6 +4,7 @@ import java.util.List;
import com.hxhq.business.domain.StudyFormApplyQmxx;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hxhq.business.domain.StudyFormPreQmxx;
import com.hxhq.system.api.domain.SysUser;
/**
* 试验-申请单-签名信息Service接口
@ -26,9 +27,8 @@ public interface IStudyFormApplyQmxxService extends IService
* 新增签名信息
* @param formId
* @param qmyy
* @param qmrId
* @param qmrMc
* @param qmr
* @param remark
*/
public void saveQmxx(Long formId, String qmyy, Long qmrId, String qmrMc,String remark);
public void saveQmxx(Long formId, String qmyy, SysUser qmr, String remark);
}

+ 35
- 5
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPlanJcgjService.java View File

@ -1,10 +1,13 @@
package com.hxhq.business.service;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.hxhq.business.domain.StudyFormFillJcgj;
import com.hxhq.business.domain.StudyFormPlanJcgj;
import com.hxhq.business.domain.StudyFormPlanJcgj;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hxhq.system.api.domain.SysUser;
/**
* 试验-计划单-稽查轨迹Service接口
@ -24,14 +27,41 @@ public interface IStudyFormPlanJcgjService extends IService
/**
* 新增稽查轨迹
* @param formId 记录id
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param qmr 签名人
* @param remark 备注
* @param time 时间
*/
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark, Date time);
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcrId 稽查人id
* @param jcrMc 稽查人名称
* @param qmr 签名人
* @param remark 备注
*/
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,Long jcrId,String jcrMc);
public StudyFormPlanJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark);
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcnrEn 稽查内容英文
* @param qmr 签名人
* @param remark 备注
*/
public StudyFormPlanJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr, String jcnrEn, SysUser qmr, String remark);
}

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

@ -5,6 +5,7 @@ import java.util.List;
import com.hxhq.business.domain.StudyFormFillQmxx;
import com.hxhq.business.domain.StudyFormPlanQmxx;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hxhq.system.api.domain.SysUser;
/**
* 试验-计划单-签名信息Service接口
@ -27,9 +28,8 @@ public interface IStudyFormPlanQmxxService extends IService
* 新增签名信息
* @param formId
* @param qmyy
* @param qmrId
* @param qmrMc
* @param qmr
* @param remark
*/
public void saveQmxx(Long formId, String qmyy, Long qmrId, String qmrMc,String remark);
public void saveQmxx(Long formId, String qmyy, SysUser qmr, String remark);
}

+ 35
- 4
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/IStudyFormPreJcgjService.java View File

@ -1,10 +1,14 @@
package com.hxhq.business.service;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.hxhq.business.domain.MjyFfjlJcgj;
import com.hxhq.business.domain.StudyFormPreJcgj;
import com.hxhq.business.domain.StudyFormPreJcgj;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hxhq.system.api.domain.SysUser;
/**
* 试验-预填单-稽查轨迹Service接口
@ -24,14 +28,41 @@ public interface IStudyFormPreJcgjService extends IService
/**
* 新增稽查轨迹
* @param formId 记录id
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param qmr 签名人
* @param remark 备注
* @param time 时间
*/
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark, Date time);
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcrId 稽查人id
* @param jcrMc 稽查人名称
* @param qmr 签名人
* @param remark 备注
*/
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,Long jcrId,String jcrMc);
public StudyFormPreJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark);
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcnrEn 稽查内容英文
* @param qmr 签名人
* @param remark 备注
*/
public StudyFormPreJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr, String jcnrEn, SysUser qmr, String remark);
}

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

@ -3,6 +3,7 @@ package com.hxhq.business.service;
import java.util.List;
import com.hxhq.business.domain.StudyFormPreQmxx;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hxhq.system.api.domain.SysUser;
/**
* 试验-预填单-签名信息Service接口
@ -24,10 +25,9 @@ public interface IStudyFormPreQmxxService extends IService
* 新增签名信息
* @param formId
* @param qmyy
* @param qmrId
* @param qmrMc
* @param qmr
* @param remark
*/
public void saveQmxx(Long formId, String qmyy, Long qmrId, String qmrMc,String remark);
public void saveQmxx(Long formId, String qmyy, SysUser qmr, String remark);
}

+ 95
- 13
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyJcgjServiceImpl.java View File

@ -1,12 +1,19 @@
package com.hxhq.business.service.impl;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hxhq.business.domain.StudyFormApplyJcgj;
import com.hxhq.business.domain.StudyFormPreJcgj;
import com.hxhq.business.utils.JctUtil;
import com.hxhq.business.utils.StudyFormUtil;
import com.hxhq.common.core.exception.ServiceException;
import com.hxhq.common.core.utils.DateUtils;
import com.hxhq.common.core.utils.StringUtils;
import com.hxhq.system.api.domain.SysUser;
import org.springframework.stereotype.Service;
import com.hxhq.business.mapper.StudyFormApplyJcgjMapper;
import com.hxhq.business.domain.StudyFormApplyJcgj;
@ -48,25 +55,100 @@ public class StudyFormApplyJcgjServiceImpl extends ServiceImpl
/**
* 新增稽查轨迹
* @param formId
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param qmr 签名人
* @param remark 备注
* @param time 时间
*/
@Override
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark, Date time){
StudyFormApplyJcgj formJcgj = new StudyFormApplyJcgj();
formJcgj.setFormId(formId);
formJcgj.setJcgjlx(jcgjlx);
formJcgj.setJcmc(jcmc);
formJcgj.setJcmcEn(StudyFormUtil.getQmyyEn(jcmc));
formJcgj.setJcmcys(jcmcys);
if(jcnr!=null){
formJcgj.setJcnr(JctUtil.formatStr(jcnr));
formJcgj.setJcnrEn(StudyFormUtil.getJcnrEn(jcnr));
}
if(qmr!=null){
formJcgj.setQmrId(qmr.getUserId());
formJcgj.setQmrMc(qmr.getNickName());
formJcgj.setQmrMcEn(qmr.getUserName());
}
if(time!=null){
formJcgj.setCreateTime(time);
}
formJcgj.setRemark(remark);
this.save(formJcgj);
}
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcrId 稽查人id
* @param jcrMc 稽查人名称
* @param qmr 签名人
* @param remark 备注
*/
@Override
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,Long jcrId,String jcrMc){
StudyFormApplyJcgj studyFormApplyJcgj = new StudyFormApplyJcgj();
studyFormApplyJcgj.setFormId(formId);
studyFormApplyJcgj.setJcgjlx(jcgjlx);
studyFormApplyJcgj.setJcmc(jcmc);
studyFormApplyJcgj.setJcmcys(jcmcys);
studyFormApplyJcgj.setJcnr(jcnr);
studyFormApplyJcgj.setQmrId(jcrId);
studyFormApplyJcgj.setQmrMc(jcrMc);
this.save(studyFormApplyJcgj);
public StudyFormApplyJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark){
StudyFormApplyJcgj formJcgj = new StudyFormApplyJcgj();
formJcgj.setFormId(formId);
formJcgj.setJcgjlx(jcgjlx);
formJcgj.setJcmc(jcmc);
formJcgj.setJcmcEn(StudyFormUtil.getQmyyEn(jcmc));
formJcgj.setJcmcys(jcmcys);
if(jcnr!=null){
formJcgj.setJcnr(JctUtil.formatStr(jcnr));
formJcgj.setJcnrEn(StudyFormUtil.getJcnrEn(jcnr));
}
if(qmr!=null) {
formJcgj.setQmrId(qmr.getUserId());
formJcgj.setQmrMc(qmr.getNickName());
formJcgj.setQmrMcEn(qmr.getUserName());
}
formJcgj.setRemark(remark);
return formJcgj;
}
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcnrEn 稽查内容英文
* @param qmr 签名人
* @param remark 备注
*/
@Override
public StudyFormApplyJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,String jcnrEn, SysUser qmr, String remark){
StudyFormApplyJcgj formJcgj = new StudyFormApplyJcgj();
formJcgj.setFormId(formId);
formJcgj.setJcgjlx(jcgjlx);
formJcgj.setJcmc(jcmc);
formJcgj.setJcmcEn(StudyFormUtil.getQmyyEn(jcmc));
formJcgj.setJcmcys(jcmcys);
formJcgj.setJcnr(jcnr);
formJcgj.setJcnrEn(jcnrEn);
if(qmr!=null) {
formJcgj.setQmrId(qmr.getUserId());
formJcgj.setQmrMc(qmr.getNickName());
formJcgj.setQmrMcEn(qmr.getUserName());
}
formJcgj.setRemark(remark);
return formJcgj;
}
}

+ 10
- 5
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyQmxxServiceImpl.java View File

@ -3,9 +3,12 @@ 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.StudyFormApplyQmxx;
import com.hxhq.business.domain.StudyFormPreQmxx;
import com.hxhq.business.utils.StudyFormUtil;
import com.hxhq.common.core.exception.ServiceException;
import com.hxhq.common.core.utils.DateUtils;
import com.hxhq.system.api.domain.SysUser;
import org.springframework.stereotype.Service;
import com.hxhq.business.mapper.StudyFormApplyQmxxMapper;
import com.hxhq.business.domain.StudyFormApplyQmxx;
@ -40,21 +43,23 @@ public class StudyFormApplyQmxxServiceImpl extends ServiceImpl
return this.list(queryWrapper);
}
/**
* 新增签名信息
* @param formId
* @param qmyy
* @param qmrId
* @param qmrMc
* @param qmr
* @param remark
*/
@Override
public void saveQmxx(Long formId, String qmyy, Long qmrId, String qmrMc,String remark){
public void saveQmxx(Long formId, String qmyy, SysUser qmr, String remark){
StudyFormApplyQmxx studyFormApplyQmxx=new StudyFormApplyQmxx();
studyFormApplyQmxx.setFormId(formId);
studyFormApplyQmxx.setQmyy(qmyy);
studyFormApplyQmxx.setQmrId(qmrId);
studyFormApplyQmxx.setQmrMc(qmrMc);
studyFormApplyQmxx.setQmyyEn(StudyFormUtil.getQmyyEn(qmyy));
studyFormApplyQmxx.setQmrId(qmr.getUserId());
studyFormApplyQmxx.setQmrMc(qmr.getNickName());
studyFormApplyQmxx.setQmrMcEn(qmr.getUserName());
studyFormApplyQmxx.setRemark(remark);
this.save(studyFormApplyQmxx);
}

+ 57
- 70
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java View File

@ -68,7 +68,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
if (form.getStudySubjectId() != null && form.getStudySubjectId().longValue() > 0) {
queryWrapper.eq("t.study_subject_id", form.getStudySubjectId());
}
if (form.getSfbl() != null && form.getSfbl().intValue() > 0) {
if (StringUtils.isNoneBlank(form.getSfbl())) {
queryWrapper.eq("t.sfbl", form.getSfbl());
}
if (StringUtils.isNoneBlank(form.getBdbh())) {
@ -117,8 +117,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
*/
@Override
public void jq(StudyFormApply studyFormApply) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm());
checkPassword(qmr, studyFormApply.getQmrmm());
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -130,11 +131,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
throw new ServiceException("表单不是申请状态,不能加签");
}
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormApply.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.bj.getValue(), studyFormApply.getQmyy(), JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.bj.getValue(), studyFormApply.getQmyy(), JcmcysEnum.orange.getValue(), null, qmr, studyFormApply.getRemark(),null);
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), studyFormApply.getQmyy(), SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), studyFormApply.getQmyy(), qmr, studyFormApply.getRemark());
}
@ -145,8 +144,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
*/
@Override
public void fz(StudyFormApply studyFormApply) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm());
checkPassword(qmr, studyFormApply.getQmrmm());
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -160,11 +160,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.dfz.getValue());
this.updateById(studyFormApplyOld);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormApply.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "申请废止", JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "申请废止", JcmcysEnum.orange.getValue(), null, qmr, studyFormApply.getRemark(),null);
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "申请废止", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "申请废止", qmr, studyFormApply.getRemark());
}
@ -176,8 +174,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
*/
@Override
public void qrfz(StudyFormApplyShfzForm form) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), form.getQmrmm());
checkPassword(qmr, form.getQmrmm());
if (form.getId() == null || form.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -192,21 +191,16 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.yfz.getValue());
this.updateById(studyFormApplyOld);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("原因", form.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "废止通过", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "废止通过", JcmcysEnum.green.getValue(),null, qmr, form.getRemark(),null);
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), form.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止通过", qmr, form.getRemark());
} else {
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.tbz.getValue());
this.updateById(studyFormApplyOld);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("原因", form.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "废止拒绝", JcmcysEnum.red.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "废止拒绝", JcmcysEnum.red.getValue(), null, qmr, form.getRemark(),null);
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), form.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止拒绝", qmr, form.getRemark());
}
@ -220,8 +214,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
*/
@Override
public void ghgsr(StudyFormApply studyFormApply) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm());
checkPassword(qmr, studyFormApply.getQmrmm());
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -232,20 +227,19 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
if (studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.dfz.getValue()) || studyFormApplyOld.getBdzt().equals(StudyFormApplyBdztEnum.yfz.getValue())) {
throw new ServiceException("表单已废止或待废止,不能更换归属人");
}
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("新归属人", studyFormApply.getUserMc());
formData.put("原归属人", studyFormApplyOld.getUserMc());
formData.put("原因", studyFormApply.getRemark());
//是否验证新的归属人是否属于该实验 todo
studyFormApplyOld.setUserId(studyFormApply.getUserId());
studyFormApplyOld.setUserMc(studyFormApply.getUserMc());
this.updateById(studyFormApplyOld);
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "更换归属人", JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("新归属人", studyFormApply.getUserMc());
formData.put("原归属人", studyFormApplyOld.getUserMc());
formData.put("原因", studyFormApply.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "更换归属人", JcmcysEnum.orange.getValue(),formData, qmr, null,null);
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "更换归属人", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "更换归属人", qmr, studyFormApply.getRemark());
}
@ -256,12 +250,13 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
*/
@Override
public void bc(StudyFormApply studyFormApply) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
if (studyFormApply.getId() != null) {
StudyFormApply studyFormApplyOld = this.queryInfo(studyFormApply.getId());
if (studyFormApplyOld == null) {
throw new ServiceException("信息不存在或已删除");
}
if (!SecurityUtils.getUserId().equals(studyFormApplyOld.getUserId())) {
if (!qmr.getUserId().equals(studyFormApplyOld.getUserId())) {
throw new ServiceException("只能操作自己的表单");
}
studyFormApplyOld.setBdmc(studyFormApply.getBdmc());
@ -274,31 +269,23 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
//稽查轨迹
List<StudyFormApplyJcgj> studyFormApplyJcgjs = new ArrayList<>();
for (ObjectCompareUtil.FieldChange fieldChange : fieldChanges) {
StudyFormApplyJcgj studyFormApplyJcgj = new StudyFormApplyJcgj();
studyFormApplyJcgj.setFormId(studyFormApply.getId());
studyFormApplyJcgj.setJcgjlx(JcgjlxEnum.xg.getValue());
studyFormApplyJcgj.setJcmc("修改");
studyFormApplyJcgj.setJcmcys(JcmcysEnum.orange.getValue());
studyFormApplyJcgj.setJcnr(fieldChange.toString());
studyFormApplyJcgj.setQmrId(SecurityUtils.getUserId());
studyFormApplyJcgj.setQmrMc(SecurityUtils.getNickName());
studyFormApplyJcgjs.add(studyFormApplyJcgj);
studyFormApplyJcgjs.add(studyFormApplyJcgjService.getJcgj(studyFormApply.getId(), JcgjlxEnum.xg.getValue(), "修改", JcmcysEnum.orange.getValue(), fieldChange.toString(), fieldChange.toEnString(), SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getRemark()));
}
studyFormApplyJcgjService.saveBatch(studyFormApplyJcgjs);
}
} else {
studyFormApply.setBdzt(StudyFormApplyBdztEnum.tbz.getValue());
studyFormApply.setUserId(SecurityUtils.getUserId());
studyFormApply.setUserMc(SecurityUtils.getNickName());
studyFormApply.setUserId(qmr.getUserId());
studyFormApply.setUserMc(qmr.getNickName());
studyFormApply.setUserMcEn(qmr.getUserName());
this.save(studyFormApply);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormApply.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApply.getId(), JcgjlxEnum.lc.getValue(), "填写并保存记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormApplyJcgjService.saveJcgj(studyFormApply.getId(), JcgjlxEnum.lc.getValue(), "填写并保存记录", JcmcysEnum.green.getValue(), null, qmr, studyFormApply.getRemark(),null);
}
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "填写并保存记录", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "填写并保存记录", qmr, studyFormApply.getRemark());
}
@ -310,21 +297,20 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
*/
@Override
public void tj(StudyFormApply studyFormApply) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm());
checkPassword(qmr, studyFormApply.getQmrmm());
if (studyFormApply.getId() == null) {
studyFormApply.setUserId(SecurityUtils.getUserId());
studyFormApply.setUserId(qmr.getUserId());
studyFormApply.setUserMc(SecurityUtils.getNickName());
}
studyFormApply.setBdzt(StudyFormApplyBdztEnum.ytj.getValue());
studyFormApply.setTjsj(new Date());
this.saveOrUpdate(studyFormApply);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormApply.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApply.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormApplyJcgjService.saveJcgj(studyFormApply.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), null, qmr, studyFormApply.getRemark(),null);
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "填写并提交记录", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApply.getId(), "填写并提交记录", qmr, studyFormApply.getRemark());
}
@ -335,8 +321,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
*/
@Override
public void fhtg(StudyFormApply studyFormApply) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm());
checkPassword(qmr, studyFormApply.getQmrmm());
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -350,11 +337,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.yfh.getValue());
this.updateById(studyFormApplyOld);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormApply.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "复核通过", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "复核通过", JcmcysEnum.green.getValue(), null, qmr, studyFormApply.getRemark(),null);
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核通过", qmr, studyFormApply.getRemark());
}
@ -365,8 +350,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
*/
@Override
public void fhjj(StudyFormApply studyFormApply) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm());
checkPassword(qmr, studyFormApply.getQmrmm());
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -382,9 +368,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("原因", studyFormApply.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "复核拒绝", JcmcysEnum.red.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "复核拒绝", JcmcysEnum.red.getValue(), formData, qmr, null,null);
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核拒绝", qmr, studyFormApply.getRemark());
}
@ -395,8 +381,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
*/
@Override
public void sy(StudyFormApply studyFormApply) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm());
checkPassword(qmr, studyFormApply.getQmrmm());
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -412,9 +399,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormApply.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "已审阅", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "已审阅", JcmcysEnum.green.getValue(), null, qmr, studyFormApply.getRemark(),null);
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "已审阅", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "已审阅", qmr, studyFormApply.getRemark());
}
@ -426,8 +413,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
*/
@Override
public void shtg(StudyFormApply studyFormApply) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm());
checkPassword(qmr, studyFormApply.getQmrmm());
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -441,11 +429,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.ywc.getValue());
this.updateById(studyFormApplyOld);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormApply.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "审核通过", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "审核通过", JcmcysEnum.green.getValue(),null, qmr, studyFormApply.getRemark(),null);
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核通过", qmr, studyFormApply.getRemark());
}
@ -456,8 +442,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
*/
@Override
public void shjj(StudyFormApply studyFormApply) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormApply.getQmrmm());
checkPassword(qmr, studyFormApply.getQmrmm());
if (studyFormApply.getId() == null || studyFormApply.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -473,9 +460,9 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("原因", studyFormApply.getRemark());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "审核拒绝", JcmcysEnum.red.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "审核拒绝", JcmcysEnum.red.getValue(), formData, qmr, studyFormApply.getRemark(),null);
//签名信息
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormApply.getRemark());
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核拒绝", qmr, studyFormApply.getRemark());
}

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

@ -71,7 +71,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl
if (form.getStudySubjectId() != null && form.getStudySubjectId().longValue() > 0) {
queryWrapper.eq("t.study_subject_id", form.getStudySubjectId());
}
if (form.getSfbl() != null && form.getSfbl().intValue() > 0) {
if (StringUtils.isNoneBlank(form.getSfbl())) {
queryWrapper.eq("t.sfbl", form.getSfbl());
}
if (StringUtils.isNoneBlank(form.getBdbh())) {

+ 94
- 13
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanJcgjServiceImpl.java View File

@ -1,12 +1,19 @@
package com.hxhq.business.service.impl;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hxhq.business.domain.StudyFormPlanJcgj;
import com.hxhq.business.domain.StudyFormPlanJcgj;
import com.hxhq.business.utils.JctUtil;
import com.hxhq.business.utils.StudyFormUtil;
import com.hxhq.common.core.exception.ServiceException;
import com.hxhq.common.core.utils.DateUtils;
import com.hxhq.common.core.utils.StringUtils;
import com.hxhq.system.api.domain.SysUser;
import org.springframework.stereotype.Service;
import com.hxhq.business.mapper.StudyFormPlanJcgjMapper;
import com.hxhq.business.domain.StudyFormPlanJcgj;
@ -49,24 +56,98 @@ public class StudyFormPlanJcgjServiceImpl extends ServiceImpl
/**
* 新增稽查轨迹
* @param formId
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcrId 稽查人id
* @param jcrMc 稽查人名称
* @param qmr 签名人
* @param remark 备注
* @param time 时间
*/
@Override
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,Long jcrId,String jcrMc){
StudyFormPlanJcgj studyFormPlanJcgj = new StudyFormPlanJcgj();
studyFormPlanJcgj.setFormId(formId);
studyFormPlanJcgj.setJcgjlx(jcgjlx);
studyFormPlanJcgj.setJcmc(jcmc);
studyFormPlanJcgj.setJcmcys(jcmcys);
studyFormPlanJcgj.setJcnr(jcnr);
studyFormPlanJcgj.setQmrId(jcrId);
studyFormPlanJcgj.setQmrMc(jcrMc);
this.save(studyFormPlanJcgj);
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark, Date time){
StudyFormPlanJcgj formJcgj = new StudyFormPlanJcgj();
formJcgj.setFormId(formId);
formJcgj.setJcgjlx(jcgjlx);
formJcgj.setJcmc(jcmc);
formJcgj.setJcmcEn(StudyFormUtil.getQmyyEn(jcmc));
formJcgj.setJcmcys(jcmcys);
if(jcnr!=null){
formJcgj.setJcnr(JctUtil.formatStr(jcnr));
formJcgj.setJcnrEn(StudyFormUtil.getJcnrEn(jcnr));
}
if(qmr!=null){
formJcgj.setQmrId(qmr.getUserId());
formJcgj.setQmrMc(qmr.getNickName());
formJcgj.setQmrMcEn(qmr.getUserName());
}
if(time!=null){
formJcgj.setCreateTime(time);
}
formJcgj.setRemark(remark);
this.save(formJcgj);
}
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param qmr 签名人
* @param remark 备注
*/
@Override
public StudyFormPlanJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark){
StudyFormPlanJcgj formJcgj = new StudyFormPlanJcgj();
formJcgj.setFormId(formId);
formJcgj.setJcgjlx(jcgjlx);
formJcgj.setJcmc(jcmc);
formJcgj.setJcmcEn(StudyFormUtil.getQmyyEn(jcmc));
formJcgj.setJcmcys(jcmcys);
if(jcnr!=null){
formJcgj.setJcnr(JctUtil.formatStr(jcnr));
formJcgj.setJcnrEn(StudyFormUtil.getJcnrEn(jcnr));
}
if(qmr!=null) {
formJcgj.setQmrId(qmr.getUserId());
formJcgj.setQmrMc(qmr.getNickName());
formJcgj.setQmrMcEn(qmr.getUserName());
}
formJcgj.setRemark(remark);
return formJcgj;
}
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcnrEn 稽查内容英文
* @param qmr 签名人
* @param remark 备注
*/
@Override
public StudyFormPlanJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,String jcnrEn, SysUser qmr, String remark){
StudyFormPlanJcgj formJcgj = new StudyFormPlanJcgj();
formJcgj.setFormId(formId);
formJcgj.setJcgjlx(jcgjlx);
formJcgj.setJcmc(jcmc);
formJcgj.setJcmcEn(StudyFormUtil.getQmyyEn(jcmc));
formJcgj.setJcmcys(jcmcys);
formJcgj.setJcnr(jcnr);
formJcgj.setJcnrEn(jcnrEn);
if(qmr!=null) {
formJcgj.setQmrId(qmr.getUserId());
formJcgj.setQmrMc(qmr.getNickName());
formJcgj.setQmrMcEn(qmr.getUserName());
}
formJcgj.setRemark(remark);
return formJcgj;
}
}

+ 11
- 5
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanQmxxServiceImpl.java View File

@ -4,8 +4,11 @@ import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hxhq.business.domain.StudyFormPlanQmxx;
import com.hxhq.business.domain.StudyFormPlanQmxx;
import com.hxhq.business.utils.StudyFormUtil;
import com.hxhq.common.core.exception.ServiceException;
import com.hxhq.common.core.utils.DateUtils;
import com.hxhq.system.api.domain.SysUser;
import org.springframework.stereotype.Service;
import com.hxhq.business.mapper.StudyFormPlanQmxxMapper;
import com.hxhq.business.domain.StudyFormPlanQmxx;
@ -39,23 +42,26 @@ public class StudyFormPlanQmxxServiceImpl extends ServiceImpl
return this.list(queryWrapper);
}
/**
* 新增签名信息
* @param formId
* @param qmyy
* @param qmrId
* @param qmrMc
* @param qmr
* @param remark
*/
@Override
public void saveQmxx(Long formId, String qmyy, Long qmrId, String qmrMc,String remark){
public void saveQmxx(Long formId, String qmyy, SysUser qmr, String remark){
StudyFormPlanQmxx studyFormPlanQmxx=new StudyFormPlanQmxx();
studyFormPlanQmxx.setFormId(formId);
studyFormPlanQmxx.setQmyy(qmyy);
studyFormPlanQmxx.setQmrId(qmrId);
studyFormPlanQmxx.setQmrMc(qmrMc);
studyFormPlanQmxx.setQmyyEn(StudyFormUtil.getQmyyEn(qmyy));
studyFormPlanQmxx.setQmrId(qmr.getUserId());
studyFormPlanQmxx.setQmrMc(qmr.getNickName());
studyFormPlanQmxx.setQmrMcEn(qmr.getUserName());
studyFormPlanQmxx.setRemark(remark);
this.save(studyFormPlanQmxx);
}
}

+ 33
- 40
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java View File

@ -99,8 +99,9 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
*/
@Override
public void ghgsr(StudyFormPlan studyFormPlan) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormPlan.getQmrmm());
checkPassword(qmr, studyFormPlan.getQmrmm());
if (studyFormPlan.getId() == null || studyFormPlan.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -108,20 +109,19 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
if (studyFormPlanOld == null) {
throw new ServiceException("表单不存在或已删除");
}
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("新归属人", studyFormPlan.getUserMc());
formData.put("原归属人", studyFormPlanOld.getUserMc());
formData.put("原因", studyFormPlan.getRemark());
//是否验证新的归属人是否属于该实验 todo
studyFormPlanOld.setUserId(studyFormPlan.getUserId());
studyFormPlanOld.setUserMc(studyFormPlan.getUserMc());
this.updateById(studyFormPlanOld);
studyFormPlanJcgjService.saveJcgj(studyFormPlanOld.getId(), JcgjlxEnum.lc.getValue(), "更换归属人", JcmcysEnum.orange.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("新归属人", studyFormPlan.getUserMc());
formData.put("原归属人", studyFormPlanOld.getUserMc());
formData.put("原因", studyFormPlan.getRemark());
studyFormPlanJcgjService.saveJcgj(studyFormPlanOld.getId(), JcgjlxEnum.lc.getValue(), "更换归属人", JcmcysEnum.orange.getValue(), formData, qmr, null,null);
//签名信息
studyFormPlanQmxxService.saveQmxx(studyFormPlanOld.getId(), "更换归属人", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormPlan.getRemark());
studyFormPlanQmxxService.saveQmxx(studyFormPlanOld.getId(), "更换归属人", qmr, studyFormPlan.getRemark());
}
@ -132,12 +132,13 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
*/
@Override
public void bc(StudyFormPlan studyFormPlan) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
if (studyFormPlan.getId() != null) {
StudyFormPlan studyFormPlanOld = this.queryInfo(studyFormPlan.getId());
if (studyFormPlanOld == null) {
throw new ServiceException("信息不存在或已删除");
}
if (!SecurityUtils.getUserId().equals(studyFormPlanOld.getUserId())) {
if (!qmr.getUserId().equals(studyFormPlanOld.getUserId())) {
throw new ServiceException("只能操作自己的表单");
}
studyFormPlanOld.setBdmc(studyFormPlan.getBdmc());
@ -150,31 +151,23 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
//稽查轨迹
List<StudyFormPlanJcgj> studyFormPlanJcgjs = new ArrayList<>();
for (ObjectCompareUtil.FieldChange fieldChange : fieldChanges) {
StudyFormPlanJcgj studyFormPlanJcgj = new StudyFormPlanJcgj();
studyFormPlanJcgj.setFormId(studyFormPlan.getId());
studyFormPlanJcgj.setJcgjlx(JcgjlxEnum.xg.getValue());
studyFormPlanJcgj.setJcmc("修改");
studyFormPlanJcgj.setJcmcys(JcmcysEnum.orange.getValue());
studyFormPlanJcgj.setJcnr(fieldChange.toString());
studyFormPlanJcgj.setQmrId(SecurityUtils.getUserId());
studyFormPlanJcgj.setQmrMc(SecurityUtils.getNickName());
studyFormPlanJcgjs.add(studyFormPlanJcgj);
studyFormPlanJcgjs.add(studyFormPlanJcgjService.getJcgj(studyFormPlan.getId(), JcgjlxEnum.xg.getValue(), "修改", JcmcysEnum.orange.getValue(), fieldChange.toString(), fieldChange.toEnString(), SecurityUtils.getLoginUser().getSysUser(), studyFormPlan.getRemark()));
}
studyFormPlanJcgjService.saveBatch(studyFormPlanJcgjs);
}
} else {
studyFormPlan.setBdzt(StudyFormPlanBdztEnum.tbz.getValue());
studyFormPlan.setUserId(SecurityUtils.getUserId());
studyFormPlan.setUserMc(SecurityUtils.getNickName());
studyFormPlan.setUserId(qmr.getUserId());
studyFormPlan.setUserMc(qmr.getNickName());
studyFormPlan.setUserMcEn(qmr.getUserName());
this.save(studyFormPlan);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormPlan.getRemark());
studyFormPlanJcgjService.saveJcgj(studyFormPlan.getId(), JcgjlxEnum.lc.getValue(), "填写并保存记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormPlanJcgjService.saveJcgj(studyFormPlan.getId(), JcgjlxEnum.lc.getValue(), "填写并保存记录", JcmcysEnum.green.getValue(), null,qmr,studyFormPlan.getRemark(),null);
}
//签名信息
studyFormPlanQmxxService.saveQmxx(studyFormPlan.getId(), "填写并保存记录", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormPlan.getRemark());
studyFormPlanQmxxService.saveQmxx(studyFormPlan.getId(), "填写并保存记录", qmr,studyFormPlan.getRemark());
}
@ -186,8 +179,9 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
*/
@Override
public void tj(StudyFormPlan studyFormPlan) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormPlan.getQmrmm());
checkPassword(qmr, studyFormPlan.getQmrmm());
if (studyFormPlan.getId() == null) {
studyFormPlan.setUserId(SecurityUtils.getUserId());
studyFormPlan.setUserMc(SecurityUtils.getNickName());
@ -199,9 +193,9 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormPlan.getRemark());
studyFormPlanJcgjService.saveJcgj(studyFormPlan.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormPlanJcgjService.saveJcgj(studyFormPlan.getId(), JcgjlxEnum.lc.getValue(), "填写并提交记录", JcmcysEnum.green.getValue(), null, qmr,studyFormPlan.getRemark(),null);
//签名信息
studyFormPlanQmxxService.saveQmxx(studyFormPlan.getId(), "填写并提交记录", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormPlan.getRemark());
studyFormPlanQmxxService.saveQmxx(studyFormPlan.getId(), "填写并提交记录", qmr,studyFormPlan.getRemark());
}
@ -213,8 +207,9 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
*/
@Override
public void fhtg(StudyFormPlan studyFormPlan) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormPlan.getQmrmm());
checkPassword(qmr, studyFormPlan.getQmrmm());
if (studyFormPlan.getId() == null || studyFormPlan.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -228,11 +223,9 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
studyFormPlanOld.setBdzt(StudyFormPlanBdztEnum.ywcfh.getValue());
this.updateById(studyFormPlanOld);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormPlan.getRemark());
studyFormPlanJcgjService.saveJcgj(studyFormPlanOld.getId(), JcgjlxEnum.lc.getValue(), "复核通过", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormPlanJcgjService.saveJcgj(studyFormPlanOld.getId(), JcgjlxEnum.lc.getValue(), "复核通过", JcmcysEnum.green.getValue(), null, qmr, studyFormPlan.getRemark(),null);
//签名信息
studyFormPlanQmxxService.saveQmxx(studyFormPlanOld.getId(), "复核通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormPlan.getRemark());
studyFormPlanQmxxService.saveQmxx(studyFormPlanOld.getId(), "复核通过", qmr,studyFormPlan.getRemark());
}
@ -243,8 +236,9 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
*/
@Override
public void fhjj(StudyFormPlan studyFormPlan) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormPlan.getQmrmm());
checkPassword(qmr, studyFormPlan.getQmrmm());
if (studyFormPlan.getId() == null || studyFormPlan.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -260,9 +254,9 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("原因", studyFormPlan.getRemark());
studyFormPlanJcgjService.saveJcgj(studyFormPlanOld.getId(), JcgjlxEnum.lc.getValue(), "复核拒绝", JcmcysEnum.red.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormPlanJcgjService.saveJcgj(studyFormPlanOld.getId(), JcgjlxEnum.lc.getValue(), "复核拒绝", JcmcysEnum.red.getValue(), formData, qmr, null,null);
//签名信息
studyFormPlanQmxxService.saveQmxx(studyFormPlanOld.getId(), "复核拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormPlan.getRemark());
studyFormPlanQmxxService.saveQmxx(studyFormPlanOld.getId(), "复核拒绝", qmr, studyFormPlan.getRemark());
}
@ -274,8 +268,9 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
*/
@Override
public void sy(StudyFormPlan studyFormPlan) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证签名人密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormPlan.getQmrmm());
checkPassword(qmr, studyFormPlan.getQmrmm());
if (studyFormPlan.getId() == null || studyFormPlan.getId().longValue() < 0) {
throw new ServiceException("参数id不正确");
}
@ -289,11 +284,9 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
studyFormPlanOld.setBdnr(studyFormPlan.getBdnr());
this.updateById(studyFormPlanOld);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormPlan.getRemark());
studyFormPlanJcgjService.saveJcgj(studyFormPlanOld.getId(), JcgjlxEnum.lc.getValue(), "已审阅", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormPlanJcgjService.saveJcgj(studyFormPlanOld.getId(), JcgjlxEnum.lc.getValue(), "已审阅", JcmcysEnum.green.getValue(), null, qmr, studyFormPlan.getRemark(),null);
//签名信息
studyFormPlanQmxxService.saveQmxx(studyFormPlanOld.getId(), "已审阅", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormPlan.getRemark());
studyFormPlanQmxxService.saveQmxx(studyFormPlanOld.getId(), "已审阅", qmr, studyFormPlan.getRemark());
}

+ 94
- 13
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreJcgjServiceImpl.java View File

@ -1,12 +1,19 @@
package com.hxhq.business.service.impl;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.hxhq.business.domain.MjyJcgj;
import com.hxhq.business.domain.StudyFormPreJcgj;
import com.hxhq.business.utils.JctUtil;
import com.hxhq.business.utils.StudyFormUtil;
import com.hxhq.common.core.exception.ServiceException;
import com.hxhq.common.core.utils.DateUtils;
import com.hxhq.common.core.utils.StringUtils;
import com.hxhq.system.api.domain.SysUser;
import org.springframework.stereotype.Service;
import com.hxhq.business.mapper.StudyFormPreJcgjMapper;
import com.hxhq.business.domain.StudyFormPreJcgj;
@ -47,25 +54,99 @@ public class StudyFormPreJcgjServiceImpl extends ServiceImpl
/**
* 新增稽查轨迹
* @param formId
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcrId 稽查人id
* @param jcrMc 稽查人名称
* @param qmr 签名人
* @param remark 备注
* @param time 时间
*/
@Override
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,Long jcrId,String jcrMc){
StudyFormPreJcgj studyFormPreJcgj = new StudyFormPreJcgj();
studyFormPreJcgj.setFormId(formId);
studyFormPreJcgj.setJcgjlx(jcgjlx);
studyFormPreJcgj.setJcmc(jcmc);
studyFormPreJcgj.setJcmcys(jcmcys);
studyFormPreJcgj.setJcnr(jcnr);
studyFormPreJcgj.setQmrId(jcrId);
studyFormPreJcgj.setQmrMc(jcrMc);
this.save(studyFormPreJcgj);
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark, Date time){
StudyFormPreJcgj formJcgj = new StudyFormPreJcgj();
formJcgj.setFormId(formId);
formJcgj.setJcgjlx(jcgjlx);
formJcgj.setJcmc(jcmc);
formJcgj.setJcmcEn(StudyFormUtil.getQmyyEn(jcmc));
formJcgj.setJcmcys(jcmcys);
if(jcnr!=null){
formJcgj.setJcnr(JctUtil.formatStr(jcnr));
formJcgj.setJcnrEn(StudyFormUtil.getJcnrEn(jcnr));
}
if(qmr!=null){
formJcgj.setQmrId(qmr.getUserId());
formJcgj.setQmrMc(qmr.getNickName());
formJcgj.setQmrMcEn(qmr.getUserName());
}
if(time!=null){
formJcgj.setCreateTime(time);
}
formJcgj.setRemark(remark);
this.save(formJcgj);
}
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param qmr 签名人
* @param remark 备注
*/
@Override
public StudyFormPreJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark){
StudyFormPreJcgj formJcgj = new StudyFormPreJcgj();
formJcgj.setFormId(formId);
formJcgj.setJcgjlx(jcgjlx);
formJcgj.setJcmc(jcmc);
formJcgj.setJcmcEn(StudyFormUtil.getQmyyEn(jcmc));
formJcgj.setJcmcys(jcmcys);
if(jcnr!=null){
formJcgj.setJcnr(JctUtil.formatStr(jcnr));
formJcgj.setJcnrEn(StudyFormUtil.getJcnrEn(jcnr));
}
if(qmr!=null) {
formJcgj.setQmrId(qmr.getUserId());
formJcgj.setQmrMc(qmr.getNickName());
formJcgj.setQmrMcEn(qmr.getUserName());
}
formJcgj.setRemark(remark);
return formJcgj;
}
/**
* 新增稽查轨迹
* @param formId 表单id
* @param jcgjlx 稽查轨迹类型:1:流程3编辑
* @param jcmc 稽查名称
* @param jcmcys 稽查名称颜色1蓝色3红色5绿色7橙色
* @param jcnr 稽查内容
* @param jcnrEn 稽查内容英文
* @param qmr 签名人
* @param remark 备注
*/
@Override
public StudyFormPreJcgj getJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, String jcnr,String jcnrEn, SysUser qmr, String remark){
StudyFormPreJcgj formJcgj = new StudyFormPreJcgj();
formJcgj.setFormId(formId);
formJcgj.setJcgjlx(jcgjlx);
formJcgj.setJcmc(jcmc);
formJcgj.setJcmcEn(StudyFormUtil.getQmyyEn(jcmc));
formJcgj.setJcmcys(jcmcys);
formJcgj.setJcnr(jcnr);
formJcgj.setJcnrEn(jcnrEn);
if(qmr!=null) {
formJcgj.setQmrId(qmr.getUserId());
formJcgj.setQmrMc(qmr.getNickName());
formJcgj.setQmrMcEn(qmr.getUserName());
}
formJcgj.setRemark(remark);
return formJcgj;
}
}

+ 9
- 5
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreQmxxServiceImpl.java View File

@ -3,10 +3,13 @@ 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.business.domain.StudyFormPreJcgj;
import com.hxhq.business.utils.StudyFormUtil;
import com.hxhq.common.core.exception.ServiceException;
import com.hxhq.common.core.utils.DateUtils;
import com.hxhq.common.core.utils.StringUtils;
import com.hxhq.system.api.domain.SysUser;
import org.springframework.stereotype.Service;
import com.hxhq.business.mapper.StudyFormPreQmxxMapper;
import com.hxhq.business.domain.StudyFormPreQmxx;
@ -44,17 +47,18 @@ public class StudyFormPreQmxxServiceImpl extends ServiceImpl
* 新增签名信息
* @param formId
* @param qmyy
* @param qmrId
* @param qmrMc
* @param qmr
* @param remark
*/
@Override
public void saveQmxx(Long formId, String qmyy, Long qmrId, String qmrMc,String remark){
public void saveQmxx(Long formId, String qmyy, SysUser qmr, String remark){
StudyFormPreQmxx studyFormPreQmxx=new StudyFormPreQmxx();
studyFormPreQmxx.setFormId(formId);
studyFormPreQmxx.setQmyy(qmyy);
studyFormPreQmxx.setQmrId(qmrId);
studyFormPreQmxx.setQmrMc(qmrMc);
studyFormPreQmxx.setQmyyEn(StudyFormUtil.getQmyyEn(qmyy));
studyFormPreQmxx.setQmrId(qmr.getUserId());
studyFormPreQmxx.setQmrMc(qmr.getNickName());
studyFormPreQmxx.setQmrMcEn(qmr.getUserName());
studyFormPreQmxx.setRemark(remark);
this.save(studyFormPreQmxx);
}

+ 29
- 36
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java View File

@ -111,12 +111,13 @@ public class StudyFormPreServiceImpl extends ServiceImpl
*/
@Override
public void bc(StudyFormPre studyFormPre) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
if (studyFormPre.getId() != null) {
StudyFormPre studyFormPreOld = this.getById(studyFormPre.getId());
if (studyFormPreOld == null) {
throw new ServiceException("信息不存在或已删除");
}
if (!SecurityUtils.getUserId().equals(studyFormPreOld.getUserId())) {
if (!qmr.getUserId().equals(studyFormPreOld.getUserId())) {
throw new ServiceException("只能操作自己的表单");
}
studyFormPreOld.setBdmc(studyFormPre.getBdmc());
@ -128,31 +129,22 @@ public class StudyFormPreServiceImpl extends ServiceImpl
//稽查轨迹
List<StudyFormPreJcgj> studyFormPreJcgjs = new ArrayList<>();
for (ObjectCompareUtil.FieldChange fieldChange : fieldChanges) {
StudyFormPreJcgj studyFormPreJcgj = new StudyFormPreJcgj();
studyFormPreJcgj.setFormId(studyFormPre.getId());
studyFormPreJcgj.setJcgjlx(JcgjlxEnum.xg.getValue());
studyFormPreJcgj.setJcmc("修改");
studyFormPreJcgj.setJcmcys(JcmcysEnum.orange.getValue());
studyFormPreJcgj.setJcnr(fieldChange.toString());
studyFormPreJcgj.setQmrId(SecurityUtils.getUserId());
studyFormPreJcgj.setQmrMc(SecurityUtils.getNickName());
studyFormPreJcgjs.add(studyFormPreJcgj);
studyFormPreJcgjs.add(studyFormPreJcgjService.getJcgj(studyFormPre.getId(), JcgjlxEnum.xg.getValue(), "修改", JcmcysEnum.orange.getValue(), fieldChange.toString(), fieldChange.toEnString(), SecurityUtils.getLoginUser().getSysUser(), studyFormPre.getRemark()));
}
studyFormPreJcgjService.saveBatch(studyFormPreJcgjs);
}
} else {
studyFormPre.setBdbh("todo");
studyFormPre.setUserId(SecurityUtils.getUserId());
studyFormPre.setUserMc(SecurityUtils.getNickName());
studyFormPre.setUserId(qmr.getUserId());
studyFormPre.setUserMc(qmr.getNickName());
studyFormPre.setUserMcEn(qmr.getNickName());
studyFormPre.setBdzt(StudyFormPreBdztEnum.tbz.getValue());
this.save(studyFormPre);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
studyFormPreJcgjService.saveJcgj(studyFormPre.getId(), JcgjlxEnum.lc.getValue(), "制作保存预制表单", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormPreJcgjService.saveJcgj(studyFormPre.getId(), JcgjlxEnum.lc.getValue(), "制作保存预制表单", JcmcysEnum.green.getValue(), null, qmr, studyFormPre.getRemark(),null);
}
//签名信息
studyFormPreQmxxService.saveQmxx(studyFormPre.getId(), "制作保存预制表单", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormPre.getRemark());
studyFormPreQmxxService.saveQmxx(studyFormPre.getId(), "制作保存预制表单", qmr, studyFormPre.getRemark());
}
@ -163,8 +155,9 @@ public class StudyFormPreServiceImpl extends ServiceImpl
*/
@Override
public void tj(StudyFormPre studyFormPre) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), studyFormPre.getQmrmm());
checkPassword(qmr, studyFormPre.getQmrmm());
if (studyFormPre.getId() != null) {
StudyFormPre studyFormPreOld = this.getById(studyFormPre.getId());
if (studyFormPreOld == null) {
@ -177,18 +170,19 @@ public class StudyFormPreServiceImpl extends ServiceImpl
studyFormPre.setTjsj(new Date());
this.updateById(studyFormPre);
} else {
studyFormPre.setUserId(SecurityUtils.getUserId());
studyFormPre.setUserId(qmr.getUserId());
studyFormPre.setUserMc(qmr.getNickName());
studyFormPre.setUserMcEn(qmr.getUserName());
studyFormPre.setTjsj(new Date());
studyFormPre.setUserMc(SecurityUtils.getNickName());
studyFormPre.setBdzt(StudyFormPreBdztEnum.ytj.getValue());
this.save(studyFormPre);
}
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormPre.getRemark());
studyFormPreJcgjService.saveJcgj(studyFormPre.getId(), JcgjlxEnum.lc.getValue(), "制作提交预制表单", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormPreJcgjService.saveJcgj(studyFormPre.getId(), JcgjlxEnum.lc.getValue(), "制作提交预制表单", JcmcysEnum.green.getValue(), null, qmr, studyFormPre.getRemark(),null);
//签名信息
studyFormPreQmxxService.saveQmxx(studyFormPre.getId(), "制作提交预制表单", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormPre.getRemark());
studyFormPreQmxxService.saveQmxx(studyFormPre.getId(), "制作提交预制表单", qmr, studyFormPre.getRemark());
}
@ -199,8 +193,9 @@ public class StudyFormPreServiceImpl extends ServiceImpl
*/
@Override
public void tg(StudyFormPreAuditForm form) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), form.getQmrmm());
checkPassword(qmr, form.getQmrmm());
StudyFormPre studyFormPreOld = this.getById(form.getId());
if (studyFormPreOld == null) {
throw new ServiceException("信息不存在或已删除");
@ -224,11 +219,9 @@ public class StudyFormPreServiceImpl extends ServiceImpl
}
this.updateById(studyFormPreOld);
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", form.getRemark());
studyFormPreJcgjService.saveJcgj(studyFormPreOld.getId(), JcgjlxEnum.lc.getValue(), "审核通过", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormPreJcgjService.saveJcgj(studyFormPreOld.getId(), JcgjlxEnum.lc.getValue(), "审核通过", JcmcysEnum.green.getValue(), null, qmr, form.getRemark(),null);
//签名信息
studyFormPreQmxxService.saveQmxx(studyFormPreOld.getId(), "审核通过", SecurityUtils.getUserId(), SecurityUtils.getNickName(), form.getRemark());
studyFormPreQmxxService.saveQmxx(studyFormPreOld.getId(), "审核通过", qmr, form.getRemark());
}
/**
@ -238,8 +231,9 @@ public class StudyFormPreServiceImpl extends ServiceImpl
*/
@Override
public void jj(StudyFormPreAuditForm form) {
SysUser qmr=SecurityUtils.getLoginUser().getSysUser();
//验证密码
checkPassword(SecurityUtils.getLoginUser().getSysUser(), form.getQmrmm());
checkPassword(qmr, form.getQmrmm());
StudyFormPre studyFormPreOld = this.getById(form.getId());
if (studyFormPreOld == null) {
throw new ServiceException("信息不存在或已删除");
@ -252,9 +246,9 @@ public class StudyFormPreServiceImpl extends ServiceImpl
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("原因", form.getRemark());
studyFormPreJcgjService.saveJcgj(studyFormPreOld.getId(), JcgjlxEnum.lc.getValue(), "审核拒绝", JcmcysEnum.red.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormPreJcgjService.saveJcgj(studyFormPreOld.getId(), JcgjlxEnum.lc.getValue(), "审核拒绝", JcmcysEnum.red.getValue(), formData, qmr, null,null);
//签名信息
studyFormPreQmxxService.saveQmxx(studyFormPreOld.getId(), "审核拒绝", SecurityUtils.getUserId(), SecurityUtils.getNickName(), form.getRemark());
studyFormPreQmxxService.saveQmxx(studyFormPreOld.getId(), "审核拒绝", qmr, form.getRemark());
}
/**
@ -276,16 +270,15 @@ public class StudyFormPreServiceImpl extends ServiceImpl
}
Date time=new Date();
//稽查轨迹
Map<String, String> formData = new LinkedHashMap<>();
formData.put("备注", studyFormPre.getRemark());
studyFormPreJcgjService.saveJcgj(studyFormPreOld.getId(), JcgjlxEnum.lc.getValue(), "创建记录", JcmcysEnum.green.getValue(), JctUtil.formatStr(formData), SecurityUtils.getUserId(), SecurityUtils.getNickName());
studyFormPreJcgjService.saveJcgj(studyFormPreOld.getId(), JcgjlxEnum.lc.getValue(), "创建记录", JcmcysEnum.green.getValue(), null, qmr, null,null);
//签名信息
studyFormPreQmxxService.saveQmxx(studyFormPreOld.getId(), "创建记录", SecurityUtils.getUserId(), SecurityUtils.getNickName(), studyFormPre.getRemark());
studyFormPreQmxxService.saveQmxx(studyFormPreOld.getId(), "创建记录", qmr, studyFormPre.getRemark());
//生成填报表单
StudyFormFill studyFormFill = new StudyFormFill();
studyFormFill.setStudyId(studyFormPreOld.getStudyId());
studyFormFill.setUserId(SecurityUtils.getUserId());
studyFormFill.setUserMc(SecurityUtils.getNickName());
studyFormFill.setUserId(qmr.getUserId());
studyFormFill.setUserMc(qmr.getNickName());
studyFormFill.setUserMcEn(qmr.getNickName());
studyFormFill.setStudySubjectId(studyFormPreOld.getStudySubjectId());
studyFormFill.setBdbh(studyFormPreOld.getBdbh());
studyFormFill.setBdmc(studyFormPreOld.getBdmc());
@ -295,7 +288,7 @@ public class StudyFormPreServiceImpl extends ServiceImpl
studyFormFill.setTemplateId(studyFormPreOld.getTemplateId());
studyFormFillService.bc(studyFormFill);
//稽查轨迹
studyFormFillJcgjService.saveJcgj(studyFormFill.getId(), JcgjlxEnum.lc.getValue(), "创建记录", JcmcysEnum.green.getValue(), null, SecurityUtils.getLoginUser().getSysUser(), studyFormFill.getRemark(),time);
studyFormFillJcgjService.saveJcgj(studyFormFill.getId(), JcgjlxEnum.lc.getValue(), "创建记录", JcmcysEnum.green.getValue(), null, qmr, studyFormFill.getRemark(),time);
//签名信息
studyFormFillQmxxService.saveQmxx(studyFormFill.getId(), "创建记录", qmr, studyFormFill.getRemark());
return studyFormFill;

+ 6
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/utils/StudyFormUtil.java View File

@ -52,7 +52,13 @@ public class StudyFormUtil {
mapQmyy.put("开始现场复核","todo");
mapQmyy.put("结束现场复核","todo");
mapQmyy.put("申明协作","todo");
mapQmyy.put("已审阅","todo");
mapQmyy.put("审核通过","todo");
mapQmyy.put("补充说明","todo");
mapQmyy.put("审核拒绝","todo");
mapQmyy.put("制作保存预制表单","todo");
mapQmyy.put("制作提交预制表单","todo");
mapQmyy.put("创建记录","todo");
//endregion

Loading…
Cancel
Save