Revert "新考核"
This reverts commit d60aee1468e17e2deeb21a228791ad36ca535f3f.
24个文件已修改
49个文件已添加
1 文件已重命名
56个文件已删除
| | |
| | | </dependencyManagement> |
| | | |
| | | <dependencies> |
| | | <!-- Activiti7 --> |
| | | <dependency> |
| | | <groupId>org.activiti</groupId> |
| | | <artifactId>activiti-spring-boot-starter</artifactId> |
| | | <version>7.0.0.GA</version> |
| | | </dependency> |
| | | <!-- jpa --> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | |
| | | <version>${mybatis.spring.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-data-mongodb</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.projectlombok</groupId> |
| | | <artifactId>lombok</artifactId> |
| | |
| | | |
| | | <build> |
| | | <plugins> |
| | | |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-compiler-plugin</artifactId> |
New file |
| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | |
| | | import annotation.Excel; |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.ycl.system.entity.BaseEntity; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * æ ¸ç®è§å对象 t_accounting_rules |
| | | * |
| | | * @author gonghl |
| | | * @date 2024-03-21 |
| | | */ |
| | | public class AccountingRules extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | private Integer id; |
| | | |
| | | /** |
| | | * è§ååç§° |
| | | */ |
| | | @Excel(name = "è§ååç§°") |
| | | private String rulesName; |
| | | |
| | | /** |
| | | * åååç§° |
| | | */ |
| | | @Excel(name = "åååç§°") |
| | | private String contractName; |
| | | |
| | | /** |
| | | * éé¢ |
| | | */ |
| | | @Excel(name = "éé¢") |
| | | private BigDecimal amount; |
| | | |
| | | /** |
| | | * é»è¾å é¤ |
| | | */ |
| | | @TableLogic |
| | | private String deleted; |
| | | |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setRulesName(String rulesName) { |
| | | this.rulesName = rulesName; |
| | | } |
| | | |
| | | public String getRulesName() { |
| | | return rulesName; |
| | | } |
| | | |
| | | public void setContractName(String contractName) { |
| | | this.contractName = contractName; |
| | | } |
| | | |
| | | public String getContractName() { |
| | | return contractName; |
| | | } |
| | | |
| | | public void setAmount(BigDecimal amount) { |
| | | this.amount = amount; |
| | | } |
| | | |
| | | public BigDecimal getAmount() { |
| | | return amount; |
| | | } |
| | | |
| | | public void setDeleted(String deleted) { |
| | | this.deleted = deleted; |
| | | } |
| | | |
| | | public String getDeleted() { |
| | | return deleted; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("rulesName", getRulesName()) |
| | | .append("contractName", getContractName()) |
| | | .append("amount", getAmount()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("deleted", getDeleted()) |
| | | .toString(); |
| | | } |
| | | } |
| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | import annotation.Excel; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.system.entity.BaseEntity; |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | import org.apache.commons.lang.builder.ToStringStyle; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.time.LocalDateTime; |
| | | import com.ycl.platform.base.AbsEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * èæ ¸ç»æå¯¹è±¡ t_check_result |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * èæ ¸ç»æ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-07 |
| | | */ |
| | | public class CheckResult extends BaseEntity |
| | | { |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("t_check_result") |
| | | @ApiModel(value = "CheckResult对象", description = "èæ ¸ç»æ") |
| | | public class CheckResult extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** */ |
| | | private Long id; |
| | | @ApiModelProperty("èæ ¸å¯¹è±¡") |
| | | @TableField("check_unit_id") |
| | | private Integer checkUnitId; |
| | | |
| | | /** èæ ¸å¯¹è±¡ */ |
| | | @Excel(name = "èæ ¸å¯¹è±¡") |
| | | private Long deptId; |
| | | @ApiModelProperty("èæ ¸åå¸") |
| | | @TableField("check_publish_id") |
| | | private Integer checkPublishId; |
| | | |
| | | /** èæ ¸åå¸ */ |
| | | @Excel(name = "èæ ¸åå¸") |
| | | private Long publishId; |
| | | |
| | | /** èæ ¸ç±»å */ |
| | | @Excel(name = "èæ ¸ç±»å") |
| | | private Long examineCategory; |
| | | |
| | | /** èæ ¸åæ° */ |
| | | @Excel(name = "èæ ¸åæ°") |
| | | @ApiModelProperty("æç»åæ°") |
| | | @TableField("check_score") |
| | | private BigDecimal checkScore; |
| | | |
| | | /** æ¯å¦åå¸ */ |
| | | @Excel(name = "æ¯å¦åå¸") |
| | | private Long publish; |
| | | @ApiModelProperty("ç³»ç»æå") |
| | | @TableField("system_score") |
| | | private BigDecimal systemScore; |
| | | |
| | | /** èæ ¸æ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "èæ ¸æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date checkTime; |
| | | @ApiModelProperty("人工æå") |
| | | @TableField("manual_score") |
| | | private BigDecimal manualScore; |
| | | |
| | | /** é»è¾å é¤ */ |
| | | private String deleted; |
| | | @ApiModelProperty("èæ ¸æ¶é´") |
| | | @TableField("check_time") |
| | | private LocalDateTime checkTime; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | @ApiModelProperty("æ¯å¦åå¸") |
| | | @TableField("publish") |
| | | private Integer publish; |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setDeptId(Long deptId) |
| | | { |
| | | this.deptId = deptId; |
| | | } |
| | | |
| | | public Long getDeptId() |
| | | { |
| | | return deptId; |
| | | } |
| | | public void setPublishId(Long publishId) |
| | | { |
| | | this.publishId = publishId; |
| | | } |
| | | |
| | | public Long getPublishId() |
| | | { |
| | | return publishId; |
| | | } |
| | | public void setExamineCategory(Long examineCategory) |
| | | { |
| | | this.examineCategory = examineCategory; |
| | | } |
| | | |
| | | public Long getExamineCategory() |
| | | { |
| | | return examineCategory; |
| | | } |
| | | public void setCheckScore(BigDecimal checkScore) |
| | | { |
| | | this.checkScore = checkScore; |
| | | } |
| | | |
| | | public BigDecimal getCheckScore() |
| | | { |
| | | return checkScore; |
| | | } |
| | | public void setPublish(Long publish) |
| | | { |
| | | this.publish = publish; |
| | | } |
| | | |
| | | public Long getPublish() |
| | | { |
| | | return publish; |
| | | } |
| | | public void setCheckTime(Date checkTime) |
| | | { |
| | | this.checkTime = checkTime; |
| | | } |
| | | |
| | | public Date getCheckTime() |
| | | { |
| | | return checkTime; |
| | | } |
| | | public void setDeleted(String deleted) |
| | | { |
| | | this.deleted = deleted; |
| | | } |
| | | |
| | | public String getDeleted() |
| | | { |
| | | return deleted; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("deptId", getDeptId()) |
| | | .append("publishId", getPublishId()) |
| | | .append("examineCategory", getExamineCategory()) |
| | | .append("checkScore", getCheckScore()) |
| | | .append("publish", getPublish()) |
| | | .append("checkTime", getCheckTime()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("deleted", getDeleted()) |
| | | .toString(); |
| | | } |
| | | } |
| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | import annotation.Excel; |
| | | import com.ycl.system.entity.BaseEntity; |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | import org.apache.commons.lang.builder.ToStringStyle; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ycl.platform.base.AbsEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * èæ ¸è§å对象 t_check_rule |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * èæ ¸è§å |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | public class CheckRule extends BaseEntity |
| | | { |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("t_check_rule") |
| | | @ApiModel(value = "CheckRule对象", description = "èæ ¸è§å") |
| | | public class CheckRule extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** */ |
| | | private Long id; |
| | | |
| | | /** è§ååç§° */ |
| | | @Excel(name = "è§ååç§°") |
| | | @ApiModelProperty("è§ååç§°") |
| | | @TableField("rule_name") |
| | | private String ruleName; |
| | | |
| | | /** è§åç»å */ |
| | | @Excel(name = "è§åç»å") |
| | | @ApiModelProperty("è§åæè¿°") |
| | | @TableField("rule_detail") |
| | | private String ruleDetail; |
| | | |
| | | /** è§åç±»å */ |
| | | @Excel(name = "è§åç±»å") |
| | | private Long ruleCategory; |
| | | @ApiModelProperty("天ç½è§é¢ç¹ä½æ°") |
| | | @TableField("video_point_num") |
| | | private Integer videoPointNum; |
| | | |
| | | /** èæ ¸ç±»å */ |
| | | @Excel(name = "èæ ¸ç±»å") |
| | | private Long examineCategory; |
| | | @ApiModelProperty("车è¾å¡å£ç¹ä½æ°") |
| | | @TableField("vehicle_checkpoint_num") |
| | | private Integer vehicleCheckpointNum; |
| | | |
| | | /** è§åæè¿° */ |
| | | @Excel(name = "è§åæè¿°") |
| | | private String ruleDescription; |
| | | @ApiModelProperty("人è¸å¡å£ç¹ä½æ°") |
| | | @TableField("face_chceckpoint_num") |
| | | private Integer faceChceckpointNum; |
| | | |
| | | /** å®¡æ ¸ç¶æ */ |
| | | @Excel(name = "å®¡æ ¸ç¶æ") |
| | | private Long auditState; |
| | | @ApiModelProperty("è¿ç»´ç±»å«") |
| | | @TableField("category") |
| | | private Integer category; |
| | | @ApiModelProperty("èæ ¸ç±»å«") |
| | | @TableField("examine_category") |
| | | private Integer examineCategory; |
| | | |
| | | /** å¯ç¨ç¶æ */ |
| | | @Excel(name = "å¯ç¨ç¶æ") |
| | | private Long state; |
| | | |
| | | /** é»è¾å é¤ */ |
| | | private String deleted; |
| | | @ApiModelProperty("å®¡æ ¸ç¶æ") |
| | | @TableField("audit_state") |
| | | private Integer auditState; |
| | | @ApiModelProperty("å®¡æ ¸äºº") |
| | | @TableField("audit_user") |
| | | private String auditUser; |
| | | @ApiModelProperty("å®¡æ ¸æ¶é´") |
| | | @TableField("audit_time") |
| | | private Date auditTime; |
| | | @ApiModelProperty("å®¡æ ¸æè§") |
| | | @TableField("audit_description") |
| | | private String auditDescription; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setRuleName(String ruleName) |
| | | { |
| | | this.ruleName = ruleName; |
| | | } |
| | | |
| | | public String getRuleName() |
| | | { |
| | | return ruleName; |
| | | } |
| | | public void setRuleDetail(String ruleDetail) |
| | | { |
| | | this.ruleDetail = ruleDetail; |
| | | } |
| | | |
| | | public String getRuleDetail() |
| | | { |
| | | return ruleDetail; |
| | | } |
| | | public void setRuleCategory(Long ruleCategory) |
| | | { |
| | | this.ruleCategory = ruleCategory; |
| | | } |
| | | |
| | | public Long getRuleCategory() |
| | | { |
| | | return ruleCategory; |
| | | } |
| | | public void setExamineCategory(Long examineCategory) |
| | | { |
| | | this.examineCategory = examineCategory; |
| | | } |
| | | |
| | | public Long getExamineCategory() |
| | | { |
| | | return examineCategory; |
| | | } |
| | | public void setRuleDescription(String ruleDescription) |
| | | { |
| | | this.ruleDescription = ruleDescription; |
| | | } |
| | | |
| | | public String getRuleDescription() |
| | | { |
| | | return ruleDescription; |
| | | } |
| | | public void setAuditState(Long auditState) |
| | | { |
| | | this.auditState = auditState; |
| | | } |
| | | |
| | | public Long getAuditState() |
| | | { |
| | | return auditState; |
| | | } |
| | | public void setState(Long state) |
| | | { |
| | | this.state = state; |
| | | } |
| | | |
| | | public Long getState() |
| | | { |
| | | return state; |
| | | } |
| | | public void setDeleted(String deleted) |
| | | { |
| | | this.deleted = deleted; |
| | | } |
| | | |
| | | public String getDeleted() |
| | | { |
| | | return deleted; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("ruleName", getRuleName()) |
| | | .append("ruleDetail", getRuleDetail()) |
| | | .append("ruleCategory", getRuleCategory()) |
| | | .append("examineCategory", getExamineCategory()) |
| | | .append("ruleDescription", getRuleDescription()) |
| | | .append("auditState", getAuditState()) |
| | | .append("state", getState()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("deleted", getDeleted()) |
| | | .toString(); |
| | | } |
| | | } |
| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | import annotation.Excel; |
| | | import com.ycl.system.entity.BaseEntity; |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | import org.apache.commons.lang.builder.ToStringStyle; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.ycl.platform.base.AbsEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * èæ ¸æ¨¡æ¿å¯¹è±¡ t_check_template |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * èæ ¸æ¨¡æ¿ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | public class CheckTemplate extends BaseEntity |
| | | { |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("t_check_template") |
| | | @ApiModel(value = "CheckTemplate对象", description = "èæ ¸æ¨¡æ¿") |
| | | public class CheckTemplate extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** */ |
| | | private Long id; |
| | | |
| | | /** 模æ¿åç§° */ |
| | | @Excel(name = "模æ¿åç§°") |
| | | /** |
| | | * 模æ¿åç§° |
| | | */ |
| | | @TableField("template_name") |
| | | private String templateName; |
| | | |
| | | /** è°æ´ç³»æ° */ |
| | | @Excel(name = "è°æ´ç³»æ°") |
| | | private Long adjustCoefficient; |
| | | @ApiModelProperty("è°æ´ç³»æ°") |
| | | @TableField("adjust_coefficient") |
| | | private BigDecimal adjustCoefficient; |
| | | |
| | | /** è°æ´æ¹å¼ï¼ä¹é¤ */ |
| | | @Excel(name = "è°æ´æ¹å¼ï¼ä¹é¤") |
| | | /** |
| | | * è°æ´ç³»æ°çæ¹å¼ï¼ä¹é¤ |
| | | */ |
| | | @TableField("adjust_way") |
| | | private String adjustWay; |
| | | |
| | | /** èæ ¸ç±»å */ |
| | | @Excel(name = "èæ ¸ç±»å") |
| | | private Long examineCategory; |
| | | |
| | | /** å¯ç¨/åç¨ */ |
| | | @Excel(name = "å¯ç¨/åç¨") |
| | | @ApiModelProperty("ç¶æ") |
| | | @TableField("status") |
| | | private String status; |
| | | |
| | | /** åºå¿ */ |
| | | @Excel(name = "åºå¿") |
| | | private String deptId; |
| | | @ApiModelProperty("åä½id") |
| | | @TableField("unit_id") |
| | | private Integer unitId; |
| | | |
| | | /** å建人id */ |
| | | private Long createUser; |
| | | |
| | | /** å建人å§å */ |
| | | @Excel(name = "å建人å§å") |
| | | private String createUserName; |
| | | |
| | | /** */ |
| | | private Long updateUser; |
| | | |
| | | /** */ |
| | | @Excel(name = "") |
| | | private String updateUserName; |
| | | |
| | | /** é»è¾å é¤ */ |
| | | private String deleted; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setTemplateName(String templateName) |
| | | { |
| | | this.templateName = templateName; |
| | | } |
| | | |
| | | public String getTemplateName() |
| | | { |
| | | return templateName; |
| | | } |
| | | public void setAdjustCoefficient(Long adjustCoefficient) |
| | | { |
| | | this.adjustCoefficient = adjustCoefficient; |
| | | } |
| | | |
| | | public Long getAdjustCoefficient() |
| | | { |
| | | return adjustCoefficient; |
| | | } |
| | | public void setAdjustWay(String adjustWay) |
| | | { |
| | | this.adjustWay = adjustWay; |
| | | } |
| | | |
| | | public String getAdjustWay() |
| | | { |
| | | return adjustWay; |
| | | } |
| | | public void setExamineCategory(Long examineCategory) |
| | | { |
| | | this.examineCategory = examineCategory; |
| | | } |
| | | |
| | | public Long getExamineCategory() |
| | | { |
| | | return examineCategory; |
| | | } |
| | | public void setStatus(String status) |
| | | { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatus() |
| | | { |
| | | return status; |
| | | } |
| | | public void setDeptId(String deptId) |
| | | { |
| | | this.deptId = deptId; |
| | | } |
| | | |
| | | public String getDeptId() |
| | | { |
| | | return deptId; |
| | | } |
| | | public void setCreateUser(Long createUser) |
| | | { |
| | | this.createUser = createUser; |
| | | } |
| | | |
| | | public Long getCreateUser() |
| | | { |
| | | return createUser; |
| | | } |
| | | public void setCreateUserName(String createUserName) |
| | | { |
| | | this.createUserName = createUserName; |
| | | } |
| | | |
| | | public String getCreateUserName() |
| | | { |
| | | return createUserName; |
| | | } |
| | | public void setUpdateUser(Long updateUser) |
| | | { |
| | | this.updateUser = updateUser; |
| | | } |
| | | |
| | | public Long getUpdateUser() |
| | | { |
| | | return updateUser; |
| | | } |
| | | public void setUpdateUserName(String updateUserName) |
| | | { |
| | | this.updateUserName = updateUserName; |
| | | } |
| | | |
| | | public String getUpdateUserName() |
| | | { |
| | | return updateUserName; |
| | | } |
| | | public void setDeleted(String deleted) |
| | | { |
| | | this.deleted = deleted; |
| | | } |
| | | |
| | | public String getDeleted() |
| | | { |
| | | return deleted; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("templateName", getTemplateName()) |
| | | .append("adjustCoefficient", getAdjustCoefficient()) |
| | | .append("adjustWay", getAdjustWay()) |
| | | .append("examineCategory", getExamineCategory()) |
| | | .append("status", getStatus()) |
| | | .append("deptId", getDeptId()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("createUser", getCreateUser()) |
| | | .append("createUserName", getCreateUserName()) |
| | | .append("updateUser", getUpdateUser()) |
| | | .append("updateUserName", getUpdateUserName()) |
| | | .append("deleted", getDeleted()) |
| | | .toString(); |
| | | } |
| | | @ApiModelProperty("èæ ¸ç±»å") |
| | | @TableField("examine_category") |
| | | private String examineCategory; |
| | | } |
| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | import annotation.Excel; |
| | | import com.ycl.system.entity.BaseEntity; |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | import org.apache.commons.lang.builder.ToStringStyle; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * èæ ¸æ¨¡æ¿-è§åä¸é´å¯¹è±¡ t_check_template_rule |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * @authorï¼xp |
| | | * @dateï¼2024/3/8 9:18 |
| | | */ |
| | | public class CheckTemplateRule extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("t_check_template_rule") |
| | | @ApiModel(value = "CheckTemplate对象", description = "èæ ¸æ¨¡æ¿") |
| | | public class CheckTemplateRule { |
| | | |
| | | /** */ |
| | | private Long id; |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** èæ ¸æ¨¡æ¿ */ |
| | | @Excel(name = "èæ ¸æ¨¡æ¿") |
| | | private Long checkTemplateId; |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @TableField("check_template_id") |
| | | private Integer checkTemplateId; |
| | | |
| | | /** èæ ¸è§å */ |
| | | @Excel(name = "èæ ¸è§å") |
| | | private Long checkRuleId; |
| | | /** |
| | | * è§åID |
| | | */ |
| | | @TableField("check_rule_id") |
| | | private Integer checkRuleId; |
| | | |
| | | /** è§åæé */ |
| | | @Excel(name = "è§åæé") |
| | | /** |
| | | * æé |
| | | */ |
| | | @TableField("weight") |
| | | private BigDecimal weight; |
| | | |
| | | /** 满å */ |
| | | @Excel(name = "满å") |
| | | private BigDecimal maxScore; |
| | | |
| | | /** å®¡æ ¸ç¶æ */ |
| | | @Excel(name = "å®¡æ ¸ç¶æ") |
| | | private Long auditState; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setCheckTemplateId(Long checkTemplateId) |
| | | { |
| | | this.checkTemplateId = checkTemplateId; |
| | | } |
| | | |
| | | public Long getCheckTemplateId() |
| | | { |
| | | return checkTemplateId; |
| | | } |
| | | public void setCheckRuleId(Long checkRuleId) |
| | | { |
| | | this.checkRuleId = checkRuleId; |
| | | } |
| | | |
| | | public Long getCheckRuleId() |
| | | { |
| | | return checkRuleId; |
| | | } |
| | | public void setWeight(BigDecimal weight) |
| | | { |
| | | this.weight = weight; |
| | | } |
| | | |
| | | public BigDecimal getWeight() |
| | | { |
| | | return weight; |
| | | } |
| | | public void setMaxScore(BigDecimal maxScore) |
| | | { |
| | | this.maxScore = maxScore; |
| | | } |
| | | |
| | | public BigDecimal getMaxScore() |
| | | { |
| | | return maxScore; |
| | | } |
| | | public void setAuditState(Long auditState) |
| | | { |
| | | this.auditState = auditState; |
| | | } |
| | | |
| | | public Long getAuditState() |
| | | { |
| | | return auditState; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("checkTemplateId", getCheckTemplateId()) |
| | | .append("checkRuleId", getCheckRuleId()) |
| | | .append("weight", getWeight()) |
| | | .append("maxScore", getMaxScore()) |
| | | .append("auditState", getAuditState()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | import com.ycl.platform.base.AbsEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * è¿è§å®¡æ ¸ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("t_default_auditing") |
| | | @ApiModel(value = "DefaultAuditing对象", description = "è¿è§å®¡æ ¸") |
| | | public class DefaultAuditing extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty("è¿è§") |
| | | @TableField("default_id") |
| | | private Integer defaultId; |
| | | |
| | | @TableField("score") |
| | | private BigDecimal score; |
| | | |
| | | @TableField("check_publish_id") |
| | | private Integer checkPublishId; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸ç¶æ") |
| | | @TableField("auditing_status") |
| | | private String auditingStatus; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸è¯´æ") |
| | | @TableField("remark") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸æ¶é´") |
| | | @TableField("auditing_time") |
| | | private LocalDateTime auditingTime; |
| | | |
| | | @ApiModelProperty("å®¡æ ¸äºº") |
| | | @TableField("auditing_user") |
| | | private Integer auditingUser; |
| | | |
| | | @ApiModelProperty("å建人") |
| | | @TableField("create_by") |
| | | private String createBy; |
| | | } |
| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | import annotation.Excel; |
| | | import com.ycl.system.domain.TreeEntity; |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | import org.apache.commons.lang.builder.ToStringStyle; |
| | | import com.ycl.platform.base.AbsEntity; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.ycl.platform.base.AbsEntity; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * è¿çº¦è§å对象 t_default_rule |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * è¿çº¦è§å |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | public class DefaultRule extends TreeEntity |
| | | { |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @TableName("t_default_rule") |
| | | @ApiModel(value = "DefaultRule对象", description = "è¿çº¦è§å") |
| | | public class DefaultRule extends AbsEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ä¸»é® */ |
| | | private Long id; |
| | | |
| | | /** è§ååç§° */ |
| | | @Excel(name = "è§ååç§°") |
| | | @ApiModelProperty("è§ååç§°") |
| | | @TableField("rule_name") |
| | | private String ruleName; |
| | | |
| | | /** æ£åæ¹å¼ */ |
| | | @Excel(name = "æ£åæ¹å¼") |
| | | private Long deductCategory; |
| | | @ApiModelProperty("è§å详æ
JSON") |
| | | @TableField("rule_detail") |
| | | private String ruleDetail; |
| | | |
| | | /** 人工æå/ç³»ç»æå */ |
| | | private Long deductWay; |
| | | |
| | | /** è§åæè¿° */ |
| | | @Excel(name = "è§åæè¿°") |
| | | @ApiModelProperty("è§åæè¿°") |
| | | @TableField("rule_desc") |
| | | private String ruleDesc; |
| | | |
| | | /** è§åç¶æ */ |
| | | @Excel(name = "è§åç¶æ") |
| | | @ApiModelProperty("è§åç¶æï¼å¯ç¨ãæªå¯ç¨") |
| | | @TableField("rule_status") |
| | | private String ruleStatus; |
| | | |
| | | /** é»è¾å é¤ */ |
| | | private String deleted; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setRuleName(String ruleName) |
| | | { |
| | | this.ruleName = ruleName; |
| | | } |
| | | |
| | | public String getRuleName() |
| | | { |
| | | return ruleName; |
| | | } |
| | | public void setDeductCategory(Long deductCategory) |
| | | { |
| | | this.deductCategory = deductCategory; |
| | | } |
| | | |
| | | public Long getDeductCategory() |
| | | { |
| | | return deductCategory; |
| | | } |
| | | public void setDeductWay(Long deductWay) |
| | | { |
| | | this.deductWay = deductWay; |
| | | } |
| | | |
| | | public Long getDeductWay() |
| | | { |
| | | return deductWay; |
| | | } |
| | | public void setRuleDesc(String ruleDesc) |
| | | { |
| | | this.ruleDesc = ruleDesc; |
| | | } |
| | | |
| | | public String getRuleDesc() |
| | | { |
| | | return ruleDesc; |
| | | } |
| | | public void setRuleStatus(String ruleStatus) |
| | | { |
| | | this.ruleStatus = ruleStatus; |
| | | } |
| | | |
| | | public String getRuleStatus() |
| | | { |
| | | return ruleStatus; |
| | | } |
| | | public void setDeleted(String deleted) |
| | | { |
| | | this.deleted = deleted; |
| | | } |
| | | |
| | | public String getDeleted() |
| | | { |
| | | return deleted; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("ruleName", getRuleName()) |
| | | .append("parentId", getParentId()) |
| | | .append("deductCategory", getDeductCategory()) |
| | | .append("deductWay", getDeductWay()) |
| | | .append("ruleDesc", getRuleDesc()) |
| | | .append("ruleStatus", getRuleStatus()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("deleted", getDeleted()) |
| | | .toString(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | import annotation.Excel; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.system.entity.BaseEntity; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | import org.apache.commons.lang.builder.ToStringStyle; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * èæ ¸åå¸å¯¹è±¡ t_check_publish |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-07 |
| | | */ |
| | | @Data |
| | | public class TCheckPublish extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** ä¸»é® */ |
| | | private Long id; |
| | | |
| | | /** èæ ¸å */ |
| | | @Excel(name = "èæ ¸å") |
| | | private String examineName; |
| | | |
| | | /** èæ ¸æ¨¡æ¿id */ |
| | | @Excel(name = "èæ ¸æ¨¡æ¿id") |
| | | private Long templateId; |
| | | |
| | | /** èæ ¸èå´ 1/2 åå±/å¸å± */ |
| | | @Excel(name = "èæ ¸èå´ 1/2 åå±/å¸å±") |
| | | private Long examineRange; |
| | | |
| | | /** èæ ¸é¢ç 1/2 æåº¦èæ ¸/å£åº¦èæ ¸ */ |
| | | @Excel(name = "èæ ¸é¢ç 1/2 æåº¦èæ ¸/å£åº¦èæ ¸") |
| | | private Long frequency; |
| | | |
| | | /** èæ ¸ç¶æ 0/1 å¯ç¨ / åç¨ */ |
| | | @Excel(name = "èæ ¸ç¶æ 0/1 å¯ç¨ / åç¨") |
| | | private Long state; |
| | | |
| | | /** æ¥è¦åæ°éå¼ */ |
| | | @Excel(name = "æ¥è¦åæ°éå¼") |
| | | private BigDecimal alarmScore; |
| | | |
| | | private Long createUser; |
| | | @Excel(name = "å建人") |
| | | private String createUserName; |
| | | @Excel(name = "ä¿®æ¹äºº") |
| | | private String updateUserName; |
| | | |
| | | private Long updateUser; |
| | | /** å®¡æ ¸ç¶æ */ |
| | | private Short auditState; |
| | | @Excel(name = "å®¡æ ¸äºº") |
| | | private String auditUser; |
| | | @Excel(name = "å®¡æ ¸æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date auditTime; |
| | | @Excel(name = "å®¡æ ¸æè§") |
| | | private String auditDescription; |
| | | /** æè¿° */ |
| | | @Excel(name = "æè¿°") |
| | | private String description; |
| | | |
| | | public String getAuditUser() { |
| | | return auditUser; |
| | | } |
| | | |
| | | public void setAuditUser(String auditUser) { |
| | | this.auditUser = auditUser; |
| | | } |
| | | |
| | | public Date getAuditTime() { |
| | | return auditTime; |
| | | } |
| | | |
| | | public void setAuditTime(Date auditTime) { |
| | | this.auditTime = auditTime; |
| | | } |
| | | |
| | | public String getAuditDescription() { |
| | | return auditDescription; |
| | | } |
| | | |
| | | public void setAuditDescription(String auditDescription) { |
| | | this.auditDescription = auditDescription; |
| | | } |
| | | |
| | | public Short getAuditState() { |
| | | return auditState; |
| | | } |
| | | |
| | | public void setAuditState(Short auditState) { |
| | | this.auditState = auditState; |
| | | } |
| | | |
| | | public String getExamineName() { |
| | | return examineName; |
| | | } |
| | | |
| | | public void setExamineName(String examineName) { |
| | | this.examineName = examineName; |
| | | } |
| | | |
| | | public BigDecimal getAlarmScore() { |
| | | return alarmScore; |
| | | } |
| | | |
| | | public void setAlarmScore(BigDecimal alarmScore) { |
| | | this.alarmScore = alarmScore; |
| | | } |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setTemplateId(Long templateId) |
| | | { |
| | | this.templateId = templateId; |
| | | } |
| | | |
| | | public Long getTemplateId() |
| | | { |
| | | return templateId; |
| | | } |
| | | |
| | | public Long getExamineRange() { |
| | | return examineRange; |
| | | } |
| | | |
| | | public void setExamineRange(Long examineRange) { |
| | | this.examineRange = examineRange; |
| | | } |
| | | |
| | | public String getCreateUserName() { |
| | | return createUserName; |
| | | } |
| | | |
| | | public void setCreateUserName(String createUserName) { |
| | | this.createUserName = createUserName; |
| | | } |
| | | |
| | | public String getUpdateUserName() { |
| | | return updateUserName; |
| | | } |
| | | |
| | | public void setUpdateUserName(String updateUserName) { |
| | | this.updateUserName = updateUserName; |
| | | } |
| | | |
| | | public void setFrequency(Long frequency) |
| | | { |
| | | this.frequency = frequency; |
| | | } |
| | | |
| | | public Long getFrequency() |
| | | { |
| | | return frequency; |
| | | } |
| | | public void setState(Long state) |
| | | { |
| | | this.state = state; |
| | | } |
| | | |
| | | public Long getState() |
| | | { |
| | | return state; |
| | | } |
| | | public void setCreateUser(Long createUser) |
| | | { |
| | | this.createUser = createUser; |
| | | } |
| | | |
| | | public Long getCreateUser() |
| | | { |
| | | return createUser; |
| | | } |
| | | public void setUpdateUser(Long updateUser) |
| | | { |
| | | this.updateUser = updateUser; |
| | | } |
| | | |
| | | public Long getUpdateUser() |
| | | { |
| | | return updateUser; |
| | | } |
| | | public void setDescription(String description) |
| | | { |
| | | this.description = description; |
| | | } |
| | | |
| | | public String getDescription() |
| | | { |
| | | return description; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "TCheckPublish{" + |
| | | "id=" + id + |
| | | ", examineName='" + examineName + '\'' + |
| | | ", templateId=" + templateId + |
| | | ", examineRange=" + examineRange + |
| | | ", frequency=" + frequency + |
| | | ", state=" + state + |
| | | ", alarmScore=" + alarmScore + |
| | | ", createUser=" + createUser + |
| | | ", createUserName='" + createUserName + '\'' + |
| | | ", updateUserName='" + updateUserName + '\'' + |
| | | ", updateUser=" + updateUser + |
| | | ", auditState=" + auditState + |
| | | ", auditUser='" + auditUser + '\'' + |
| | | ", auditTime=" + auditTime + |
| | | ", auditDescription='" + auditDescription + '\'' + |
| | | ", description='" + description + '\'' + |
| | | '}'; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.entity; |
| | | |
| | | import annotation.Excel; |
| | | import com.ycl.system.entity.BaseEntity; |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | import org.apache.commons.lang.builder.ToStringStyle; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * èæ ¸è®¡å对象 t_examine_score |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-13 |
| | | */ |
| | | public class TExamineScore extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** $column.columnComment */ |
| | | private Long id; |
| | | |
| | | /** åå¼ */ |
| | | @Excel(name = "åå¼") |
| | | private BigDecimal score; |
| | | |
| | | /** åä½id */ |
| | | @Excel(name = "åä½id") |
| | | private Long unitId; |
| | | |
| | | /** èæ ¸id */ |
| | | @Excel(name = "èæ ¸id") |
| | | private Long examineId; |
| | | |
| | | @Excel(name = "èæ ¸ç±»å") |
| | | private Long examineCategory; |
| | | @Excel(name = "è§åç±»å") |
| | | private Long ruleCategory; |
| | | |
| | | public Long getRuleCategory() { |
| | | return ruleCategory; |
| | | } |
| | | |
| | | public void setRuleCategory(Long ruleCategory) { |
| | | this.ruleCategory = ruleCategory; |
| | | } |
| | | |
| | | public Long getExamineCategory() { |
| | | return examineCategory; |
| | | } |
| | | |
| | | public void setExamineCategory(Long examineCategory) { |
| | | this.examineCategory = examineCategory; |
| | | } |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setScore(BigDecimal score) |
| | | { |
| | | this.score = score; |
| | | } |
| | | |
| | | public BigDecimal getScore() |
| | | { |
| | | return score; |
| | | } |
| | | public void setUnitId(Long unitId) |
| | | { |
| | | this.unitId = unitId; |
| | | } |
| | | |
| | | public Long getUnitId() |
| | | { |
| | | return unitId; |
| | | } |
| | | public void setExamineId(Long examineId) |
| | | { |
| | | this.examineId = examineId; |
| | | } |
| | | |
| | | public Long getExamineId() |
| | | { |
| | | return examineId; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "TExamineScore{" + |
| | | "id=" + id + |
| | | ", score=" + score + |
| | | ", unitId=" + unitId + |
| | | ", examineId=" + examineId + |
| | | ", examineCategory=" + examineCategory + |
| | | ", ruleCategory=" + ruleCategory + |
| | | '}'; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.form; |
| | | |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import com.ycl.platform.base.AbsForm; |
| | | import com.ycl.platform.domain.entity.CheckResult; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | import org.springframework.beans.BeanUtils; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import org.springframework.lang.NonNull; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * èæ ¸ç»æè¡¨å |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-07 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "CheckResult表å", description = "èæ ¸ç»æè¡¨å") |
| | | public class CheckResultForm extends AbsForm { |
| | | |
| | | @NotNull(message = "èæ ¸å¯¹è±¡ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("èæ ¸å¯¹è±¡") |
| | | private Integer checkUnitId; |
| | | |
| | | @NotNull(message = "èæ ¸åå¸ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("èæ ¸åå¸") |
| | | private Integer checkPublishId; |
| | | |
| | | @NotNull(message = "æç»åæ°ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("æç»åæ°") |
| | | private BigDecimal checkScore; |
| | | |
| | | @NotNull(message = "ç³»ç»æåä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("ç³»ç»æå") |
| | | private BigDecimal systemScore; |
| | | |
| | | @NotNull(message = "人工æåä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("人工æå") |
| | | private BigDecimal manualScore; |
| | | |
| | | @NotNull(message = "èæ ¸æ¶é´ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("èæ ¸æ¶é´") |
| | | private LocalDateTime checkTime; |
| | | |
| | | @ApiModelProperty("æ¯å¦åå¸") |
| | | private Integer publish; |
| | | |
| | | public static CheckResult getEntityByForm(@NonNull CheckResultForm form, CheckResult entity) { |
| | | if(entity == null) { |
| | | entity = new CheckResult(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.form; |
| | | |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import com.ycl.platform.base.AbsForm; |
| | | import com.ycl.platform.domain.entity.CheckRule; |
| | | import java.time.LocalDateTime; |
| | | import org.springframework.beans.BeanUtils; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import org.springframework.lang.NonNull; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * èæ ¸è§å表å |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "CheckRule表å", description = "èæ ¸è§å表å") |
| | | public class CheckRuleForm extends AbsForm { |
| | | |
| | | @NotBlank(message = "è§ååç§°ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("è§ååç§°") |
| | | private String ruleName; |
| | | |
| | | @NotBlank(message = "è§åæè¿°ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("è§åæè¿°") |
| | | private String ruleDetail; |
| | | |
| | | @NotNull(message = "天ç½è§é¢ç¹ä½æ°ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("天ç½è§é¢ç¹ä½æ°") |
| | | private Integer videoPointNum; |
| | | |
| | | @NotNull(message = "车è¾å¡å£ç¹ä½æ°ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("车è¾å¡å£ç¹ä½æ°") |
| | | private Integer vehicleCheckpointNum; |
| | | |
| | | @NotNull(message = "人è¸å¡å£ç¹ä½æ°ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("人è¸å¡å£ç¹ä½æ°") |
| | | private Integer faceChceckpointNum; |
| | | |
| | | public static CheckRule getEntityByForm(@NonNull CheckRuleForm form, CheckRule entity) { |
| | | if(entity == null) { |
| | | entity = new CheckRule(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.form; |
| | | |
| | | import com.ycl.platform.domain.vo.RuleItemVO; |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import com.ycl.platform.base.AbsForm; |
| | | import com.ycl.platform.domain.entity.CheckTemplate; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import org.springframework.beans.BeanUtils; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import org.springframework.lang.NonNull; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * èæ ¸æ¨¡æ¿è¡¨å |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "CheckTemplate表å", description = "èæ ¸æ¨¡æ¿è¡¨å") |
| | | public class CheckTemplateForm extends AbsForm { |
| | | |
| | | @NotNull(message = "模æ¿åç§°ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("模æ¿åç§°") |
| | | private String templateName; |
| | | |
| | | @NotNull(message = "è°æ´ç³»æ°ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("è°æ´ç³»æ°") |
| | | private BigDecimal adjustCoefficient; |
| | | |
| | | @NotNull(message = "è°æ´ç³»æ°è®¡ç®æ¹å¼ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("è°æ´ç³»æ°è®¡ç®æ¹å¼") |
| | | private String adjustWay; |
| | | |
| | | @NotBlank(message = "ç¶æä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("ç¶æ") |
| | | private String status; |
| | | |
| | | @NotEmpty(message = "èæ ¸è§åä¸è½ä¸ºç©º") |
| | | @ApiModelProperty("èæ ¸è§å") |
| | | private List<RuleItemVO> ruleFormList; |
| | | |
| | | public static CheckTemplate getEntityByForm(@NonNull CheckTemplateForm form, CheckTemplate entity) { |
| | | if(entity == null) { |
| | | entity = new CheckTemplate(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.form; |
| | | |
| | | import com.ycl.platform.base.AbsForm; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * è¿çº¦å®¡æ ¸è¡¨å |
| | | * |
| | | * @authorï¼xp |
| | | * @dateï¼2024/3/6 8:59 |
| | | */ |
| | | @Data |
| | | public class DefaultAuditForm extends AbsForm { |
| | | |
| | | /** |
| | | * å®¡æ ¸ç»æ |
| | | */ |
| | | @NotBlank(message = "å®¡æ ¸ç»æä¸è½ä¸ºç©º") |
| | | private String auditingResult; |
| | | |
| | | /** |
| | | * å®¡æ ¸è¯´æ |
| | | */ |
| | | private String remark; |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.form; |
| | | |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import com.ycl.platform.base.AbsForm; |
| | | import com.ycl.platform.domain.entity.DefaultAuditing; |
| | | import java.time.LocalDateTime; |
| | | import org.springframework.beans.BeanUtils; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import org.springframework.lang.NonNull; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * è¿è§å®¡æ ¸è¡¨å |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "DefaultAuditing表å", description = "è¿è§å®¡æ ¸è¡¨å") |
| | | public class DefaultAuditingForm extends AbsForm { |
| | | |
| | | @NotNull(message = "è¿è§ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("è¿è§") |
| | | private Integer defaultId; |
| | | |
| | | @NotBlank(message = "å®¡æ ¸ç¶æä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("å®¡æ ¸ç¶æ") |
| | | private String auditingStatus; |
| | | |
| | | @NotBlank(message = "å®¡æ ¸è¯´æä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("å®¡æ ¸è¯´æ") |
| | | private String remark; |
| | | |
| | | @NotNull(message = "å®¡æ ¸æ¶é´ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("å®¡æ ¸æ¶é´") |
| | | private LocalDateTime auditingTime; |
| | | |
| | | @NotNull(message = "å®¡æ ¸äººä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("å®¡æ ¸äºº") |
| | | private Integer auditingUser; |
| | | |
| | | public static DefaultAuditing getEntityByForm(@NonNull DefaultAuditingForm form, DefaultAuditing entity) { |
| | | if(entity == null) { |
| | | entity = new DefaultAuditing(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.form; |
| | | |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import com.ycl.platform.base.AbsForm; |
| | | import com.ycl.platform.domain.entity.DefaultRule; |
| | | import java.time.LocalDateTime; |
| | | import org.springframework.beans.BeanUtils; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import org.springframework.lang.NonNull; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * è¿çº¦è§å表å |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "DefaultRule表å", description = "è¿çº¦è§å表å") |
| | | public class DefaultRuleForm extends AbsForm { |
| | | |
| | | @NotBlank(message = "è§ååç§°ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("è§ååç§°") |
| | | private String ruleName; |
| | | |
| | | @NotBlank(message = "è§å设置ä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("è§å详æ
JSON") |
| | | private String ruleDetail; |
| | | |
| | | @ApiModelProperty("è§åæè¿°") |
| | | private String ruleDesc; |
| | | |
| | | public static DefaultRule getEntityByForm(@NonNull DefaultRuleForm form, DefaultRule entity) { |
| | | if(entity == null) { |
| | | entity = new DefaultRule(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.form; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * å¯ç¨åç¨-è¿çº¦è§å |
| | | * |
| | | * @authorï¼xp |
| | | * @dateï¼2024/3/6 11:16 |
| | | */ |
| | | @Data |
| | | public class DefaultRuleSetForm { |
| | | |
| | | private Integer id; |
| | | |
| | | /** |
| | | * true å¯ç¨ |
| | | * false åç¨ |
| | | */ |
| | | private Boolean flag; |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.form; |
| | | |
| | | import com.ycl.platform.base.AbsForm; |
| | | import com.ycl.platform.domain.entity.CheckResult; |
| | | import com.ycl.system.domain.group.Add; |
| | | import com.ycl.system.domain.group.Update; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.lang.NonNull; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * 人工æå表å |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-07 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "CheckResult表å", description = "人工æå表å") |
| | | public class ManualScoreForm extends AbsForm { |
| | | |
| | | @NotNull(message = "人工æåä¸è½ä¸ºç©º", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("人工æå") |
| | | private BigDecimal manualScore; |
| | | |
| | | public static CheckResult getEntityByForm(@NonNull ManualScoreForm form, CheckResult entity) { |
| | | if(entity == null) { |
| | | entity = new CheckResult(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.query; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.base.AbsQuery; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | import org.springframework.lang.NonNull; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | import utils.DateUtils; |
| | | |
| | | /** |
| | | * èæ ¸ç»ææ¥è¯¢ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-07 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "CheckResultæ¥è¯¢", description = "èæ ¸ç»ææ¥è¯¢") |
| | | public class CheckResultQuery extends AbsQuery { |
| | | |
| | | /** |
| | | * èæ ¸å¯¹è±¡ |
| | | */ |
| | | private String checkUnitName; |
| | | |
| | | /** |
| | | * èæ ¸é¢ç |
| | | */ |
| | | private String frequency; |
| | | |
| | | /** |
| | | * èæ ¸èå´ |
| | | */ |
| | | private String examineRange; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date start; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date end; |
| | | |
| | | public void setTime() { |
| | | if (Objects.nonNull(start)) { |
| | | start = DateUtils.getDayStart(start); |
| | | } |
| | | if (Objects.nonNull(end)) { |
| | | end = DateUtils.getDayEnd(end); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.platform.domain.query; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.base.AbsQuery; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import org.springframework.lang.NonNull; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * èæ ¸è§åæ¥è¯¢ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "CheckRuleæ¥è¯¢", description = "èæ ¸è§åæ¥è¯¢") |
| | | public class CheckRuleQuery extends AbsQuery { |
| | | |
| | | /** |
| | | * è§ååç§° |
| | | */ |
| | | private String ruleName; |
| | | |
| | | /** |
| | | * å¼å§æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date start; |
| | | |
| | | /** |
| | | * ç»ææ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date end; |
| | | |
| | | /** å®¡æ ¸ç¶æ */ |
| | | private Integer auditState; |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.platform.domain.query; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.base.AbsQuery; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import org.springframework.lang.NonNull; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * èæ ¸æ¨¡æ¿æ¥è¯¢ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "CheckTemplateæ¥è¯¢", description = "èæ ¸æ¨¡æ¿æ¥è¯¢") |
| | | public class CheckTemplateQuery extends AbsQuery { |
| | | |
| | | /** |
| | | * 模æ¿åç§° |
| | | */ |
| | | private String templateName; |
| | | |
| | | /** |
| | | * ç¶æ |
| | | */ |
| | | private String status; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date start; |
| | | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date end; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.platform.domain.query; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.base.AbsQuery; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | import org.springframework.lang.NonNull; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | import utils.DateUtils; |
| | | |
| | | /** |
| | | * è¿è§å®¡æ ¸æ¥è¯¢ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "DefaultAuditingæ¥è¯¢", description = "è¿è§å®¡æ ¸æ¥è¯¢") |
| | | public class DefaultAuditingQuery extends AbsQuery { |
| | | |
| | | /** |
| | | * è¿è§åä½ |
| | | */ |
| | | private Integer unitId; |
| | | |
| | | /** |
| | | * å®¡æ ¸æ¶é´èå´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date auditingStartTime; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date auditingEndTime; |
| | | |
| | | /** |
| | | * å建æ¶é´èå´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createStartTime; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createEndTime; |
| | | |
| | | /** |
| | | * 设置æ¶é´ï¼ä½¿å
¶å
å«ä»å¤© |
| | | */ |
| | | public void setTime() { |
| | | if (Objects.nonNull(auditingStartTime)) { |
| | | auditingStartTime = DateUtils.getDayStart(auditingStartTime); |
| | | } |
| | | if (Objects.nonNull(auditingEndTime)) { |
| | | auditingEndTime = DateUtils.getDayEnd(auditingEndTime); |
| | | } |
| | | if (Objects.nonNull(createStartTime)) { |
| | | createStartTime = DateUtils.getDayStart(createStartTime); |
| | | } |
| | | if (Objects.nonNull(createEndTime)) { |
| | | createEndTime = DateUtils.getDayEnd(createEndTime); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.platform.domain.query; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.base.AbsQuery; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import org.springframework.lang.NonNull; |
| | | import jakarta.validation.constraints.NotBlank; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * è¿çº¦è§åæ¥è¯¢ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | @ApiModel(value = "DefaultRuleæ¥è¯¢", description = "è¿çº¦è§åæ¥è¯¢") |
| | | public class DefaultRuleQuery extends AbsQuery { |
| | | |
| | | /** |
| | | * è§ååç§° |
| | | */ |
| | | private String ruleName; |
| | | |
| | | /** |
| | | * å¼å§æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date start; |
| | | |
| | | /** |
| | | * ç»ææ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date end; |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.ycl.platform.domain.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.base.AbsVo; |
| | | import com.ycl.platform.domain.entity.CheckResult; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | import java.time.LocalDateTime; |
| | | import org.springframework.lang.NonNull; |
| | | import org.springframework.beans.BeanUtils; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * èæ ¸ç»æå±ç¤º |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-07 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | public class CheckResultVO extends AbsVo { |
| | | |
| | | /** èæ ¸å¯¹è±¡ */ |
| | | private Integer checkUnitId; |
| | | private String checkUnitName; |
| | | |
| | | /** èæ ¸ */ |
| | | private String examineName; |
| | | |
| | | /** èæ ¸é¢ç */ |
| | | private String frequency; |
| | | |
| | | /** èæ ¸èå´ */ |
| | | private String examineRange; |
| | | |
| | | /** æç»åæ° */ |
| | | private BigDecimal checkScore; |
| | | |
| | | /** ç³»ç»æå */ |
| | | private BigDecimal systemScore; |
| | | |
| | | /** 人工æå */ |
| | | private BigDecimal manualScore; |
| | | |
| | | /** èæ ¸æ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime checkTime; |
| | | |
| | | /** æ¯å¦åå¸ */ |
| | | private Integer publish; |
| | | |
| | | public static CheckResultVO getVoByEntity(@NonNull CheckResult entity, CheckResultVO vo) { |
| | | if(vo == null) { |
| | | vo = new CheckResultVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.vo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.base.AbsVo; |
| | | import com.ycl.platform.domain.entity.CheckRule; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.time.LocalDateTime; |
| | | import org.springframework.lang.NonNull; |
| | | import org.springframework.beans.BeanUtils; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * èæ ¸è§åå±ç¤º |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | public class CheckRuleVO extends AbsVo { |
| | | |
| | | /** è§ååç§° */ |
| | | private String ruleName; |
| | | |
| | | /** è§åæè¿° */ |
| | | private String ruleDetail; |
| | | |
| | | /** 天ç½è§é¢ç¹ä½æ° */ |
| | | private Integer videoPointNum; |
| | | |
| | | /** 车è¾å¡å£ç¹ä½æ° */ |
| | | private Integer vehicleCheckpointNum; |
| | | |
| | | /** 人è¸å¡å£ç¹ä½æ° */ |
| | | private Integer faceChceckpointNum; |
| | | |
| | | private Integer category; |
| | | private Integer examineCategory; |
| | | /** å®¡æ ¸ç¶æ */ |
| | | private Integer auditState; |
| | | /** å®¡æ ¸äºº */ |
| | | private String auditUser; |
| | | /** å®¡æ ¸æ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date auditTime; |
| | | /** å®¡æ ¸æè§ */ |
| | | private String auditDescription; |
| | | public static CheckRuleVO getVoByEntity(@NonNull CheckRule entity, CheckRuleVO vo) { |
| | | if(vo == null) { |
| | | vo = new CheckRuleVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.base.AbsVo; |
| | | import com.ycl.platform.domain.entity.CheckTemplate; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.time.LocalDateTime; |
| | | |
| | | import com.ycl.platform.domain.form.CheckTemplateForm; |
| | | import org.springframework.lang.NonNull; |
| | | import org.springframework.beans.BeanUtils; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * èæ ¸æ¨¡æ¿å±ç¤º |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | public class CheckTemplateVO extends AbsVo { |
| | | |
| | | /** 模æ¿åç§° */ |
| | | private String templateName; |
| | | |
| | | /** è°æ´ç³»æ° */ |
| | | private BigDecimal adjustCoefficient; |
| | | |
| | | /** è°æ´ç³»æ°çæ¹å¼ï¼ä¹é¤ */ |
| | | private String adjustWay; |
| | | |
| | | /** ç¶æ */ |
| | | private String status; |
| | | |
| | | /** è§åå表 */ |
| | | private List<RuleItemVO> ruleFormList; |
| | | /** åä½å */ |
| | | private String unitName; |
| | | private Integer unitId; |
| | | /** èæ ¸ç±»å */ |
| | | private String examineCategory; |
| | | |
| | | public static CheckTemplateVO getVoByEntity(@NonNull CheckTemplate entity, CheckTemplateVO vo) { |
| | | if(vo == null) { |
| | | vo = new CheckTemplateVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.vo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ycl.platform.base.AbsVo; |
| | | import com.ycl.platform.domain.entity.DefaultAuditing; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | import java.time.LocalDateTime; |
| | | import org.springframework.lang.NonNull; |
| | | import org.springframework.beans.BeanUtils; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * è¿è§å®¡æ ¸å±ç¤º |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | public class DefaultAuditingVO extends AbsVo { |
| | | |
| | | /** è¿è§ */ |
| | | private Integer defaultId; |
| | | |
| | | /** è¿è§æ£å */ |
| | | private BigDecimal score; |
| | | |
| | | /** èæ ¸åå¸ID */ |
| | | private Integer checkPublishId; |
| | | |
| | | /** |
| | | * è¿çº¦è§åå |
| | | */ |
| | | private String defaultRuleName; |
| | | |
| | | /** |
| | | * è¿çº¦è¿ç»´åä½ |
| | | */ |
| | | private String unitName; |
| | | |
| | | /** å®¡æ ¸ç¶æ */ |
| | | private String auditingStatus; |
| | | |
| | | /** å®¡æ ¸è¯´æ */ |
| | | private String remark; |
| | | |
| | | /** å®¡æ ¸æ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime auditingTime; |
| | | |
| | | /** å®¡æ ¸äºº */ |
| | | private Integer auditingUser; |
| | | private String auditingUserName; |
| | | |
| | | private String createBy; |
| | | public static DefaultAuditingVO getVoByEntity(@NonNull DefaultAuditing entity, DefaultAuditingVO vo) { |
| | | if(vo == null) { |
| | | vo = new DefaultAuditingVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.vo; |
| | | |
| | | import com.ycl.platform.base.AbsVo; |
| | | import com.ycl.platform.domain.entity.DefaultRule; |
| | | import java.util.List; |
| | | import java.time.LocalDateTime; |
| | | import org.springframework.lang.NonNull; |
| | | import org.springframework.beans.BeanUtils; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.experimental.Accessors; |
| | | |
| | | /** |
| | | * è¿çº¦è§åå±ç¤º |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Data |
| | | @Accessors(chain = true) |
| | | public class DefaultRuleVO extends AbsVo { |
| | | |
| | | /** è§ååç§° */ |
| | | private String ruleName; |
| | | |
| | | /** è§å详æ
JSON */ |
| | | private String ruleDetail; |
| | | |
| | | /** è§åæè¿° */ |
| | | private String ruleDesc; |
| | | |
| | | /** è§åç¶æï¼å¯ç¨ãæªå¯ç¨ */ |
| | | private String ruleStatus; |
| | | |
| | | public static DefaultRuleVO getVoByEntity(@NonNull DefaultRule entity, DefaultRuleVO vo) { |
| | | if(vo == null) { |
| | | vo = new DefaultRuleVO(); |
| | | } |
| | | BeanUtils.copyProperties(entity, vo); |
| | | return vo; |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * @authorï¼xp |
| | | * @dateï¼2024/3/6 10:49 |
| | | */ |
| | | @Data |
| | | public class Rule { |
| | | |
| | | /** è¶
æ¶æªå¤ç工忰 */ |
| | | private Integer overTime; |
| | | |
| | | /** å·¥åå¤çå¤±è´¥æ° */ |
| | | private Integer failNum; |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.vo; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * @authorï¼xp |
| | | * @dateï¼2024/3/7 9:24 |
| | | */ |
| | | @Data |
| | | public class RuleItemVO { |
| | | |
| | | /** |
| | | * è§å |
| | | */ |
| | | private Integer ruleId; |
| | | |
| | | /** |
| | | * æé |
| | | */ |
| | | private BigDecimal weight; |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.domain.vo; |
| | | |
| | | import annotation.Excel; |
| | | import com.ycl.system.entity.BaseEntity; |
| | | import org.apache.commons.lang.builder.ToStringBuilder; |
| | | import org.apache.commons.lang.builder.ToStringStyle; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * èæ ¸è®¡å对象 t_examine_score |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-13 |
| | | */ |
| | | public class TExamineScoreVO extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** $column.columnComment */ |
| | | private Long id; |
| | | |
| | | /** åå¼ */ |
| | | @Excel(name = "åå¼") |
| | | private BigDecimal score; |
| | | |
| | | /** åä½id */ |
| | | @Excel(name = "åä½id") |
| | | private Long unitId; |
| | | |
| | | /** èæ ¸id */ |
| | | @Excel(name = "èæ ¸id") |
| | | private Long examineId; |
| | | |
| | | private String examineCategory; |
| | | private String ruleCategory; |
| | | |
| | | private String unitName; |
| | | |
| | | private String examineName; |
| | | |
| | | public String getRuleCategory() { |
| | | return ruleCategory; |
| | | } |
| | | |
| | | public void setRuleCategory(String ruleCategory) { |
| | | this.ruleCategory = ruleCategory; |
| | | } |
| | | |
| | | public String getUnitName() { |
| | | return unitName; |
| | | } |
| | | |
| | | public void setUnitName(String unitName) { |
| | | this.unitName = unitName; |
| | | } |
| | | |
| | | public String getExamineName() { |
| | | return examineName; |
| | | } |
| | | |
| | | public void setExamineName(String examineName) { |
| | | this.examineName = examineName; |
| | | } |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setScore(BigDecimal score) |
| | | { |
| | | this.score = score; |
| | | } |
| | | |
| | | public BigDecimal getScore() |
| | | { |
| | | return score; |
| | | } |
| | | public void setUnitId(Long unitId) |
| | | { |
| | | this.unitId = unitId; |
| | | } |
| | | |
| | | public Long getUnitId() |
| | | { |
| | | return unitId; |
| | | } |
| | | public void setExamineId(Long examineId) |
| | | { |
| | | this.examineId = examineId; |
| | | } |
| | | |
| | | public Long getExamineId() |
| | | { |
| | | return examineId; |
| | | } |
| | | |
| | | public String getExamineCategory() { |
| | | return examineCategory; |
| | | } |
| | | |
| | | public void setExamineCategory(String examineCategory) { |
| | | this.examineCategory = examineCategory; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "TExamineScoreVO{" + |
| | | "id=" + id + |
| | | ", score=" + score + |
| | | ", unitId=" + unitId + |
| | | ", examineId=" + examineId + |
| | | ", examineCategory='" + examineCategory + '\'' + |
| | | ", ruleCategory='" + ruleCategory + '\'' + |
| | | ", unitName='" + unitName + '\'' + |
| | | ", examineName='" + examineName + '\'' + |
| | | '}'; |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.entity.AccountingRules; |
| | | import com.ycl.platform.service.IAccountingRulesService; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.controller.BaseController; |
| | | import com.ycl.system.page.TableDataInfo; |
| | | import com.ycl.utils.poi.ExcelUtil; |
| | | import enumeration.BusinessType; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ¸ç®è§åController |
| | | * |
| | | * @author gonghl |
| | | * @date 2024-03-21 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/platform/rules") |
| | | public class AccountingRulesController extends BaseController { |
| | | @Autowired |
| | | private IAccountingRulesService accountingRulesService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ¸ç®è§åå表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:rules:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(AccountingRules accountingRules) { |
| | | startPage(); |
| | | List<AccountingRules> list = accountingRulesService.selectAccountingRulesList(accountingRules); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ ¸ç®è§åå表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:rules:export')") |
| | | @Log(title = "æ ¸ç®è§å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, AccountingRules accountingRules) { |
| | | List<AccountingRules> list = accountingRulesService.selectAccountingRulesList(accountingRules); |
| | | ExcelUtil<AccountingRules> util = new ExcelUtil<AccountingRules>(AccountingRules.class); |
| | | util.exportExcel(response, list, "æ ¸ç®è§åæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ ¸ç®è§å详ç»ä¿¡æ¯ |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:rules:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Integer id) { |
| | | return success(accountingRulesService.selectAccountingRulesById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ ¸ç®è§å |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:rules:add')") |
| | | @Log(title = "æ ¸ç®è§å", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody AccountingRules accountingRules) { |
| | | return toAjax(accountingRulesService.insertAccountingRules(accountingRules)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ ¸ç®è§å |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:rules:edit')") |
| | | @Log(title = "æ ¸ç®è§å", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody AccountingRules accountingRules) { |
| | | return toAjax(accountingRulesService.updateAccountingRules(accountingRules)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿 ¸ç®è§å |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:rules:remove')") |
| | | @Log(title = "æ ¸ç®è§å", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Integer[] ids) { |
| | | return toAjax(accountingRulesService.deleteAccountingRulesByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.entity.CheckResult; |
| | | import com.ycl.platform.service.ICheckResultService; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.controller.BaseController; |
| | | import com.ycl.system.page.TableDataInfo; |
| | | import com.ycl.utils.poi.ExcelUtil; |
| | | import enumeration.BusinessType; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import com.ycl.platform.domain.form.ManualScoreForm; |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.ycl.platform.service.CheckResultService; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.platform.domain.form.CheckResultForm; |
| | | import com.ycl.platform.domain.query.CheckResultQuery; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸ç»æController |
| | | * èæ ¸ç»æ å端æ§å¶å¨ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * @author xp |
| | | * @since 2024-03-07 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "èæ ¸ç»æ", tags = "èæ ¸ç»æç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/check/result") |
| | | public class CheckResultController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ICheckResultService checkResultService; |
| | | @RequestMapping("/check-result") |
| | | public class CheckResultController { |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸ç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(CheckResult checkResult) |
| | | { |
| | | startPage(); |
| | | List<CheckResult> list = checkResultService.selectCheckResultList(checkResult); |
| | | return getDataTable(list); |
| | | } |
| | | private final CheckResultService checkResultService; |
| | | |
| | | /** |
| | | * 导åºèæ ¸ç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:export')") |
| | | @Log(title = "èæ ¸ç»æ", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, CheckResult checkResult) |
| | | { |
| | | List<CheckResult> list = checkResultService.selectCheckResultList(checkResult); |
| | | ExcelUtil<CheckResult> util = new ExcelUtil<CheckResult>(CheckResult.class); |
| | | util.exportExcel(response, list, "èæ ¸ç»ææ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åèæ ¸ç»æè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(checkResultService.selectCheckResultById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:add')") |
| | | @Log(title = "èæ ¸ç»æ", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody CheckResult checkResult) |
| | | { |
| | | return toAjax(checkResultService.insertCheckResult(checkResult)); |
| | | @ApiOperation(value = "æ·»å ", notes = "æ·»å ") |
| | | public Result add(@RequestBody @Validated(Add.class) CheckResultForm form) { |
| | | return checkResultService.add(form); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:edit')") |
| | | @Log(title = "èæ ¸ç»æ", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody CheckResult checkResult) |
| | | { |
| | | return toAjax(checkResultService.updateCheckResult(checkResult)); |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¿®æ¹") |
| | | public Result update(@RequestBody @Validated(Update.class) CheckResultForm form) { |
| | | return checkResultService.update(form); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èæ ¸ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:result:remove')") |
| | | @Log(title = "èæ ¸ç»æ", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(checkResultService.deleteCheckResultByIds(ids)); |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "IDå é¤", notes = "IDå é¤") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return checkResultService.removeById(id); |
| | | } |
| | | |
| | | @PutMapping("/publish/{id}") |
| | | @ApiOperation(value = "IDåå¸", notes = "IDåå¸") |
| | | public Result publishById(@PathVariable("id") String id) { |
| | | return checkResultService.publishById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "æ¹éå é¤", notes = "æ¹éå é¤") |
| | | public Result remove(@RequestBody @NotEmpty(message = "è¯·éæ©æ°æ®") List<String> ids) { |
| | | return checkResultService.remove(ids); |
| | | } |
| | | |
| | | @PostMapping("/page") |
| | | @ApiOperation(value = "å页", notes = "å页") |
| | | public Result page(@RequestBody CheckResultQuery query) { |
| | | return checkResultService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详æ
", notes = "详æ
") |
| | | public Result detail(@PathVariable("id") String id) { |
| | | return checkResultService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "å表", notes = "å表") |
| | | public Result list() { |
| | | return checkResultService.all(); |
| | | } |
| | | |
| | | @PostMapping("/manual-score") |
| | | @ApiOperation(value = "人工æå", notes = "人工æå") |
| | | public Result manualScore(@RequestBody ManualScoreForm form) { |
| | | return checkResultService.manualScore(form); |
| | | } |
| | | } |
| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.entity.CheckRule; |
| | | import com.ycl.platform.service.ICheckRuleService; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.controller.BaseController; |
| | | import com.ycl.system.page.TableDataInfo; |
| | | import com.ycl.utils.poi.ExcelUtil; |
| | | import enumeration.BusinessType; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.ycl.platform.service.CheckRuleService; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.platform.domain.form.CheckRuleForm; |
| | | import com.ycl.platform.domain.query.CheckRuleQuery; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * èæ ¸è§åController |
| | | * èæ ¸è§å å端æ§å¶å¨ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "èæ ¸è§å", tags = "èæ ¸è§å管ç") |
| | | @RestController |
| | | @RequestMapping("/check/rule") |
| | | public class CheckRuleController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ICheckRuleService checkRuleService; |
| | | @RequestMapping("/check-rule") |
| | | public class CheckRuleController { |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸è§åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(CheckRule checkRule) |
| | | { |
| | | startPage(); |
| | | List<CheckRule> list = checkRuleService.selectCheckRuleList(checkRule); |
| | | return getDataTable(list); |
| | | } |
| | | private final CheckRuleService checkRuleService; |
| | | |
| | | /** |
| | | * 导åºèæ ¸è§åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:export')") |
| | | @Log(title = "èæ ¸è§å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, CheckRule checkRule) |
| | | { |
| | | List<CheckRule> list = checkRuleService.selectCheckRuleList(checkRule); |
| | | ExcelUtil<CheckRule> util = new ExcelUtil<CheckRule>(CheckRule.class); |
| | | util.exportExcel(response, list, "èæ ¸è§åæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åèæ ¸è§å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(checkRuleService.selectCheckRuleById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:add')") |
| | | @Log(title = "èæ ¸è§å", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody CheckRule checkRule) |
| | | { |
| | | return toAjax(checkRuleService.insertCheckRule(checkRule)); |
| | | @ApiOperation(value = "æ·»å ", notes = "æ·»å ") |
| | | public Result add(@RequestBody @Validated(Add.class) CheckRuleForm form) { |
| | | return checkRuleService.add(form); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:edit')") |
| | | @Log(title = "èæ ¸è§å", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody CheckRule checkRule) |
| | | { |
| | | return toAjax(checkRuleService.updateCheckRule(checkRule)); |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¿®æ¹") |
| | | public Result update(@RequestBody @Validated(Update.class) CheckRuleForm form) { |
| | | return checkRuleService.update(form); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èæ ¸è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:remove')") |
| | | @Log(title = "èæ ¸è§å", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(checkRuleService.deleteCheckRuleByIds(ids)); |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "IDå é¤", notes = "IDå é¤") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return checkRuleService.removeById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "æ¹éå é¤", notes = "æ¹éå é¤") |
| | | public Result remove(@RequestBody @NotEmpty(message = "è¯·éæ©æ°æ®") List<String> ids) { |
| | | return checkRuleService.remove(ids); |
| | | } |
| | | |
| | | @PostMapping("/page") |
| | | @ApiOperation(value = "å页", notes = "å页") |
| | | public Result page(@RequestBody CheckRuleQuery query) { |
| | | return checkRuleService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详æ
", notes = "详æ
") |
| | | public Result detail(@PathVariable("id") String id) { |
| | | return checkRuleService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "å表", notes = "å表") |
| | | public Result list() { |
| | | return checkRuleService.all(); |
| | | } |
| | | } |
| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.entity.CheckTemplate; |
| | | import com.ycl.platform.service.ICheckTemplateService; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.controller.BaseController; |
| | | import com.ycl.system.page.TableDataInfo; |
| | | import com.ycl.utils.poi.ExcelUtil; |
| | | import enumeration.BusinessType; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.ycl.platform.service.CheckTemplateService; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.platform.domain.form.CheckTemplateForm; |
| | | import com.ycl.platform.domain.query.CheckTemplateQuery; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸æ¨¡æ¿Controller |
| | | * èæ ¸æ¨¡æ¿ å端æ§å¶å¨ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "èæ ¸æ¨¡æ¿", tags = "èæ ¸æ¨¡æ¿ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/check/template") |
| | | public class CheckTemplateController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ICheckTemplateService checkTemplateService; |
| | | @RequestMapping("/check-template") |
| | | public class CheckTemplateController { |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸æ¨¡æ¿å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(CheckTemplate checkTemplate) |
| | | { |
| | | startPage(); |
| | | List<CheckTemplate> list = checkTemplateService.selectCheckTemplateList(checkTemplate); |
| | | return getDataTable(list); |
| | | } |
| | | private final CheckTemplateService checkTemplateService; |
| | | |
| | | /** |
| | | * 导åºèæ ¸æ¨¡æ¿å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:export')") |
| | | @Log(title = "èæ ¸æ¨¡æ¿", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, CheckTemplate checkTemplate) |
| | | { |
| | | List<CheckTemplate> list = checkTemplateService.selectCheckTemplateList(checkTemplate); |
| | | ExcelUtil<CheckTemplate> util = new ExcelUtil<CheckTemplate>(CheckTemplate.class); |
| | | util.exportExcel(response, list, "èæ ¸æ¨¡æ¿æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åèæ ¸æ¨¡æ¿è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(checkTemplateService.selectCheckTemplateById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸æ¨¡æ¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @Log(title = "èæ ¸æ¨¡æ¿", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody CheckTemplate checkTemplate) |
| | | { |
| | | return toAjax(checkTemplateService.insertCheckTemplate(checkTemplate)); |
| | | @ApiOperation(value = "æ·»å ", notes = "æ·»å ") |
| | | public Result add(@RequestBody @Validated(Add.class) CheckTemplateForm form) { |
| | | return checkTemplateService.add(form); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸æ¨¡æ¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | @Log(title = "èæ ¸æ¨¡æ¿", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody CheckTemplate checkTemplate) |
| | | { |
| | | return toAjax(checkTemplateService.updateCheckTemplate(checkTemplate)); |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¿®æ¹") |
| | | public Result update(@RequestBody @Validated(Update.class) CheckTemplateForm form) { |
| | | return checkTemplateService.update(form); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èæ ¸æ¨¡æ¿ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:remove')") |
| | | @Log(title = "èæ ¸æ¨¡æ¿", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(checkTemplateService.deleteCheckTemplateByIds(ids)); |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "IDå é¤", notes = "IDå é¤") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return checkTemplateService.removeById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "æ¹éå é¤", notes = "æ¹éå é¤") |
| | | public Result remove(@RequestBody @NotEmpty(message = "è¯·éæ©æ°æ®") List<String> ids) { |
| | | return checkTemplateService.remove(ids); |
| | | } |
| | | |
| | | @PostMapping("/page") |
| | | @ApiOperation(value = "å页", notes = "å页") |
| | | public Result page(@RequestBody CheckTemplateQuery query) { |
| | | return checkTemplateService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详æ
", notes = "详æ
") |
| | | public Result detail(@PathVariable("id") String id) { |
| | | return checkTemplateService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "å表", notes = "å表") |
| | | public Result list() { |
| | | return checkTemplateService.all(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import com.ycl.platform.domain.form.DefaultAuditForm; |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.ycl.platform.service.DefaultAuditingService; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.platform.domain.form.DefaultAuditingForm; |
| | | import com.ycl.platform.domain.query.DefaultAuditingQuery; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * è¿è§å®¡æ ¸ å端æ§å¶å¨ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "è¿è§å®¡æ ¸", tags = "è¿è§å®¡æ ¸ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/default-auditing") |
| | | public class DefaultAuditingController { |
| | | |
| | | private final DefaultAuditingService defaultAuditingService; |
| | | |
| | | @PostMapping |
| | | @ApiOperation(value = "æ·»å ", notes = "æ·»å ") |
| | | public Result add(@RequestBody @Validated(Add.class) DefaultAuditingForm form) { |
| | | return defaultAuditingService.add(form); |
| | | } |
| | | |
| | | @PutMapping |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¿®æ¹") |
| | | public Result update(@RequestBody @Validated(Update.class) DefaultAuditingForm form) { |
| | | return defaultAuditingService.update(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "IDå é¤", notes = "IDå é¤") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return defaultAuditingService.removeById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "æ¹éå é¤", notes = "æ¹éå é¤") |
| | | public Result remove(@RequestBody @NotEmpty(message = "è¯·éæ©æ°æ®") List<String> ids) { |
| | | return defaultAuditingService.remove(ids); |
| | | } |
| | | |
| | | @PostMapping("/page") |
| | | @ApiOperation(value = "å页", notes = "å页") |
| | | public Result page(@RequestBody DefaultAuditingQuery query) { |
| | | return defaultAuditingService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详æ
", notes = "详æ
") |
| | | public Result detail(@PathVariable("id") String id) { |
| | | return defaultAuditingService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "å表", notes = "å表") |
| | | public Result list() { |
| | | return defaultAuditingService.all(); |
| | | } |
| | | |
| | | @PostMapping("/auditing") |
| | | @ApiOperation(value = "å®¡æ ¸", notes = "å®¡æ ¸") |
| | | public Result auditing(@RequestBody @Validated DefaultAuditForm form) { |
| | | return defaultAuditingService.auditing(form); |
| | | } |
| | | } |
| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.entity.DefaultRule; |
| | | import com.ycl.platform.service.IDefaultRuleService; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.controller.BaseController; |
| | | import com.ycl.utils.poi.ExcelUtil; |
| | | import enumeration.BusinessType; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import com.ycl.platform.domain.form.DefaultRuleSetForm; |
| | | import com.ycl.system.domain.group.Update; |
| | | import com.ycl.system.domain.group.Add; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import lombok.RequiredArgsConstructor; |
| | | import java.util.List; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.ycl.platform.service.DefaultRuleService; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.platform.domain.form.DefaultRuleForm; |
| | | import com.ycl.platform.domain.query.DefaultRuleQuery; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿çº¦è§åController |
| | | * è¿çº¦è§å å端æ§å¶å¨ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Validated |
| | | @RequiredArgsConstructor |
| | | @Api(value = "è¿çº¦è§å", tags = "è¿çº¦è§å管ç") |
| | | @RestController |
| | | @RequestMapping("/default/rule") |
| | | public class DefaultRuleController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IDefaultRuleService defaultRuleService; |
| | | @RequestMapping("/default-rule") |
| | | public class DefaultRuleController { |
| | | |
| | | /** |
| | | * æ¥è¯¢è¿çº¦è§åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:list')") |
| | | @GetMapping("/list") |
| | | public AjaxResult list(DefaultRule defaultRule) |
| | | { |
| | | List<DefaultRule> list = defaultRuleService.selectDefaultRuleList(defaultRule); |
| | | return success(list); |
| | | } |
| | | private final DefaultRuleService defaultRuleService; |
| | | |
| | | /** |
| | | * 导åºè¿çº¦è§åå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:export')") |
| | | @Log(title = "è¿çº¦è§å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, DefaultRule defaultRule) |
| | | { |
| | | List<DefaultRule> list = defaultRuleService.selectDefaultRuleList(defaultRule); |
| | | ExcelUtil<DefaultRule> util = new ExcelUtil<DefaultRule>(DefaultRule.class); |
| | | util.exportExcel(response, list, "è¿çº¦è§åæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åè¿çº¦è§å详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(defaultRuleService.selectDefaultRuleById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è¿çº¦è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:add')") |
| | | @Log(title = "è¿çº¦è§å", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody DefaultRule defaultRule) |
| | | { |
| | | return toAjax(defaultRuleService.insertDefaultRule(defaultRule)); |
| | | @ApiOperation(value = "æ·»å ", notes = "æ·»å ") |
| | | public Result add(@RequestBody @Validated(Add.class) DefaultRuleForm form) { |
| | | return defaultRuleService.add(form); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è¿çº¦è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:edit')") |
| | | @Log(title = "è¿çº¦è§å", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody DefaultRule defaultRule) |
| | | { |
| | | return toAjax(defaultRuleService.updateDefaultRule(defaultRule)); |
| | | @ApiOperation(value = "ä¿®æ¹", notes = "ä¿®æ¹") |
| | | public Result update(@RequestBody @Validated(Update.class) DefaultRuleForm form) { |
| | | return defaultRuleService.update(form); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è¿çº¦è§å |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:rule:remove')") |
| | | @Log(title = "è¿çº¦è§å", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(defaultRuleService.deleteDefaultRuleByIds(ids)); |
| | | @PostMapping("/set") |
| | | @ApiOperation(value = "å¯ç¨/åç¨", notes = "å¯ç¨/åç¨") |
| | | public Result set(@RequestBody DefaultRuleSetForm form) { |
| | | return defaultRuleService.set(form); |
| | | } |
| | | |
| | | @DeleteMapping("/{id}") |
| | | @ApiOperation(value = "IDå é¤", notes = "IDå é¤") |
| | | public Result removeById(@PathVariable("id") String id) { |
| | | return defaultRuleService.removeById(id); |
| | | } |
| | | |
| | | @DeleteMapping("/batch") |
| | | @ApiOperation(value = "æ¹éå é¤", notes = "æ¹éå é¤") |
| | | public Result remove(@RequestBody @NotEmpty(message = "è¯·éæ©æ°æ®") List<String> ids) { |
| | | return defaultRuleService.remove(ids); |
| | | } |
| | | |
| | | @PostMapping("/page") |
| | | @ApiOperation(value = "å页", notes = "å页") |
| | | public Result page(@RequestBody DefaultRuleQuery query) { |
| | | return defaultRuleService.page(query); |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | @ApiOperation(value = "详æ
", notes = "详æ
") |
| | | public Result detail(@PathVariable("id") String id) { |
| | | return defaultRuleService.detail(id); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "å表", notes = "å表") |
| | | public Result list() { |
| | | return defaultRuleService.all(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.entity.TCheckPublish; |
| | | import com.ycl.platform.service.ITCheckPublishService; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.system.controller.BaseController; |
| | | import com.ycl.system.page.TableDataInfo; |
| | | import com.ycl.utils.poi.ExcelUtil; |
| | | import enumeration.BusinessType; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸åå¸Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-07 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/system/publish") |
| | | public class TCheckPublishController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ITCheckPublishService tCheckPublishService; |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸åå¸å表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:publish:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TCheckPublish tCheckPublish) |
| | | { |
| | | startPage(); |
| | | List<TCheckPublish> list = tCheckPublishService.selectTCheckPublishList(tCheckPublish); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºèæ ¸åå¸å表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:publish:export')") |
| | | @Log(title = "èæ ¸åå¸", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TCheckPublish tCheckPublish) |
| | | { |
| | | List<TCheckPublish> list = tCheckPublishService.selectTCheckPublishList(tCheckPublish); |
| | | ExcelUtil<TCheckPublish> util = new ExcelUtil<TCheckPublish>(TCheckPublish.class); |
| | | util.exportExcel(response, list, "èæ ¸å叿°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åèæ ¸åå¸è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:publish:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(tCheckPublishService.selectTCheckPublishById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸åå¸ |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:publish:add')") |
| | | @Log(title = "èæ ¸åå¸", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TCheckPublish tCheckPublish) |
| | | { |
| | | return toAjax(tCheckPublishService.insertTCheckPublish(tCheckPublish)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸åå¸ |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:publish:edit')") |
| | | @Log(title = "èæ ¸åå¸", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TCheckPublish tCheckPublish) |
| | | { |
| | | return toAjax(tCheckPublishService.updateTCheckPublish(tCheckPublish)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èæ ¸åå¸ |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:publish:remove')") |
| | | @Log(title = "èæ ¸åå¸", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(tCheckPublishService.deleteTCheckPublishByIds(ids)); |
| | | } |
| | | |
| | | @GetMapping("/all") |
| | | @ApiOperation(value = "䏿å表", notes = "䏿å表") |
| | | public Result all() { |
| | | return tCheckPublishService.all(); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.controller; |
| | | |
| | | import annotation.Log; |
| | | import com.ycl.platform.domain.entity.TExamineScore; |
| | | import com.ycl.platform.domain.vo.TExamineScoreVO; |
| | | import com.ycl.platform.service.ITExamineScoreService; |
| | | import com.ycl.system.AjaxResult; |
| | | import com.ycl.system.controller.BaseController; |
| | | import com.ycl.system.page.TableDataInfo; |
| | | import com.ycl.utils.poi.ExcelUtil; |
| | | import enumeration.BusinessType; |
| | | import jakarta.servlet.http.HttpServletResponse; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸è®¡åController |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-13 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/platform/score") |
| | | public class TExamineScoreController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ITExamineScoreService tExamineScoreService; |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸è®¡åå表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:score:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TExamineScore tExamineScore) |
| | | { |
| | | startPage(); |
| | | List<TExamineScoreVO> list = tExamineScoreService.selectTExamineScoreList(tExamineScore); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºèæ ¸è®¡åå表 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:score:export')") |
| | | @Log(title = "èæ ¸è®¡å", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TExamineScore tExamineScore) |
| | | { |
| | | List<TExamineScoreVO> list = tExamineScoreService.selectTExamineScoreList(tExamineScore); |
| | | ExcelUtil<TExamineScoreVO> util = new ExcelUtil<TExamineScoreVO>(TExamineScoreVO.class); |
| | | util.exportExcel(response, list, "èæ ¸è®¡åæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åèæ ¸è®¡å详ç»ä¿¡æ¯ |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:score:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(tExamineScoreService.selectTExamineScoreById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸è®¡å |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:score:add')") |
| | | @Log(title = "èæ ¸è®¡å", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TExamineScore tExamineScore) |
| | | { |
| | | return toAjax(tExamineScoreService.insertTExamineScore(tExamineScore)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸è®¡å |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:score:edit')") |
| | | @Log(title = "èæ ¸è®¡å", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TExamineScore tExamineScore) |
| | | { |
| | | return toAjax(tExamineScoreService.updateTExamineScore(tExamineScore)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èæ ¸è®¡å |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('platform:score:remove')") |
| | | @Log(title = "èæ ¸è®¡å", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(tExamineScoreService.deleteTExamineScoreByIds(ids)); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.mapper; |
| | | |
| | | |
| | | import com.ycl.platform.domain.entity.AccountingRules; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ¸ç®è§åMapperæ¥å£ |
| | | * |
| | | * @author gonghl |
| | | * @date 2024-03-21 |
| | | */ |
| | | public interface AccountingRulesMapper { |
| | | /** |
| | | * æ¥è¯¢æ ¸ç®è§å |
| | | * |
| | | * @param id æ ¸ç®è§åä¸»é® |
| | | * @return æ ¸ç®è§å |
| | | */ |
| | | public AccountingRules selectAccountingRulesById(Integer id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ¸ç®è§åå表 |
| | | * |
| | | * @param accountingRules æ ¸ç®è§å |
| | | * @return æ ¸ç®è§åéå |
| | | */ |
| | | public List<AccountingRules> selectAccountingRulesList(AccountingRules accountingRules); |
| | | |
| | | /** |
| | | * æ°å¢æ ¸ç®è§å |
| | | * |
| | | * @param accountingRules æ ¸ç®è§å |
| | | * @return ç»æ |
| | | */ |
| | | public int insertAccountingRules(AccountingRules accountingRules); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ ¸ç®è§å |
| | | * |
| | | * @param accountingRules æ ¸ç®è§å |
| | | * @return ç»æ |
| | | */ |
| | | public int updateAccountingRules(AccountingRules accountingRules); |
| | | |
| | | /** |
| | | * å 餿 ¸ç®è§å |
| | | * |
| | | * @param id æ ¸ç®è§åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteAccountingRulesById(Integer id); |
| | | |
| | | /** |
| | | * æ¹éå 餿 ¸ç®è§å |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteAccountingRulesByIds(Integer[] ids); |
| | | } |
| | |
| | | package com.ycl.platform.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.platform.domain.entity.CheckResult; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.platform.domain.query.CheckResultQuery; |
| | | import com.ycl.platform.domain.vo.CheckResultVO; |
| | | import com.ycl.platform.domain.form.CheckResultForm; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * èæ ¸ç»æMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * èæ ¸ç»æ Mapper æ¥å£ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-07 |
| | | */ |
| | | public interface CheckResultMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢èæ ¸ç»æ |
| | | * |
| | | * @param id èæ ¸ç»æä¸»é® |
| | | * @return èæ ¸ç»æ |
| | | */ |
| | | public CheckResult selectCheckResultById(Long id); |
| | | @Mapper |
| | | public interface CheckResultMapper extends BaseMapper<CheckResult> { |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸ç»æå表 |
| | | * |
| | | * @param checkResult èæ ¸ç»æ |
| | | * @return èæ ¸ç»æéå |
| | | * å页 |
| | | * @param page |
| | | * @param query |
| | | */ |
| | | public List<CheckResult> selectCheckResultList(CheckResult checkResult); |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸ç»æ |
| | | * |
| | | * @param checkResult èæ ¸ç»æ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertCheckResult(CheckResult checkResult); |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸ç»æ |
| | | * |
| | | * @param checkResult èæ ¸ç»æ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateCheckResult(CheckResult checkResult); |
| | | |
| | | /** |
| | | * å é¤èæ ¸ç»æ |
| | | * |
| | | * @param id èæ ¸ç»æä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteCheckResultById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸ç»æ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteCheckResultByIds(Long[] ids); |
| | | Page page(IPage page, @Param("query") CheckResultQuery query); |
| | | } |
| | |
| | | package com.ycl.platform.mapper; |
| | | |
| | | import com.ycl.platform.domain.entity.CheckRule; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.platform.domain.vo.CheckRuleVO; |
| | | import com.ycl.platform.domain.form.CheckRuleForm; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * èæ ¸è§åMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * èæ ¸è§å Mapper æ¥å£ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | public interface CheckRuleMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢èæ ¸è§å |
| | | * |
| | | * @param id èæ ¸è§åä¸»é® |
| | | * @return èæ ¸è§å |
| | | */ |
| | | public CheckRule selectCheckRuleById(Long id); |
| | | @Mapper |
| | | public interface CheckRuleMapper extends BaseMapper<CheckRule> { |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸è§åå表 |
| | | * |
| | | * @param checkRule èæ ¸è§å |
| | | * @return èæ ¸è§åéå |
| | | */ |
| | | public List<CheckRule> selectCheckRuleList(CheckRule checkRule); |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸è§å |
| | | * |
| | | * @param checkRule èæ ¸è§å |
| | | * @return ç»æ |
| | | */ |
| | | public int insertCheckRule(CheckRule checkRule); |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸è§å |
| | | * |
| | | * @param checkRule èæ ¸è§å |
| | | * @return ç»æ |
| | | */ |
| | | public int updateCheckRule(CheckRule checkRule); |
| | | |
| | | /** |
| | | * å é¤èæ ¸è§å |
| | | * |
| | | * @param id èæ ¸è§åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteCheckRuleById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸è§å |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteCheckRuleByIds(Long[] ids); |
| | | } |
| | |
| | | package com.ycl.platform.mapper; |
| | | |
| | | import com.ycl.platform.domain.entity.CheckTemplate; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.platform.domain.vo.CheckTemplateVO; |
| | | import com.ycl.platform.domain.form.CheckTemplateForm; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * èæ ¸æ¨¡æ¿Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * èæ ¸æ¨¡æ¿ Mapper æ¥å£ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | public interface CheckTemplateMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢èæ ¸æ¨¡æ¿ |
| | | * |
| | | * @param id èæ ¸æ¨¡æ¿ä¸»é® |
| | | * @return èæ ¸æ¨¡æ¿ |
| | | */ |
| | | public CheckTemplate selectCheckTemplateById(Long id); |
| | | @Mapper |
| | | public interface CheckTemplateMapper extends BaseMapper<CheckTemplate> { |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸æ¨¡æ¿å表 |
| | | * |
| | | * @param checkTemplate èæ ¸æ¨¡æ¿ |
| | | * @return èæ ¸æ¨¡æ¿éå |
| | | */ |
| | | public List<CheckTemplate> selectCheckTemplateList(CheckTemplate checkTemplate); |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸æ¨¡æ¿ |
| | | * |
| | | * @param checkTemplate èæ ¸æ¨¡æ¿ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertCheckTemplate(CheckTemplate checkTemplate); |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸æ¨¡æ¿ |
| | | * |
| | | * @param checkTemplate èæ ¸æ¨¡æ¿ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateCheckTemplate(CheckTemplate checkTemplate); |
| | | |
| | | /** |
| | | * å é¤èæ ¸æ¨¡æ¿ |
| | | * |
| | | * @param id èæ ¸æ¨¡æ¿ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteCheckTemplateById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸æ¨¡æ¿ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteCheckTemplateByIds(Long[] ids); |
| | | } |
| | |
| | | package com.ycl.platform.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.platform.domain.entity.CheckTemplateRule; |
| | | |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * èæ ¸æ¨¡æ¿-è§åä¸é´Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * @authorï¼xp |
| | | * @dateï¼2024/3/8 9:18 |
| | | */ |
| | | public interface CheckTemplateRuleMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢èæ ¸æ¨¡æ¿-è§åä¸é´ |
| | | * |
| | | * @param id èæ ¸æ¨¡æ¿-è§åä¸é´ä¸»é® |
| | | * @return èæ ¸æ¨¡æ¿-è§åä¸é´ |
| | | */ |
| | | public CheckTemplateRule selectCheckTemplateRuleById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸æ¨¡æ¿-è§åä¸é´å表 |
| | | * |
| | | * @param checkTemplateRule èæ ¸æ¨¡æ¿-è§åä¸é´ |
| | | * @return èæ ¸æ¨¡æ¿-è§åä¸é´éå |
| | | */ |
| | | public List<CheckTemplateRule> selectCheckTemplateRuleList(CheckTemplateRule checkTemplateRule); |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸æ¨¡æ¿-è§åä¸é´ |
| | | * |
| | | * @param checkTemplateRule èæ ¸æ¨¡æ¿-è§åä¸é´ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertCheckTemplateRule(CheckTemplateRule checkTemplateRule); |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸æ¨¡æ¿-è§åä¸é´ |
| | | * |
| | | * @param checkTemplateRule èæ ¸æ¨¡æ¿-è§åä¸é´ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateCheckTemplateRule(CheckTemplateRule checkTemplateRule); |
| | | |
| | | /** |
| | | * å é¤èæ ¸æ¨¡æ¿-è§åä¸é´ |
| | | * |
| | | * @param id èæ ¸æ¨¡æ¿-è§åä¸é´ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteCheckTemplateRuleById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸æ¨¡æ¿-è§åä¸é´ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteCheckTemplateRuleByIds(Long[] ids); |
| | | @Mapper |
| | | public interface CheckTemplateRuleMapper extends BaseMapper<CheckTemplateRule> { |
| | | } |
New file |
| | |
| | | package com.ycl.platform.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.platform.domain.entity.DefaultAuditing; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.platform.domain.query.DefaultAuditingQuery; |
| | | import com.ycl.platform.domain.vo.DefaultAuditingVO; |
| | | import com.ycl.platform.domain.form.DefaultAuditingForm; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * è¿è§å®¡æ ¸ Mapper æ¥å£ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Mapper |
| | | public interface DefaultAuditingMapper extends BaseMapper<DefaultAuditing> { |
| | | |
| | | Page page(IPage page, @Param("query") DefaultAuditingQuery query); |
| | | } |
| | | |
| | |
| | | package com.ycl.platform.mapper; |
| | | |
| | | import com.ycl.platform.domain.entity.DefaultRule; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.platform.domain.vo.DefaultRuleVO; |
| | | import com.ycl.platform.domain.form.DefaultRuleForm; |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * è¿çº¦è§åMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * è¿çº¦è§å Mapper æ¥å£ |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | public interface DefaultRuleMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è¿çº¦è§å |
| | | * |
| | | * @param id è¿çº¦è§åä¸»é® |
| | | * @return è¿çº¦è§å |
| | | */ |
| | | public DefaultRule selectDefaultRuleById(Long id); |
| | | @Mapper |
| | | public interface DefaultRuleMapper extends BaseMapper<DefaultRule> { |
| | | |
| | | /** |
| | | * æ¥è¯¢è¿çº¦è§åå表 |
| | | * |
| | | * @param defaultRule è¿çº¦è§å |
| | | * @return è¿çº¦è§åéå |
| | | */ |
| | | public List<DefaultRule> selectDefaultRuleList(DefaultRule defaultRule); |
| | | |
| | | /** |
| | | * æ°å¢è¿çº¦è§å |
| | | * |
| | | * @param defaultRule è¿çº¦è§å |
| | | * @return ç»æ |
| | | */ |
| | | public int insertDefaultRule(DefaultRule defaultRule); |
| | | |
| | | /** |
| | | * ä¿®æ¹è¿çº¦è§å |
| | | * |
| | | * @param defaultRule è¿çº¦è§å |
| | | * @return ç»æ |
| | | */ |
| | | public int updateDefaultRule(DefaultRule defaultRule); |
| | | |
| | | /** |
| | | * å é¤è¿çº¦è§å |
| | | * |
| | | * @param id è¿çº¦è§åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDefaultRuleById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤è¿çº¦è§å |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteDefaultRuleByIds(Long[] ids); |
| | | } |
New file |
| | |
| | | package com.ycl.platform.mapper; |
| | | |
| | | import com.ycl.platform.domain.entity.TCheckPublish; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸åå¸Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-07 |
| | | */ |
| | | public interface TCheckPublishMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢èæ ¸åå¸ |
| | | * |
| | | * @param id èæ ¸åå¸ä¸»é® |
| | | * @return èæ ¸åå¸ |
| | | */ |
| | | public TCheckPublish selectTCheckPublishById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸åå¸å表 |
| | | * |
| | | * @param tCheckPublish èæ ¸åå¸ |
| | | * @return èæ ¸åå¸éå |
| | | */ |
| | | public List<TCheckPublish> selectTCheckPublishList(TCheckPublish tCheckPublish); |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸åå¸ |
| | | * |
| | | * @param tCheckPublish èæ ¸åå¸ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertTCheckPublish(TCheckPublish tCheckPublish); |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸åå¸ |
| | | * |
| | | * @param tCheckPublish èæ ¸åå¸ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateTCheckPublish(TCheckPublish tCheckPublish); |
| | | |
| | | /** |
| | | * å é¤èæ ¸åå¸ |
| | | * |
| | | * @param id èæ ¸åå¸ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTCheckPublishById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸åå¸ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTCheckPublishByIds(Long[] ids); |
| | | } |
New file |
| | |
| | | package com.ycl.platform.mapper; |
| | | |
| | | import com.ycl.platform.domain.entity.TExamineScore; |
| | | import com.ycl.platform.domain.vo.TExamineScoreVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸è®¡åMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-13 |
| | | */ |
| | | public interface TExamineScoreMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢èæ ¸è®¡å |
| | | * |
| | | * @param id èæ ¸è®¡åä¸»é® |
| | | * @return èæ ¸è®¡å |
| | | */ |
| | | public TExamineScore selectTExamineScoreById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸è®¡åå表 |
| | | * |
| | | * @param tExamineScore èæ ¸è®¡å |
| | | * @return èæ ¸è®¡åéå |
| | | */ |
| | | public List<TExamineScoreVO> selectTExamineScoreList(TExamineScore tExamineScore); |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸è®¡å |
| | | * |
| | | * @param tExamineScore èæ ¸è®¡å |
| | | * @return ç»æ |
| | | */ |
| | | public int insertTExamineScore(TExamineScore tExamineScore); |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸è®¡å |
| | | * |
| | | * @param tExamineScore èæ ¸è®¡å |
| | | * @return ç»æ |
| | | */ |
| | | public int updateTExamineScore(TExamineScore tExamineScore); |
| | | |
| | | /** |
| | | * å é¤èæ ¸è®¡å |
| | | * |
| | | * @param id èæ ¸è®¡åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTExamineScoreById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸è®¡å |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTExamineScoreByIds(Long[] ids); |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service; |
| | | |
| | | import com.ycl.platform.domain.entity.CheckResult; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.platform.domain.form.ManualScoreForm; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.platform.domain.form.CheckResultForm; |
| | | import com.ycl.platform.domain.query.CheckResultQuery; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸ç»æ æå¡ç±» |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-07 |
| | | */ |
| | | public interface CheckResultService extends IService<CheckResult> { |
| | | |
| | | /** |
| | | * æ·»å |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(CheckResultForm form); |
| | | |
| | | /** |
| | | * ä¿®æ¹ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(CheckResultForm form); |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * idå é¤ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(CheckResultQuery query); |
| | | |
| | | /** |
| | | * æ ¹æ®idæ¥æ¾ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(String id); |
| | | |
| | | /** |
| | | * å表 |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | |
| | | /** |
| | | * 人工æå |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result manualScore(ManualScoreForm form); |
| | | |
| | | /** |
| | | * idåå¸ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result publishById(String id); |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service; |
| | | |
| | | import com.ycl.platform.domain.entity.CheckRule; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.platform.domain.form.CheckRuleForm; |
| | | import com.ycl.platform.domain.query.CheckRuleQuery; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸è§å æå¡ç±» |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | public interface CheckRuleService extends IService<CheckRule> { |
| | | |
| | | /** |
| | | * æ·»å |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(CheckRuleForm form); |
| | | |
| | | /** |
| | | * ä¿®æ¹ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(CheckRuleForm form); |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * idå é¤ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(CheckRuleQuery query); |
| | | |
| | | /** |
| | | * æ ¹æ®idæ¥æ¾ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(String id); |
| | | |
| | | /** |
| | | * å表 |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service; |
| | | |
| | | import com.ycl.platform.domain.entity.CheckTemplate; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.platform.domain.form.CheckTemplateForm; |
| | | import com.ycl.platform.domain.query.CheckTemplateQuery; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸æ¨¡æ¿ æå¡ç±» |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | public interface CheckTemplateService extends IService<CheckTemplate> { |
| | | |
| | | /** |
| | | * æ·»å |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(CheckTemplateForm form); |
| | | |
| | | /** |
| | | * ä¿®æ¹ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(CheckTemplateForm form); |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * idå é¤ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(CheckTemplateQuery query); |
| | | |
| | | /** |
| | | * æ ¹æ®idæ¥æ¾ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(String id); |
| | | |
| | | /** |
| | | * å表 |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service; |
| | | |
| | | import com.ycl.platform.domain.entity.DefaultAuditing; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.platform.domain.form.DefaultAuditForm; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.platform.domain.form.DefaultAuditingForm; |
| | | import com.ycl.platform.domain.query.DefaultAuditingQuery; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿è§å®¡æ ¸ æå¡ç±» |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | public interface DefaultAuditingService extends IService<DefaultAuditing> { |
| | | |
| | | /** |
| | | * æ·»å |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(DefaultAuditingForm form); |
| | | |
| | | /** |
| | | * ä¿®æ¹ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(DefaultAuditingForm form); |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * idå é¤ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(DefaultAuditingQuery query); |
| | | |
| | | /** |
| | | * æ ¹æ®idæ¥æ¾ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(String id); |
| | | |
| | | /** |
| | | * å表 |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | |
| | | /** |
| | | * å®¡æ ¸ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result auditing(DefaultAuditForm form); |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service; |
| | | |
| | | import com.ycl.platform.domain.entity.DefaultRule; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ycl.platform.domain.form.DefaultRuleSetForm; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.platform.domain.form.DefaultRuleForm; |
| | | import com.ycl.platform.domain.query.DefaultRuleQuery; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿çº¦è§å æå¡ç±» |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | public interface DefaultRuleService extends IService<DefaultRule> { |
| | | |
| | | /** |
| | | * æ·»å |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result add(DefaultRuleForm form); |
| | | |
| | | /** |
| | | * ä¿®æ¹ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result update(DefaultRuleForm form); |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Result remove(List<String> ids); |
| | | |
| | | /** |
| | | * idå é¤ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result removeById(String id); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * @param query |
| | | * @return |
| | | */ |
| | | Result page(DefaultRuleQuery query); |
| | | |
| | | /** |
| | | * æ ¹æ®idæ¥æ¾ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | Result detail(String id); |
| | | |
| | | /** |
| | | * å表 |
| | | * @return |
| | | */ |
| | | Result all(); |
| | | |
| | | /** |
| | | * å¯ç¨/åç¨ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | Result set(DefaultRuleSetForm form); |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service; |
| | | |
| | | |
| | | import com.ycl.platform.domain.entity.AccountingRules; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ¸ç®è§åServiceæ¥å£ |
| | | * |
| | | * @author gonghl |
| | | * @date 2024-03-21 |
| | | */ |
| | | public interface IAccountingRulesService { |
| | | /** |
| | | * æ¥è¯¢æ ¸ç®è§å |
| | | * |
| | | * @param id æ ¸ç®è§åä¸»é® |
| | | * @return æ ¸ç®è§å |
| | | */ |
| | | public AccountingRules selectAccountingRulesById(Integer id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ¸ç®è§åå表 |
| | | * |
| | | * @param accountingRules æ ¸ç®è§å |
| | | * @return æ ¸ç®è§åéå |
| | | */ |
| | | public List<AccountingRules> selectAccountingRulesList(AccountingRules accountingRules); |
| | | |
| | | /** |
| | | * æ°å¢æ ¸ç®è§å |
| | | * |
| | | * @param accountingRules æ ¸ç®è§å |
| | | * @return ç»æ |
| | | */ |
| | | public int insertAccountingRules(AccountingRules accountingRules); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ ¸ç®è§å |
| | | * |
| | | * @param accountingRules æ ¸ç®è§å |
| | | * @return ç»æ |
| | | */ |
| | | public int updateAccountingRules(AccountingRules accountingRules); |
| | | |
| | | /** |
| | | * æ¹éå 餿 ¸ç®è§å |
| | | * |
| | | * @param ids éè¦å é¤çæ ¸ç®è§å主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteAccountingRulesByIds(Integer[] ids); |
| | | |
| | | /** |
| | | * å 餿 ¸ç®è§åä¿¡æ¯ |
| | | * |
| | | * @param id æ ¸ç®è§åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteAccountingRulesById(Integer id); |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service; |
| | | |
| | | import com.ycl.platform.domain.entity.TCheckPublish; |
| | | import com.ycl.system.Result; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸åå¸Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-07 |
| | | */ |
| | | public interface ITCheckPublishService |
| | | { |
| | | /** |
| | | * æ¥è¯¢èæ ¸åå¸ |
| | | * |
| | | * @param id èæ ¸åå¸ä¸»é® |
| | | * @return èæ ¸åå¸ |
| | | */ |
| | | public TCheckPublish selectTCheckPublishById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸åå¸å表 |
| | | * |
| | | * @param tCheckPublish èæ ¸åå¸ |
| | | * @return èæ ¸åå¸éå |
| | | */ |
| | | public List<TCheckPublish> selectTCheckPublishList(TCheckPublish tCheckPublish); |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸åå¸ |
| | | * |
| | | * @param tCheckPublish èæ ¸åå¸ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertTCheckPublish(TCheckPublish tCheckPublish); |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸åå¸ |
| | | * |
| | | * @param tCheckPublish èæ ¸åå¸ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateTCheckPublish(TCheckPublish tCheckPublish); |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸åå¸ |
| | | * |
| | | * @param ids éè¦å é¤çèæ ¸åå¸ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTCheckPublishByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤èæ ¸åå¸ä¿¡æ¯ |
| | | * |
| | | * @param id èæ ¸åå¸ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTCheckPublishById(Long id); |
| | | |
| | | Result all(); |
| | | |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service; |
| | | |
| | | import com.ycl.platform.domain.entity.TExamineScore; |
| | | import com.ycl.platform.domain.vo.TExamineScoreVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸è®¡åServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-13 |
| | | */ |
| | | public interface ITExamineScoreService |
| | | { |
| | | /** |
| | | * æ¥è¯¢èæ ¸è®¡å |
| | | * |
| | | * @param id èæ ¸è®¡åä¸»é® |
| | | * @return èæ ¸è®¡å |
| | | */ |
| | | public TExamineScore selectTExamineScoreById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸è®¡åå表 |
| | | * |
| | | * @param tExamineScore èæ ¸è®¡å |
| | | * @return èæ ¸è®¡åéå |
| | | */ |
| | | public List<TExamineScoreVO> selectTExamineScoreList(TExamineScore tExamineScore); |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸è®¡å |
| | | * |
| | | * @param tExamineScore èæ ¸è®¡å |
| | | * @return ç»æ |
| | | */ |
| | | public int insertTExamineScore(TExamineScore tExamineScore); |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸è®¡å |
| | | * |
| | | * @param tExamineScore èæ ¸è®¡å |
| | | * @return ç»æ |
| | | */ |
| | | public int updateTExamineScore(TExamineScore tExamineScore); |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸è®¡å |
| | | * |
| | | * @param ids éè¦å é¤çèæ ¸è®¡å主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTExamineScoreByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤èæ ¸è®¡åä¿¡æ¯ |
| | | * |
| | | * @param id èæ ¸è®¡åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteTExamineScoreById(Long id); |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.ycl.platform.domain.entity.AccountingRules; |
| | | import com.ycl.platform.mapper.AccountingRulesMapper; |
| | | import com.ycl.platform.service.IAccountingRulesService; |
| | | import com.ycl.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ ¸ç®è§åServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author gonghl |
| | | * @date 2024-03-21 |
| | | */ |
| | | @Service |
| | | public class AccountingRulesServiceImpl implements IAccountingRulesService { |
| | | @Autowired |
| | | private AccountingRulesMapper accountingRulesMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ¸ç®è§å |
| | | * |
| | | * @param id æ ¸ç®è§åä¸»é® |
| | | * @return æ ¸ç®è§å |
| | | */ |
| | | @Override |
| | | public AccountingRules selectAccountingRulesById(Integer id) { |
| | | return accountingRulesMapper.selectAccountingRulesById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ ¸ç®è§åå表 |
| | | * |
| | | * @param accountingRules æ ¸ç®è§å |
| | | * @return æ ¸ç®è§å |
| | | */ |
| | | @Override |
| | | public List<AccountingRules> selectAccountingRulesList(AccountingRules accountingRules) { |
| | | return accountingRulesMapper.selectAccountingRulesList(accountingRules); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ ¸ç®è§å |
| | | * |
| | | * @param accountingRules æ ¸ç®è§å |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertAccountingRules(AccountingRules accountingRules) { |
| | | accountingRules.setCreateTime(DateUtils.getNowDate()); |
| | | accountingRules.setDeleted("0"); |
| | | return accountingRulesMapper.insertAccountingRules(accountingRules); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ ¸ç®è§å |
| | | * |
| | | * @param accountingRules æ ¸ç®è§å |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateAccountingRules(AccountingRules accountingRules) { |
| | | accountingRules.setUpdateTime(DateUtils.getNowDate()); |
| | | return accountingRulesMapper.updateAccountingRules(accountingRules); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿 ¸ç®è§å |
| | | * |
| | | * @param ids éè¦å é¤çæ ¸ç®è§åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteAccountingRulesByIds(Integer[] ids) { |
| | | return accountingRulesMapper.deleteAccountingRulesByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿 ¸ç®è§åä¿¡æ¯ |
| | | * |
| | | * @param id æ ¸ç®è§åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteAccountingRulesById(Integer id) { |
| | | return accountingRulesMapper.deleteAccountingRulesById(id); |
| | | } |
| | | } |
| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ycl.exception.ServiceException; |
| | | import com.ycl.platform.domain.entity.CheckResult; |
| | | import com.ycl.platform.domain.form.ManualScoreForm; |
| | | import com.ycl.platform.mapper.CheckResultMapper; |
| | | import com.ycl.platform.service.ICheckResultService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import utils.DateUtils; |
| | | |
| | | import com.ycl.platform.service.CheckResultService; |
| | | import com.ycl.system.Result; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.platform.domain.form.CheckResultForm; |
| | | import com.ycl.platform.domain.vo.CheckResultVO; |
| | | import com.ycl.platform.domain.query.CheckResultQuery; |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.system.page.PageUtil; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.Assert; |
| | | import java.util.ArrayList; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | /** |
| | | * èæ ¸ç»æServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * èæ ¸ç»æ æå¡å®ç°ç±» |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-07 |
| | | */ |
| | | @Service |
| | | public class CheckResultServiceImpl implements ICheckResultService |
| | | { |
| | | @Autowired |
| | | private CheckResultMapper checkResultMapper; |
| | | @RequiredArgsConstructor |
| | | public class CheckResultServiceImpl extends ServiceImpl<CheckResultMapper, CheckResult> implements CheckResultService { |
| | | |
| | | private final CheckResultMapper checkResultMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸ç»æ |
| | | * |
| | | * @param id èæ ¸ç»æä¸»é® |
| | | * @return èæ ¸ç»æ |
| | | * æ·»å |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public CheckResult selectCheckResultById(Long id) |
| | | { |
| | | return checkResultMapper.selectCheckResultById(id); |
| | | public Result add(CheckResultForm form) { |
| | | CheckResult entity = CheckResultForm.getEntityByForm(form, null); |
| | | if(baseMapper.insert(entity) > 0) { |
| | | return Result.ok("æ·»å æå"); |
| | | } |
| | | return Result.error("æ·»å 失败"); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸ç»æå表 |
| | | * |
| | | * @param checkResult èæ ¸ç»æ |
| | | * @return èæ ¸ç»æ |
| | | * ä¿®æ¹ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<CheckResult> selectCheckResultList(CheckResult checkResult) |
| | | { |
| | | return checkResultMapper.selectCheckResultList(checkResult); |
| | | public Result update(CheckResultForm form) { |
| | | |
| | | CheckResult entity = baseMapper.selectById(form.getId()); |
| | | |
| | | // 为空æIllegalArgumentExceptionï¼åå
¨å±å¼å¸¸å¤ç |
| | | Assert.notNull(entity, "è®°å½ä¸åå¨"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | if (baseMapper.updateById(entity) > 0) { |
| | | return Result.ok("ä¿®æ¹æå"); |
| | | } |
| | | return Result.error("ä¿®æ¹å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸ç»æ |
| | | * |
| | | * @param checkResult èæ ¸ç»æ |
| | | * @return ç»æ |
| | | * æ¹éå é¤ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int insertCheckResult(CheckResult checkResult) |
| | | { |
| | | return checkResultMapper.insertCheckResult(checkResult); |
| | | public Result remove(List<String> ids) { |
| | | if(baseMapper.deleteBatchIds(ids) > 0) { |
| | | return Result.ok("å 餿å"); |
| | | } |
| | | return Result.error("å é¤å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸ç»æ |
| | | * |
| | | * @param checkResult èæ ¸ç»æ |
| | | * @return ç»æ |
| | | * idå é¤ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int updateCheckResult(CheckResult checkResult) |
| | | { |
| | | checkResult.setUpdateTime(DateUtils.getNowDate()); |
| | | return checkResultMapper.updateCheckResult(checkResult); |
| | | public Result removeById(String id) { |
| | | if(baseMapper.deleteById(id) > 0) { |
| | | return Result.ok("å 餿å"); |
| | | } |
| | | return Result.error("å é¤å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸ç»æ |
| | | * |
| | | * @param ids éè¦å é¤çèæ ¸ç»æä¸»é® |
| | | * @return ç»æ |
| | | * å页æ¥è¯¢ |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int deleteCheckResultByIds(Long[] ids) |
| | | { |
| | | return checkResultMapper.deleteCheckResultByIds(ids); |
| | | public Result page(CheckResultQuery query) { |
| | | query.setTime(); |
| | | IPage page = PageUtil.getPage(query, CheckResult.class); |
| | | baseMapper.page(page, query); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èæ ¸ç»æä¿¡æ¯ |
| | | * |
| | | * @param id èæ ¸ç»æä¸»é® |
| | | * @return ç»æ |
| | | * æ ¹æ®idæ¥æ¾ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int deleteCheckResultById(Long id) |
| | | { |
| | | return checkResultMapper.deleteCheckResultById(id); |
| | | public Result detail(String id) { |
| | | |
| | | CheckResult entity = baseMapper.selectById(id); |
| | | Assert.notNull(entity, "è®°å½ä¸åå¨"); |
| | | CheckResultVO vo = CheckResultVO.getVoByEntity(entity, null); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * å表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<CheckResult> entities = baseMapper.selectList(null); |
| | | List<CheckResultVO> vos = entities.stream() |
| | | .map( |
| | | entity -> CheckResultVO.getVoByEntity(entity, null) |
| | | ) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | |
| | | @Override |
| | | public Result manualScore(ManualScoreForm form) { |
| | | CheckResult checkResult = baseMapper.selectById(form.getId()); |
| | | if (Objects.isNull(checkResult)) { |
| | | throw new ServiceException("èæ ¸ç»æä¸åå¨"); |
| | | } |
| | | checkResult.setManualScore(form.getManualScore()); |
| | | checkResult.setCheckScore(form.getManualScore().add(checkResult.getSystemScore())); |
| | | baseMapper.updateById(checkResult); |
| | | return Result.ok(); |
| | | } |
| | | |
| | | @Override |
| | | public Result publishById(String id) { |
| | | CheckResult checkResult = baseMapper.selectById(id); |
| | | if(Objects.equals(1, checkResult.getPublish())) { |
| | | checkResult.setPublish(0); |
| | | } else { |
| | | checkResult.setPublish(1); |
| | | } |
| | | if(baseMapper.updateById(checkResult) > 0) { |
| | | return Result.ok("å叿å"); |
| | | } |
| | | return Result.error("åå¸å¤±è´¥"); |
| | | } |
| | | } |
| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.ycl.platform.base.BaseSelect; |
| | | import com.ycl.platform.domain.entity.CheckRule; |
| | | import com.ycl.platform.domain.entity.YwUnit; |
| | | import com.ycl.platform.mapper.CheckRuleMapper; |
| | | import com.ycl.platform.service.ICheckRuleService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import utils.DateUtils; |
| | | |
| | | import com.ycl.platform.service.CheckRuleService; |
| | | import com.ycl.system.Result; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.platform.domain.form.CheckRuleForm; |
| | | import com.ycl.platform.domain.vo.CheckRuleVO; |
| | | import com.ycl.platform.domain.query.CheckRuleQuery; |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.system.page.PageUtil; |
| | | import com.ycl.utils.DateUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.Assert; |
| | | import java.util.ArrayList; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | /** |
| | | * èæ ¸è§åServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * èæ ¸è§å æå¡å®ç°ç±» |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | @Service |
| | | public class CheckRuleServiceImpl implements ICheckRuleService |
| | | { |
| | | @Autowired |
| | | private CheckRuleMapper checkRuleMapper; |
| | | @RequiredArgsConstructor |
| | | public class CheckRuleServiceImpl extends ServiceImpl<CheckRuleMapper, CheckRule> implements CheckRuleService { |
| | | |
| | | private final CheckRuleMapper checkRuleMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸è§å |
| | | * |
| | | * @param id èæ ¸è§åä¸»é® |
| | | * @return èæ ¸è§å |
| | | * æ·»å |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public CheckRule selectCheckRuleById(Long id) |
| | | { |
| | | return checkRuleMapper.selectCheckRuleById(id); |
| | | public Result add(CheckRuleForm form) { |
| | | CheckRule entity = CheckRuleForm.getEntityByForm(form, null); |
| | | if(baseMapper.insert(entity) > 0) { |
| | | return Result.ok("æ·»å æå"); |
| | | } |
| | | return Result.error("æ·»å 失败"); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸è§åå表 |
| | | * |
| | | * @param checkRule èæ ¸è§å |
| | | * @return èæ ¸è§å |
| | | * ä¿®æ¹ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<CheckRule> selectCheckRuleList(CheckRule checkRule) |
| | | { |
| | | return checkRuleMapper.selectCheckRuleList(checkRule); |
| | | public Result update(CheckRuleForm form) { |
| | | |
| | | CheckRule entity = baseMapper.selectById(form.getId()); |
| | | |
| | | // 为空æIllegalArgumentExceptionï¼åå
¨å±å¼å¸¸å¤ç |
| | | Assert.notNull(entity, "è®°å½ä¸åå¨"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | if (baseMapper.updateById(entity) > 0) { |
| | | return Result.ok("ä¿®æ¹æå"); |
| | | } |
| | | return Result.error("ä¿®æ¹å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸è§å |
| | | * |
| | | * @param checkRule èæ ¸è§å |
| | | * @return ç»æ |
| | | * æ¹éå é¤ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int insertCheckRule(CheckRule checkRule) |
| | | { |
| | | checkRule.setCreateTime(DateUtils.getNowDate()); |
| | | return checkRuleMapper.insertCheckRule(checkRule); |
| | | public Result remove(List<String> ids) { |
| | | if(baseMapper.deleteBatchIds(ids) > 0) { |
| | | return Result.ok("å 餿å"); |
| | | } |
| | | return Result.error("å é¤å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸è§å |
| | | * |
| | | * @param checkRule èæ ¸è§å |
| | | * @return ç»æ |
| | | * idå é¤ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int updateCheckRule(CheckRule checkRule) |
| | | { |
| | | checkRule.setUpdateTime(DateUtils.getNowDate()); |
| | | return checkRuleMapper.updateCheckRule(checkRule); |
| | | public Result removeById(String id) { |
| | | if(baseMapper.deleteById(id) > 0) { |
| | | return Result.ok("å 餿å"); |
| | | } |
| | | return Result.error("å é¤å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸è§å |
| | | * |
| | | * @param ids éè¦å é¤çèæ ¸è§åä¸»é® |
| | | * @return ç»æ |
| | | * å页æ¥è¯¢ |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int deleteCheckRuleByIds(Long[] ids) |
| | | { |
| | | return checkRuleMapper.deleteCheckRuleByIds(ids); |
| | | public Result page(CheckRuleQuery query) { |
| | | |
| | | IPage<CheckRule> page = new LambdaQueryChainWrapper<>(baseMapper) |
| | | .like(StringUtils.hasText(query.getRuleName()), CheckRule::getRuleName, query.getRuleName()) |
| | | .between(Objects.nonNull(query.getStart()) && Objects.nonNull(query.getEnd()), |
| | | CheckRule::getCreateTime, |
| | | DateUtils.getDayStart(query.getStart()), |
| | | DateUtils.getDayEnd(query.getEnd())) |
| | | .eq(Objects.nonNull(query.getAuditState()),CheckRule::getAuditState, query.getAuditState()) |
| | | .orderByDesc(CheckRule::getCreateTime) |
| | | .page(PageUtil.getPage(query, CheckRule.class)); |
| | | |
| | | List<CheckRuleVO> vos = page.getRecords().stream() |
| | | .map( |
| | | entity -> CheckRuleVO.getVoByEntity(entity, null) |
| | | ) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èæ ¸è§åä¿¡æ¯ |
| | | * |
| | | * @param id èæ ¸è§åä¸»é® |
| | | * @return ç»æ |
| | | * æ ¹æ®idæ¥æ¾ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int deleteCheckRuleById(Long id) |
| | | { |
| | | return checkRuleMapper.deleteCheckRuleById(id); |
| | | public Result detail(String id) { |
| | | |
| | | CheckRule entity = baseMapper.selectById(id); |
| | | Assert.notNull(entity, "è®°å½ä¸åå¨"); |
| | | CheckRuleVO vo = CheckRuleVO.getVoByEntity(entity, null); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * å表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<CheckRule> entities = baseMapper.selectList(null); |
| | | List<BaseSelect> vos = entities.stream() |
| | | .map( |
| | | entity -> { |
| | | BaseSelect vo = new BaseSelect(); |
| | | vo.setId(entity.getId()); |
| | | vo.setValue(entity.getRuleName()); |
| | | return vo; |
| | | } |
| | | ) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | } |
| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper; |
| | | import com.ycl.platform.base.BaseSelect; |
| | | import com.ycl.platform.domain.entity.CheckTemplate; |
| | | import com.ycl.platform.domain.entity.CheckTemplateRule; |
| | | import com.ycl.platform.domain.entity.YwUnit; |
| | | import com.ycl.platform.domain.vo.RuleItemVO; |
| | | import com.ycl.platform.mapper.CheckTemplateMapper; |
| | | import com.ycl.platform.service.ICheckTemplateService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import utils.DateUtils; |
| | | |
| | | import com.ycl.platform.mapper.CheckTemplateRuleMapper; |
| | | import com.ycl.platform.service.CheckTemplateService; |
| | | import com.ycl.platform.service.YwUnitService; |
| | | import com.ycl.system.Result; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.platform.domain.form.CheckTemplateForm; |
| | | import com.ycl.platform.domain.vo.CheckTemplateVO; |
| | | import com.ycl.platform.domain.query.CheckTemplateQuery; |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.system.page.PageUtil; |
| | | import com.ycl.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.Assert; |
| | | import java.util.ArrayList; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | /** |
| | | * èæ ¸æ¨¡æ¿Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * èæ ¸æ¨¡æ¿ æå¡å®ç°ç±» |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-06 |
| | | */ |
| | | @Service |
| | | public class CheckTemplateServiceImpl implements ICheckTemplateService |
| | | { |
| | | @RequiredArgsConstructor |
| | | public class CheckTemplateServiceImpl extends ServiceImpl<CheckTemplateMapper, CheckTemplate> implements CheckTemplateService { |
| | | |
| | | private final CheckTemplateMapper checkTemplateMapper; |
| | | private final CheckTemplateRuleMapper checkTemplateRuleMapper; |
| | | @Autowired |
| | | private CheckTemplateMapper checkTemplateMapper; |
| | | |
| | | private YwUnitService unitService; |
| | | /** |
| | | * æ¥è¯¢èæ ¸æ¨¡æ¿ |
| | | * |
| | | * @param id èæ ¸æ¨¡æ¿ä¸»é® |
| | | * @return èæ ¸æ¨¡æ¿ |
| | | * æ·»å |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public CheckTemplate selectCheckTemplateById(Long id) |
| | | { |
| | | return checkTemplateMapper.selectCheckTemplateById(id); |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result add(CheckTemplateForm form) { |
| | | CheckTemplate entity = CheckTemplateForm.getEntityByForm(form, null); |
| | | baseMapper.insert(entity); |
| | | form.getRuleFormList().stream().forEach(rule -> { |
| | | CheckTemplateRule checkTemplateRule = new CheckTemplateRule(); |
| | | checkTemplateRule.setCheckTemplateId(entity.getId()); |
| | | checkTemplateRule.setCheckRuleId(rule.getRuleId()); |
| | | checkTemplateRule.setWeight(rule.getWeight()); |
| | | checkTemplateRuleMapper.insert(checkTemplateRule); |
| | | }); |
| | | return Result.ok("æ·»å æå"); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸æ¨¡æ¿å表 |
| | | * |
| | | * @param checkTemplate èæ ¸æ¨¡æ¿ |
| | | * @return èæ ¸æ¨¡æ¿ |
| | | * ä¿®æ¹ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<CheckTemplate> selectCheckTemplateList(CheckTemplate checkTemplate) |
| | | { |
| | | return checkTemplateMapper.selectCheckTemplateList(checkTemplate); |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result update(CheckTemplateForm form) { |
| | | |
| | | CheckTemplate entity = baseMapper.selectById(form.getId()); |
| | | // 为空æIllegalArgumentExceptionï¼åå
¨å±å¼å¸¸å¤ç |
| | | Assert.notNull(entity, "è®°å½ä¸åå¨"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | baseMapper.updateById(entity); |
| | | |
| | | // å
å é¤åå
ç对åºå
³ç³» |
| | | new LambdaUpdateChainWrapper<>(checkTemplateRuleMapper) |
| | | .eq(CheckTemplateRule::getCheckTemplateId, form.getId()) |
| | | .remove(); |
| | | // åéæ°æ·»å |
| | | form.getRuleFormList().stream().forEach(rule -> { |
| | | CheckTemplateRule checkTemplateRule = new CheckTemplateRule(); |
| | | checkTemplateRule.setCheckTemplateId(entity.getId()); |
| | | checkTemplateRule.setCheckRuleId(rule.getRuleId()); |
| | | checkTemplateRule.setWeight(rule.getWeight()); |
| | | checkTemplateRuleMapper.insert(checkTemplateRule); |
| | | }); |
| | | return Result.ok("ä¿®æ¹æå"); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸æ¨¡æ¿ |
| | | * |
| | | * @param checkTemplate èæ ¸æ¨¡æ¿ |
| | | * @return ç»æ |
| | | * æ¹éå é¤ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int insertCheckTemplate(CheckTemplate checkTemplate) |
| | | { |
| | | checkTemplate.setCreateTime(DateUtils.getNowDate()); |
| | | return checkTemplateMapper.insertCheckTemplate(checkTemplate); |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result remove(List<String> ids) { |
| | | baseMapper.deleteBatchIds(ids); |
| | | new LambdaUpdateChainWrapper<>(checkTemplateRuleMapper) |
| | | .in(CheckTemplateRule::getCheckTemplateId, ids) |
| | | .remove(); |
| | | return Result.ok("å 餿å"); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸æ¨¡æ¿ |
| | | * |
| | | * @param checkTemplate èæ ¸æ¨¡æ¿ |
| | | * @return ç»æ |
| | | * idå é¤ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int updateCheckTemplate(CheckTemplate checkTemplate) |
| | | { |
| | | checkTemplate.setUpdateTime(DateUtils.getNowDate()); |
| | | return checkTemplateMapper.updateCheckTemplate(checkTemplate); |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Result removeById(String id) { |
| | | baseMapper.deleteById(id); |
| | | new LambdaUpdateChainWrapper<>(checkTemplateRuleMapper) |
| | | .eq(CheckTemplateRule::getCheckTemplateId, id) |
| | | .remove(); |
| | | return Result.ok("å 餿å"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸æ¨¡æ¿ |
| | | * |
| | | * @param ids éè¦å é¤çèæ ¸æ¨¡æ¿ä¸»é® |
| | | * @return ç»æ |
| | | * å页æ¥è¯¢ |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int deleteCheckTemplateByIds(Long[] ids) |
| | | { |
| | | return checkTemplateMapper.deleteCheckTemplateByIds(ids); |
| | | public Result page(CheckTemplateQuery query) { |
| | | IPage<CheckTemplate> page = new LambdaQueryChainWrapper<>(baseMapper) |
| | | .like(StringUtils.hasText(query.getTemplateName()), CheckTemplate::getTemplateName, query.getTemplateName()) |
| | | .eq(StringUtils.hasText(query.getStatus()), CheckTemplate::getStatus, query.getStatus()) |
| | | .between(Objects.nonNull(query.getStart()) && Objects.nonNull(query.getEnd()), |
| | | CheckTemplate::getCreateTime, |
| | | DateUtils.getDayStart(query.getStart()), |
| | | DateUtils.getDayEnd(query.getEnd())) |
| | | .orderByDesc(CheckTemplate::getCreateTime) |
| | | .page(PageUtil.getPage(query, CheckTemplate.class)); |
| | | |
| | | List<CheckTemplateVO> vos = page.getRecords().stream() |
| | | .map( |
| | | entity -> CheckTemplateVO.getVoByEntity(entity, null) |
| | | // .setUnitName(unitService.getById(entity.getUnitId()).getUnitName()) |
| | | ) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èæ ¸æ¨¡æ¿ä¿¡æ¯ |
| | | * |
| | | * @param id èæ ¸æ¨¡æ¿ä¸»é® |
| | | * @return ç»æ |
| | | * æ ¹æ®idæ¥æ¾ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int deleteCheckTemplateById(Long id) |
| | | { |
| | | return checkTemplateMapper.deleteCheckTemplateById(id); |
| | | public Result detail(String id) { |
| | | |
| | | CheckTemplate entity = baseMapper.selectById(id); |
| | | Assert.notNull(entity, "è®°å½ä¸åå¨"); |
| | | CheckTemplateVO vo = CheckTemplateVO.getVoByEntity(entity, null); |
| | | |
| | | // æ¥èæ ¸è§å |
| | | List<CheckTemplateRule> ruleList = new LambdaQueryChainWrapper<>(checkTemplateRuleMapper) |
| | | .eq(CheckTemplateRule::getCheckTemplateId, entity.getId()) |
| | | .list(); |
| | | List<RuleItemVO> ruleVOS = ruleList.stream().map(rule -> { |
| | | RuleItemVO ruleItemVO = new RuleItemVO(); |
| | | ruleItemVO.setRuleId(rule.getCheckRuleId()); |
| | | ruleItemVO.setWeight(rule.getWeight()); |
| | | return ruleItemVO; |
| | | }).collect(Collectors.toList()); |
| | | vo.setRuleFormList(ruleVOS); |
| | | |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * å表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<CheckTemplate> entities = baseMapper.selectList(null); |
| | | List<BaseSelect> vos = entities.stream() |
| | | .map( |
| | | entity -> { |
| | | BaseSelect baseSelect = new BaseSelect(); |
| | | baseSelect.setId(entity.getId()); |
| | | baseSelect.setValue(entity.getTemplateName()); |
| | | return baseSelect; |
| | | } |
| | | ) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.ycl.exception.ServiceException; |
| | | import com.ycl.platform.domain.entity.DefaultAuditing; |
| | | import com.ycl.platform.domain.form.DefaultAuditForm; |
| | | import com.ycl.platform.mapper.DefaultAuditingMapper; |
| | | import com.ycl.platform.service.DefaultAuditingService; |
| | | import com.ycl.system.Result; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.platform.domain.form.DefaultAuditingForm; |
| | | import com.ycl.platform.domain.vo.DefaultAuditingVO; |
| | | import com.ycl.platform.domain.query.DefaultAuditingQuery; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.system.page.PageUtil; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.Assert; |
| | | import java.util.ArrayList; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import lombok.RequiredArgsConstructor; |
| | | |
| | | /** |
| | | * è¿è§å®¡æ ¸ æå¡å®ç°ç±» |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Service |
| | | @RequiredArgsConstructor |
| | | public class DefaultAuditingServiceImpl extends ServiceImpl<DefaultAuditingMapper, DefaultAuditing> implements DefaultAuditingService { |
| | | |
| | | private final DefaultAuditingMapper defaultAuditingMapper; |
| | | |
| | | /** |
| | | * æ·»å |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result add(DefaultAuditingForm form) { |
| | | DefaultAuditing entity = DefaultAuditingForm.getEntityByForm(form, null); |
| | | if(baseMapper.insert(entity) > 0) { |
| | | return Result.ok("æ·»å æå"); |
| | | } |
| | | return Result.error("æ·»å 失败"); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result update(DefaultAuditingForm form) { |
| | | |
| | | DefaultAuditing entity = baseMapper.selectById(form.getId()); |
| | | |
| | | // 为空æIllegalArgumentExceptionï¼åå
¨å±å¼å¸¸å¤ç |
| | | Assert.notNull(entity, "è®°å½ä¸åå¨"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | if (baseMapper.updateById(entity) > 0) { |
| | | return Result.ok("ä¿®æ¹æå"); |
| | | } |
| | | return Result.error("ä¿®æ¹å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result remove(List<String> ids) { |
| | | if(baseMapper.deleteBatchIds(ids) > 0) { |
| | | return Result.ok("å 餿å"); |
| | | } |
| | | return Result.error("å é¤å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * idå é¤ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result removeById(String id) { |
| | | if(baseMapper.deleteById(id) > 0) { |
| | | return Result.ok("å 餿å"); |
| | | } |
| | | return Result.error("å é¤å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result page(DefaultAuditingQuery query) { |
| | | query.setTime(); |
| | | IPage page = PageUtil.getPage(query, DefaultAuditing.class); |
| | | baseMapper.page(page, query); |
| | | return Result.ok().data(page.getRecords()).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * æ ¹æ®idæ¥æ¾ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result detail(String id) { |
| | | |
| | | DefaultAuditing entity = baseMapper.selectById(id); |
| | | Assert.notNull(entity, "è®°å½ä¸åå¨"); |
| | | DefaultAuditingVO vo = DefaultAuditingVO.getVoByEntity(entity, null); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * å表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<DefaultAuditing> entities = baseMapper.selectList(null); |
| | | List<DefaultAuditingVO> vos = entities.stream() |
| | | .map( |
| | | entity -> DefaultAuditingVO.getVoByEntity(entity, null) |
| | | ) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | |
| | | @Override |
| | | public Result auditing(DefaultAuditForm form) { |
| | | DefaultAuditing defaultAuditing = baseMapper.selectById(form.getId()); |
| | | if (Objects.isNull(defaultAuditing)) { |
| | | throw new ServiceException("该è¿çº¦ä¸åå¨"); |
| | | } |
| | | if ("pass".equals(form.getAuditingResult())) { |
| | | defaultAuditing.setAuditingStatus("å®¡æ ¸éè¿"); |
| | | } else { |
| | | defaultAuditing.setAuditingStatus("å®¡æ ¸æªéè¿"); |
| | | } |
| | | BeanUtils.copyProperties(form, defaultAuditing); |
| | | defaultAuditing.setAuditingTime(LocalDateTime.now()); |
| | | baseMapper.updateById(defaultAuditing); |
| | | return Result.ok("æä½æå"); |
| | | } |
| | | } |
| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.ycl.exception.ServiceException; |
| | | import com.ycl.platform.domain.entity.DefaultRule; |
| | | import com.ycl.platform.domain.entity.YwUnit; |
| | | import com.ycl.platform.domain.form.DefaultRuleSetForm; |
| | | import com.ycl.platform.mapper.DefaultRuleMapper; |
| | | import com.ycl.platform.service.IDefaultRuleService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import utils.DateUtils; |
| | | |
| | | import com.ycl.platform.service.DefaultRuleService; |
| | | import com.ycl.system.Result; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.platform.domain.form.DefaultRuleForm; |
| | | import com.ycl.platform.domain.vo.DefaultRuleVO; |
| | | import com.ycl.platform.domain.query.DefaultRuleQuery; |
| | | import java.util.List; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.ycl.system.page.PageUtil; |
| | | import com.ycl.utils.DateUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.Assert; |
| | | import java.util.ArrayList; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | /** |
| | | * è¿çº¦è§åServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-04-01 |
| | | * è¿çº¦è§å æå¡å®ç°ç±» |
| | | * |
| | | * @author xp |
| | | * @since 2024-03-05 |
| | | */ |
| | | @Service |
| | | public class DefaultRuleServiceImpl implements IDefaultRuleService |
| | | { |
| | | @Autowired |
| | | private DefaultRuleMapper defaultRuleMapper; |
| | | @RequiredArgsConstructor |
| | | public class DefaultRuleServiceImpl extends ServiceImpl<DefaultRuleMapper, DefaultRule> implements DefaultRuleService { |
| | | |
| | | private final DefaultRuleMapper defaultRuleMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢è¿çº¦è§å |
| | | * |
| | | * @param id è¿çº¦è§åä¸»é® |
| | | * @return è¿çº¦è§å |
| | | * æ·»å |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public DefaultRule selectDefaultRuleById(Long id) |
| | | { |
| | | return defaultRuleMapper.selectDefaultRuleById(id); |
| | | public Result add(DefaultRuleForm form) { |
| | | DefaultRule entity = DefaultRuleForm.getEntityByForm(form, null); |
| | | entity.setRuleStatus("æªå¯ç¨"); |
| | | if(baseMapper.insert(entity) > 0) { |
| | | return Result.ok("æ·»å æå"); |
| | | } |
| | | return Result.error("æ·»å 失败"); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢è¿çº¦è§åå表 |
| | | * |
| | | * @param defaultRule è¿çº¦è§å |
| | | * @return è¿çº¦è§å |
| | | * ä¿®æ¹ |
| | | * @param form |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<DefaultRule> selectDefaultRuleList(DefaultRule defaultRule) |
| | | { |
| | | return defaultRuleMapper.selectDefaultRuleList(defaultRule); |
| | | public Result update(DefaultRuleForm form) { |
| | | |
| | | DefaultRule entity = baseMapper.selectById(form.getId()); |
| | | |
| | | // 为空æIllegalArgumentExceptionï¼åå
¨å±å¼å¸¸å¤ç |
| | | Assert.notNull(entity, "è®°å½ä¸åå¨"); |
| | | BeanUtils.copyProperties(form, entity); |
| | | if (baseMapper.updateById(entity) > 0) { |
| | | return Result.ok("ä¿®æ¹æå"); |
| | | } |
| | | return Result.error("ä¿®æ¹å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢è¿çº¦è§å |
| | | * |
| | | * @param defaultRule è¿çº¦è§å |
| | | * @return ç»æ |
| | | * æ¹éå é¤ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int insertDefaultRule(DefaultRule defaultRule) |
| | | { |
| | | defaultRule.setCreateTime(DateUtils.getNowDate()); |
| | | return defaultRuleMapper.insertDefaultRule(defaultRule); |
| | | public Result remove(List<String> ids) { |
| | | if(baseMapper.deleteBatchIds(ids) > 0) { |
| | | return Result.ok("å 餿å"); |
| | | } |
| | | return Result.error("å é¤å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹è¿çº¦è§å |
| | | * |
| | | * @param defaultRule è¿çº¦è§å |
| | | * @return ç»æ |
| | | * idå é¤ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int updateDefaultRule(DefaultRule defaultRule) |
| | | { |
| | | defaultRule.setUpdateTime(DateUtils.getNowDate()); |
| | | return defaultRuleMapper.updateDefaultRule(defaultRule); |
| | | public Result removeById(String id) { |
| | | if(baseMapper.deleteById(id) > 0) { |
| | | return Result.ok("å 餿å"); |
| | | } |
| | | return Result.error("å é¤å¤±è´¥"); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤è¿çº¦è§å |
| | | * |
| | | * @param ids éè¦å é¤çè¿çº¦è§åä¸»é® |
| | | * @return ç»æ |
| | | * å页æ¥è¯¢ |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int deleteDefaultRuleByIds(Long[] ids) |
| | | { |
| | | return defaultRuleMapper.deleteDefaultRuleByIds(ids); |
| | | public Result page(DefaultRuleQuery query) { |
| | | |
| | | IPage<DefaultRule> page = new LambdaQueryChainWrapper<>(baseMapper) |
| | | .like(StringUtils.hasText(query.getRuleName()), DefaultRule::getRuleName, query.getRuleName()) |
| | | .between(Objects.nonNull(query.getStart()) && Objects.nonNull(query.getEnd()), |
| | | DefaultRule::getCreateTime, |
| | | DateUtils.getDayStart(query.getStart()), |
| | | DateUtils.getDayEnd(query.getEnd())) |
| | | .orderByDesc(DefaultRule::getCreateTime) |
| | | .page(PageUtil.getPage(query, DefaultRule.class)); |
| | | |
| | | List<DefaultRuleVO> vos = page.getRecords().stream() |
| | | .map( |
| | | entity -> DefaultRuleVO.getVoByEntity(entity, null) |
| | | ) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos).total(page.getTotal()); |
| | | } |
| | | |
| | | /** |
| | | * å é¤è¿çº¦è§åä¿¡æ¯ |
| | | * |
| | | * @param id è¿çº¦è§åä¸»é® |
| | | * @return ç»æ |
| | | * æ ¹æ®idæ¥æ¾ |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int deleteDefaultRuleById(Long id) |
| | | { |
| | | return defaultRuleMapper.deleteDefaultRuleById(id); |
| | | public Result detail(String id) { |
| | | |
| | | DefaultRule entity = baseMapper.selectById(id); |
| | | Assert.notNull(entity, "è®°å½ä¸åå¨"); |
| | | DefaultRuleVO vo = DefaultRuleVO.getVoByEntity(entity, null); |
| | | return Result.ok().data(vo); |
| | | } |
| | | |
| | | /** |
| | | * å表 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Result all() { |
| | | List<DefaultRule> entities = baseMapper.selectList(null); |
| | | List<DefaultRuleVO> vos = entities.stream() |
| | | .map( |
| | | entity -> DefaultRuleVO.getVoByEntity(entity, null) |
| | | ) |
| | | .collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | |
| | | @Override |
| | | public Result set(DefaultRuleSetForm form) { |
| | | DefaultRule defaultRule = baseMapper.selectById(form.getId()); |
| | | if (Objects.isNull(defaultRule)) { |
| | | throw new ServiceException("è¿çº¦è§åä¸åå¨"); |
| | | } |
| | | if (form.getFlag()) { |
| | | // å¯ç¨ä¹åæ£æ¥æ¯å¦å·²ç»æå¯ç¨çè§åäºï¼ä¿æä¸ä¸ªå¼å¯ |
| | | List<DefaultRule> useList = new LambdaQueryChainWrapper<>(baseMapper) |
| | | .eq(DefaultRule::getRuleStatus, "å¯ç¨") |
| | | .list(); |
| | | if (! CollectionUtils.isEmpty(useList)) { |
| | | throw new ServiceException("å·²ç»æè§å被å¯ç¨äºï¼åªè½åæ¶å¯ç¨ä¸ä¸ªè§å"); |
| | | } |
| | | defaultRule.setRuleStatus("å¯ç¨"); |
| | | } else { |
| | | defaultRule.setRuleStatus("æªå¯ç¨"); |
| | | } |
| | | baseMapper.updateById(defaultRule); |
| | | return Result.ok("æä½æå"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.ycl.platform.base.BaseSelect; |
| | | import com.ycl.platform.domain.entity.TCheckPublish; |
| | | import com.ycl.platform.mapper.TCheckPublishMapper; |
| | | import com.ycl.platform.service.ITCheckPublishService; |
| | | import com.ycl.system.Result; |
| | | import com.ycl.system.entity.SysDept; |
| | | import com.ycl.system.entity.SysUser; |
| | | import com.ycl.system.mapper.SysUserMapper; |
| | | import com.ycl.system.model.LoginUser; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | | import org.springframework.stereotype.Service; |
| | | import utils.DateUtils; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * èæ ¸åå¸Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-07 |
| | | */ |
| | | @Service |
| | | public class TCheckPublishServiceImpl implements ITCheckPublishService |
| | | { |
| | | @Autowired |
| | | private TCheckPublishMapper tCheckPublishMapper; |
| | | @Autowired |
| | | private SysUserMapper userMapper; |
| | | /** |
| | | * æ¥è¯¢èæ ¸åå¸ |
| | | * |
| | | * @param id èæ ¸åå¸ä¸»é® |
| | | * @return èæ ¸åå¸ |
| | | */ |
| | | @Override |
| | | public TCheckPublish selectTCheckPublishById(Long id) |
| | | { |
| | | return tCheckPublishMapper.selectTCheckPublishById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸åå¸å表 |
| | | * |
| | | * @param tCheckPublish èæ ¸åå¸ |
| | | * @return èæ ¸åå¸ |
| | | */ |
| | | @Override |
| | | public List<TCheckPublish> selectTCheckPublishList(TCheckPublish tCheckPublish) |
| | | { |
| | | return tCheckPublishMapper.selectTCheckPublishList(tCheckPublish); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸åå¸ |
| | | * |
| | | * @param tCheckPublish èæ ¸åå¸ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertTCheckPublish(TCheckPublish tCheckPublish) |
| | | { |
| | | Date nowDate = DateUtils.getNowDate(); |
| | | tCheckPublish.setCreateTime(nowDate); |
| | | tCheckPublish.setUpdateTime(nowDate); |
| | | LoginUser user = (LoginUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | tCheckPublish.setCreateUser(user.getUserId()); |
| | | tCheckPublish.setCreateUserName(user.getUsername()); |
| | | tCheckPublish.setUpdateUser(user.getUserId()); |
| | | tCheckPublish.setUpdateUserName(user.getUsername()); |
| | | return tCheckPublishMapper.insertTCheckPublish(tCheckPublish); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸åå¸ |
| | | * |
| | | * @param tCheckPublish èæ ¸åå¸ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateTCheckPublish(TCheckPublish tCheckPublish) |
| | | { |
| | | tCheckPublish.setUpdateTime(DateUtils.getNowDate()); |
| | | LoginUser user = (LoginUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | tCheckPublish.setUpdateUser(user.getUserId()); |
| | | tCheckPublish.setUpdateUserName(user.getUsername()); |
| | | return tCheckPublishMapper.updateTCheckPublish(tCheckPublish); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸åå¸ |
| | | * |
| | | * @param ids éè¦å é¤çèæ ¸åå¸ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteTCheckPublishByIds(Long[] ids) |
| | | { |
| | | return tCheckPublishMapper.deleteTCheckPublishByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èæ ¸åå¸ä¿¡æ¯ |
| | | * |
| | | * @param id èæ ¸åå¸ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteTCheckPublishById(Long id) |
| | | { |
| | | return tCheckPublishMapper.deleteTCheckPublishById(id); |
| | | } |
| | | /** |
| | | * 䏿å表 |
| | | * */ |
| | | @Override |
| | | public Result all() { |
| | | List<BaseSelect> vos = tCheckPublishMapper.selectTCheckPublishList(new TCheckPublish()).stream().map(checkPublish -> { |
| | | BaseSelect baseSelect = new BaseSelect(); |
| | | baseSelect.setId(Integer.parseInt(checkPublish.getId() + "")); |
| | | baseSelect.setValue(checkPublish.getExamineName()); |
| | | return baseSelect; |
| | | } |
| | | ).collect(Collectors.toList()); |
| | | return Result.ok().data(vos); |
| | | } |
| | | } |
New file |
| | |
| | | package com.ycl.platform.service.impl; |
| | | |
| | | import com.ycl.platform.domain.entity.TExamineScore; |
| | | import com.ycl.platform.domain.vo.TExamineScoreVO; |
| | | import com.ycl.platform.mapper.TExamineScoreMapper; |
| | | import com.ycl.platform.service.ITExamineScoreService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import utils.DateUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èæ ¸è®¡åServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-03-13 |
| | | */ |
| | | @Service |
| | | public class TExamineScoreServiceImpl implements ITExamineScoreService |
| | | { |
| | | @Autowired |
| | | private TExamineScoreMapper tExamineScoreMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸è®¡å |
| | | * |
| | | * @param id èæ ¸è®¡åä¸»é® |
| | | * @return èæ ¸è®¡å |
| | | */ |
| | | @Override |
| | | public TExamineScore selectTExamineScoreById(Long id) |
| | | { |
| | | return tExamineScoreMapper.selectTExamineScoreById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢èæ ¸è®¡åå表 |
| | | * |
| | | * @param tExamineScore èæ ¸è®¡å |
| | | * @return èæ ¸è®¡å |
| | | */ |
| | | @Override |
| | | public List<TExamineScoreVO> selectTExamineScoreList(TExamineScore tExamineScore) |
| | | { |
| | | |
| | | |
| | | return tExamineScoreMapper.selectTExamineScoreList(tExamineScore); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢èæ ¸è®¡å |
| | | * |
| | | * @param tExamineScore èæ ¸è®¡å |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertTExamineScore(TExamineScore tExamineScore) |
| | | { |
| | | tExamineScore.setCreateTime(DateUtils.getNowDate()); |
| | | return tExamineScoreMapper.insertTExamineScore(tExamineScore); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹èæ ¸è®¡å |
| | | * |
| | | * @param tExamineScore èæ ¸è®¡å |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateTExamineScore(TExamineScore tExamineScore) |
| | | { |
| | | return tExamineScoreMapper.updateTExamineScore(tExamineScore); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤èæ ¸è®¡å |
| | | * |
| | | * @param ids éè¦å é¤çèæ ¸è®¡åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteTExamineScoreByIds(Long[] ids) |
| | | { |
| | | return tExamineScoreMapper.deleteTExamineScoreByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤èæ ¸è®¡åä¿¡æ¯ |
| | | * |
| | | * @param id èæ ¸è®¡åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteTExamineScoreById(Long id) |
| | | { |
| | | return tExamineScoreMapper.deleteTExamineScoreById(id); |
| | | } |
| | | } |
| | |
| | | # 请æ±åç¼ |
| | | pathMapping: /dev-api |
| | | |
| | | # MongoDBé
ç½® |
| | | spring: |
| | | data: |
| | | mongodb: |
| | | host: 42.193.1.25 |
| | | database: zgyw |
| | | port: 27017 |
| | | |
New file |
| | |
| | | <?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.ycl.platform.mapper.AccountingRulesMapper"> |
| | | |
| | | <resultMap type="com.ycl.platform.domain.entity.AccountingRules" id="AccountingRulesResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="rulesName" column="rules_name"/> |
| | | <result property="contractName" column="contract_name"/> |
| | | <result property="amount" column="amount"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="deleted" column="deleted"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectAccountingRulesVo"> |
| | | select id, rules_name, contract_name, amount, create_time, update_time, deleted |
| | | from t_accounting_rules |
| | | </sql> |
| | | |
| | | <select id="selectAccountingRulesList" parameterType="com.ycl.platform.domain.entity.AccountingRules" resultMap="AccountingRulesResult"> |
| | | <include refid="selectAccountingRulesVo"/> |
| | | <where> |
| | | <if test="rulesName != null and rulesName != ''">and rules_name like concat('%', #{rulesName}, '%')</if> |
| | | <if test="contractName != null and contractName != ''">and contract_name like concat('%', #{contractName}, '%')</if> |
| | | <if test="deleted != null and deleted != ''">and deleted = #{deleted}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectAccountingRulesById" parameterType="Integer" resultMap="AccountingRulesResult"> |
| | | <include refid="selectAccountingRulesVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertAccountingRules" parameterType="com.ycl.platform.domain.entity.AccountingRules" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_accounting_rules |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="rulesName != null">rules_name,</if> |
| | | <if test="contractName != null">contract_name,</if> |
| | | <if test="amount != null">amount,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="deleted != null">deleted,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="rulesName != null">#{rulesName},</if> |
| | | <if test="contractName != null">#{contractName},</if> |
| | | <if test="amount != null">#{amount},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="deleted != null">#{deleted},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateAccountingRules" parameterType="com.ycl.platform.domain.entity.AccountingRules"> |
| | | update t_accounting_rules |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="rulesName != null">rules_name = #{rulesName},</if> |
| | | <if test="contractName != null">contract_name = #{contractName},</if> |
| | | <if test="amount != null">amount = #{amount},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="deleted != null">deleted = #{deleted},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteAccountingRulesById" parameterType="Integer"> |
| | | delete |
| | | from t_accounting_rules |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteAccountingRulesByIds" parameterType="String"> |
| | | delete from t_accounting_rules where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <?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"> |
| | | <?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.ycl.platform.mapper.CheckResultMapper"> |
| | | |
| | | <resultMap type="com.ycl.platform.domain.entity.CheckResult" id="CheckResultResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="deptId" column="dept_id" /> |
| | | <result property="publishId" column="publish_id" /> |
| | | <result property="examineCategory" column="examine_category" /> |
| | | <result property="checkScore" column="check_score" /> |
| | | <result property="publish" column="publish" /> |
| | | <result property="checkTime" column="check_time" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="deleted" column="deleted" /> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.platform.domain.vo.CheckResultVO"> |
| | | <result column="id" property="id" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="unit_name" property="checkUnitName" /> |
| | | <result column="examine_name" property="examineName" /> |
| | | <result column="check_score" property="checkScore" /> |
| | | <result column="system_score" property="systemScore" /> |
| | | <result column="manual_score" property="manualScore" /> |
| | | <result column="check_time" property="checkTime" /> |
| | | <result column="frequency" property="frequency" /> |
| | | <result column="examine_range" property="examineRange" /> |
| | | <result column="publish" property="publish" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectCheckResultVo"> |
| | | select id, dept_id, publish_id, examine_category, check_score, publish, check_time, update_time, deleted from t_check_result |
| | | </sql> |
| | | |
| | | <select id="selectCheckResultList" resultMap="CheckResultResult"> |
| | | <include refid="selectCheckResultVo"/> |
| | | <where> |
| | | <if test="deptId != null "> and dept_id = #{deptId}</if> |
| | | <if test="publishId != null "> and publish_id = #{publishId}</if> |
| | | <if test="examineCategory != null "> and examine_category = #{examineCategory}</if> |
| | | <if test="publish != null "> and publish = #{publish}</if> |
| | | <if test="checkTime != null "> and check_time = #{checkTime}</if> |
| | | <select id="page" resultMap="BaseResultMap"> |
| | | SELECT |
| | | tcr.id, |
| | | tyu.unit_name, |
| | | tcp.examine_name, |
| | | tcp.examine_range, |
| | | tcp.frequency, |
| | | tcr.check_time, |
| | | tcr.check_score, |
| | | tcr.system_score, |
| | | tcr.manual_score, |
| | | tcr.publish |
| | | FROM |
| | | t_check_result tcr |
| | | INNER JOIN t_check_publish tcp ON tcr.check_publish_id = tcp.id |
| | | INNER JOIN t_yw_unit tyu ON tcr.check_unit_id = tyu.id |
| | | <where> |
| | | AND tcr.deleted = 0 |
| | | <if test="query.checkUnitName != null and query.checkUnitName != ''"> |
| | | AND tyu.unit_name like concat('%', #{query.checkUnitName}, '%') |
| | | </if> |
| | | <if test="query.frequency != null and query.frequency != ''"> |
| | | AND tcp.frequency = #{query.frequency} |
| | | </if> |
| | | <if test="query.frequency != null and query.frequency != ''"> |
| | | AND tcp.examine_range = #{query.examineRange} |
| | | </if> |
| | | <if test="query.start != null and query.end != null"> |
| | | AND tcr.check_time BETWEEN #{query.start} AND #{query.end} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectCheckResultById" resultMap="CheckResultResult"> |
| | | <include refid="selectCheckResultVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertCheckResult" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_check_result |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="deptId != null">dept_id,</if> |
| | | <if test="publishId != null">publish_id,</if> |
| | | <if test="examineCategory != null">examine_category,</if> |
| | | <if test="checkScore != null">check_score,</if> |
| | | <if test="publish != null">publish,</if> |
| | | <if test="checkTime != null">check_time,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="deleted != null">deleted,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="deptId != null">#{deptId},</if> |
| | | <if test="publishId != null">#{publishId},</if> |
| | | <if test="examineCategory != null">#{examineCategory},</if> |
| | | <if test="checkScore != null">#{checkScore},</if> |
| | | <if test="publish != null">#{publish},</if> |
| | | <if test="checkTime != null">#{checkTime},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="deleted != null">#{deleted},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateCheckResult" > |
| | | update t_check_result |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="deptId != null">dept_id = #{deptId},</if> |
| | | <if test="publishId != null">publish_id = #{publishId},</if> |
| | | <if test="examineCategory != null">examine_category = #{examineCategory},</if> |
| | | <if test="checkScore != null">check_score = #{checkScore},</if> |
| | | <if test="publish != null">publish = #{publish},</if> |
| | | <if test="checkTime != null">check_time = #{checkTime},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="deleted != null">deleted = #{deleted},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteCheckResultById" > |
| | | delete from t_check_result where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteCheckResultByIds" > |
| | | delete from t_check_result where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |
| | |
| | | <?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"> |
| | | <?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.ycl.platform.mapper.CheckRuleMapper"> |
| | | |
| | | <resultMap type="com.ycl.platform.domain.entity.CheckRule" id="CheckRuleResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="ruleName" column="rule_name" /> |
| | | <result property="ruleDetail" column="rule_detail" /> |
| | | <result property="ruleCategory" column="rule_category" /> |
| | | <result property="examineCategory" column="examine_category" /> |
| | | <result property="ruleDescription" column="rule_description" /> |
| | | <result property="auditState" column="audit_state" /> |
| | | <result property="state" column="state" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="deleted" column="deleted" /> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.platform.domain.vo.CheckRuleVO"> |
| | | <result column="id" property="id" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="rule_name" property="ruleName" /> |
| | | <result column="rule_detail" property="ruleDetail" /> |
| | | <result column="video_point_num" property="videoPointNum" /> |
| | | <result column="vehicle_checkpoint_num" property="vehicleCheckpointNum" /> |
| | | <result column="face_chceckpoint_num" property="faceChceckpointNum" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectCheckRuleVo"> |
| | | select id, rule_name, rule_detail, rule_category, examine_category, rule_description, audit_state, state, create_time, update_time, deleted from t_check_rule |
| | | </sql> |
| | | |
| | | <select id="selectCheckRuleList" resultMap="CheckRuleResult"> |
| | | <include refid="selectCheckRuleVo"/> |
| | | <where> |
| | | <if test="ruleName != null and ruleName != ''"> and rule_name like concat('%', #{ruleName}, '%')</if> |
| | | <if test="ruleCategory != null "> and rule_category = #{ruleCategory}</if> |
| | | <if test="examineCategory != null "> and examine_category = #{examineCategory}</if> |
| | | <if test="ruleDescription != null and ruleDescription != ''"> and rule_description = #{ruleDescription}</if> |
| | | <if test="auditState != null "> and audit_state = #{auditState}</if> |
| | | <if test="state != null "> and state = #{state}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectCheckRuleById" resultMap="CheckRuleResult"> |
| | | <include refid="selectCheckRuleVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertCheckRule" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_check_rule |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="ruleName != null and ruleName != ''">rule_name,</if> |
| | | <if test="ruleDetail != null">rule_detail,</if> |
| | | <if test="ruleCategory != null">rule_category,</if> |
| | | <if test="examineCategory != null">examine_category,</if> |
| | | <if test="ruleDescription != null">rule_description,</if> |
| | | <if test="auditState != null">audit_state,</if> |
| | | <if test="state != null">state,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="deleted != null">deleted,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="ruleName != null and ruleName != ''">#{ruleName},</if> |
| | | <if test="ruleDetail != null">#{ruleDetail},</if> |
| | | <if test="ruleCategory != null">#{ruleCategory},</if> |
| | | <if test="examineCategory != null">#{examineCategory},</if> |
| | | <if test="ruleDescription != null">#{ruleDescription},</if> |
| | | <if test="auditState != null">#{auditState},</if> |
| | | <if test="state != null">#{state},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="deleted != null">#{deleted},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateCheckRule" > |
| | | update t_check_rule |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="ruleName != null and ruleName != ''">rule_name = #{ruleName},</if> |
| | | <if test="ruleDetail != null">rule_detail = #{ruleDetail},</if> |
| | | <if test="ruleCategory != null">rule_category = #{ruleCategory},</if> |
| | | <if test="examineCategory != null">examine_category = #{examineCategory},</if> |
| | | <if test="ruleDescription != null">rule_description = #{ruleDescription},</if> |
| | | <if test="auditState != null">audit_state = #{auditState},</if> |
| | | <if test="state != null">state = #{state},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="deleted != null">deleted = #{deleted},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteCheckRuleById" > |
| | | delete from t_check_rule where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteCheckRuleByIds" > |
| | | delete from t_check_rule where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |
| | |
| | | <?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"> |
| | | <?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.ycl.platform.mapper.CheckTemplateMapper"> |
| | | |
| | | <resultMap type="com.ycl.platform.domain.entity.CheckTemplate" id="CheckTemplateResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="templateName" column="template_name" /> |
| | | <result property="adjustCoefficient" column="adjust_coefficient" /> |
| | | <result property="adjustWay" column="adjust_way" /> |
| | | <result property="examineCategory" column="examine_category" /> |
| | | <result property="status" column="status" /> |
| | | <result property="deptId" column="dept_id" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="createUser" column="create_user" /> |
| | | <result property="createUserName" column="create_user_name" /> |
| | | <result property="updateUser" column="update_user" /> |
| | | <result property="updateUserName" column="update_user_name" /> |
| | | <result property="deleted" column="deleted" /> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.platform.domain.vo.CheckTemplateVO"> |
| | | <result column="id" property="id" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="adjust_coefficient" property="adjustCoefficient" /> |
| | | <result column="adjust_way" property="adjustWay" /> |
| | | <result column="status" property="status" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectCheckTemplateVo"> |
| | | select id, template_name, adjust_coefficient, adjust_way, examine_category, status, dept_id, create_time, update_time, create_user, create_user_name, update_user, update_user_name, deleted from t_check_template |
| | | </sql> |
| | | |
| | | <select id="selectCheckTemplateList" resultMap="CheckTemplateResult"> |
| | | <include refid="selectCheckTemplateVo"/> |
| | | <where> |
| | | <if test="templateName != null and templateName != ''"> and template_name like concat('%', #{templateName}, '%')</if> |
| | | <if test="adjustCoefficient != null "> and adjust_coefficient = #{adjustCoefficient}</if> |
| | | <if test="adjustWay != null and adjustWay != ''"> and adjust_way = #{adjustWay}</if> |
| | | <if test="examineCategory != null "> and examine_category = #{examineCategory}</if> |
| | | <if test="status != null and status != ''"> and status = #{status}</if> |
| | | <if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectCheckTemplateById" resultMap="CheckTemplateResult"> |
| | | <include refid="selectCheckTemplateVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertCheckTemplate" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_check_template |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">template_name,</if> |
| | | <if test="adjustCoefficient != null">adjust_coefficient,</if> |
| | | <if test="adjustWay != null and adjustWay != ''">adjust_way,</if> |
| | | <if test="examineCategory != null">examine_category,</if> |
| | | <if test="status != null">status,</if> |
| | | <if test="deptId != null">dept_id,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="createUser != null">create_user,</if> |
| | | <if test="createUserName != null">create_user_name,</if> |
| | | <if test="updateUser != null">update_user,</if> |
| | | <if test="updateUserName != null">update_user_name,</if> |
| | | <if test="deleted != null">deleted,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">#{templateName},</if> |
| | | <if test="adjustCoefficient != null">#{adjustCoefficient},</if> |
| | | <if test="adjustWay != null and adjustWay != ''">#{adjustWay},</if> |
| | | <if test="examineCategory != null">#{examineCategory},</if> |
| | | <if test="status != null">#{status},</if> |
| | | <if test="deptId != null">#{deptId},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="createUser != null">#{createUser},</if> |
| | | <if test="createUserName != null">#{createUserName},</if> |
| | | <if test="updateUser != null">#{updateUser},</if> |
| | | <if test="updateUserName != null">#{updateUserName},</if> |
| | | <if test="deleted != null">#{deleted},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateCheckTemplate"> |
| | | update t_check_template |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">template_name = #{templateName},</if> |
| | | <if test="adjustCoefficient != null">adjust_coefficient = #{adjustCoefficient},</if> |
| | | <if test="adjustWay != null and adjustWay != ''">adjust_way = #{adjustWay},</if> |
| | | <if test="examineCategory != null">examine_category = #{examineCategory},</if> |
| | | <if test="status != null">status = #{status},</if> |
| | | <if test="deptId != null">dept_id = #{deptId},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createUser != null">create_user = #{createUser},</if> |
| | | <if test="createUserName != null">create_user_name = #{createUserName},</if> |
| | | <if test="updateUser != null">update_user = #{updateUser},</if> |
| | | <if test="updateUserName != null">update_user_name = #{updateUserName},</if> |
| | | <if test="deleted != null">deleted = #{deleted},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteCheckTemplateById" parameterType="Long"> |
| | | delete from t_check_template where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteCheckTemplateByIds" parameterType="String"> |
| | | delete from t_check_template where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |
New file |
| | |
| | | <?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.ycl.platform.mapper.DefaultAuditingMapper"> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.platform.domain.vo.DefaultAuditingVO"> |
| | | <result column="id" property="id" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="score" property="score" /> |
| | | <result column="check_publish_id" property="checkPublishId" /> |
| | | <result column="default_id" property="defaultId" /> |
| | | <result column="auditing_status" property="auditingStatus" /> |
| | | <result column="remark" property="remark" /> |
| | | <result column="auditing_time" property="auditingTime" /> |
| | | <result column="nick_name" property="auditingUserName" /> |
| | | <result column="rule_name" property="defaultRuleName" /> |
| | | <result column="unit_name" property="unitName" /> |
| | | <result column="create_by" property="createBy" /> |
| | | </resultMap> |
| | | |
| | | <select id="page" resultMap="BaseResultMap"> |
| | | SELECT |
| | | tda.id, |
| | | tda.score, |
| | | tda.check_publish_id, |
| | | tda.create_time, |
| | | tda.default_id, |
| | | tda.auditing_status, |
| | | tda.remark, |
| | | tda.auditing_time, |
| | | tda.auditing_user, |
| | | su.nick_name, |
| | | tda.create_by, |
| | | (SELECT unit_name FROM t_yw_unit WHERE id = tdr.unit_id AND deleted = 0) as unit_name, |
| | | (SELECT rule_name FROM t_default_rule WHERE id = tdr.default_rule_id AND deleted = 0) as rule_name |
| | | FROM |
| | | t_default_auditing tda |
| | | INNER JOIN t_default_record tdr ON tda.default_id = tdr.id AND tda.deleted = 0 AND tdr.deleted = 0 |
| | | LEFT JOIN sys_user su ON tda.auditing_user = su.user_id |
| | | <where> |
| | | |
| | | <if test="query.unitId != null and query.unitId != ''"> |
| | | AND tdr.unit_id = #{query.unitId} |
| | | </if> |
| | | <if test="query.auditingStartTime != null and query.auditingEndTime != null"> |
| | | AND tda.auditing_time BETWEEN #{query.auditingStartTime} AND #{query.auditingEndTime} |
| | | </if> |
| | | <if test="query.createStartTime != null and query.createEndTime != null"> |
| | | AND tda.create_time BETWEEN #{query.createStartTime} AND #{query.createEndTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <?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"> |
| | | <?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.ycl.platform.mapper.DefaultRuleMapper"> |
| | | |
| | | <resultMap type="com.ycl.platform.domain.entity.DefaultRule" id="DefaultRuleResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="ruleName" column="rule_name" /> |
| | | <result property="parentId" column="parent_id" /> |
| | | <result property="deductCategory" column="deduct_category" /> |
| | | <result property="deductWay" column="deduct_way" /> |
| | | <result property="ruleDesc" column="rule_desc" /> |
| | | <result property="ruleStatus" column="rule_status" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="deleted" column="deleted" /> |
| | | |
| | | <!-- éç¨æ¥è¯¢æ å°ç»æ --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.platform.domain.vo.DefaultRuleVO"> |
| | | <result column="id" property="id" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="rule_name" property="ruleName" /> |
| | | <result column="rule_detail" property="ruleDetail" /> |
| | | <result column="rule_desc" property="ruleDesc" /> |
| | | <result column="rule_status" property="ruleStatus" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDefaultRuleVo"> |
| | | select id, rule_name, parent_id, deduct_category, deduct_way, rule_desc, rule_status, create_time, update_time, deleted from t_default_rule |
| | | </sql> |
| | | |
| | | <select id="selectDefaultRuleList" resultMap="DefaultRuleResult"> |
| | | <include refid="selectDefaultRuleVo"/> |
| | | <where> |
| | | <if test="ruleName != null and ruleName != ''"> and rule_name like concat('%', #{ruleName}, '%')</if> |
| | | <if test="deductCategory != null "> and deduct_category = #{deductCategory}</if> |
| | | <if test="ruleStatus != null and ruleStatus != ''"> and rule_status = #{ruleStatus}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectDefaultRuleById" resultMap="DefaultRuleResult"> |
| | | <include refid="selectDefaultRuleVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertDefaultRule" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_default_rule |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="ruleName != null and ruleName != ''">rule_name,</if> |
| | | <if test="parentId != null">parent_id,</if> |
| | | <if test="deductCategory != null">deduct_category,</if> |
| | | <if test="deductWay != null">deduct_way,</if> |
| | | <if test="ruleDesc != null">rule_desc,</if> |
| | | <if test="ruleStatus != null">rule_status,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="deleted != null">deleted,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="ruleName != null and ruleName != ''">#{ruleName},</if> |
| | | <if test="parentId != null">#{parentId},</if> |
| | | <if test="deductCategory != null">#{deductCategory},</if> |
| | | <if test="deductWay != null">#{deductWay},</if> |
| | | <if test="ruleDesc != null">#{ruleDesc},</if> |
| | | <if test="ruleStatus != null">#{ruleStatus},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="deleted != null">#{deleted},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateDefaultRule" > |
| | | update t_default_rule |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="ruleName != null and ruleName != ''">rule_name = #{ruleName},</if> |
| | | <if test="parentId != null">parent_id = #{parentId},</if> |
| | | <if test="deductCategory != null">deduct_category = #{deductCategory},</if> |
| | | <if test="deductWay != null">deduct_way = #{deductWay},</if> |
| | | <if test="ruleDesc != null">rule_desc = #{ruleDesc},</if> |
| | | <if test="ruleStatus != null">rule_status = #{ruleStatus},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="deleted != null">deleted = #{deleted},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteDefaultRuleById" > |
| | | delete from t_default_rule where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteDefaultRuleByIds" > |
| | | delete from t_default_rule where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |
New file |
| | |
| | | <?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.ycl.platform.mapper.TCheckPublishMapper"> |
| | | |
| | | <resultMap type="com.ycl.platform.domain.entity.TCheckPublish" id="TCheckPublishResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="examineName" column="examine_name" /> |
| | | <result property="templateId" column="template_id" /> |
| | | <result property="examineRange" column="examine_range" /> |
| | | <result property="frequency" column="frequency" /> |
| | | <result property="state" column="state" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUser" column="create_user" /> |
| | | <result property="createUserName" column="create_user_name" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateUser" column="update_user" /> |
| | | <result property="updateUserName" column="update_user_name" /> |
| | | <result property="description" column="description" /> |
| | | <result property="alarmScore" column="alarm_score" /> |
| | | <result property="auditState" column="audit_state" /> |
| | | <result property="auditUser" column="audit_user" /> |
| | | <result property="auditDescription" column="audit_description" /> |
| | | <result property="auditTime" column="audit_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTCheckPublishVo"> |
| | | select id , examine_name, template_id , examine_range , frequency , state , create_time , create_user , update_time , |
| | | update_user , description,create_user_name,update_user_name,alarm_score ,audit_state,audit_user,audit_description,audit_time |
| | | from t_check_publish |
| | | </sql> |
| | | |
| | | <select id="selectTCheckPublishList" parameterType="com.ycl.platform.domain.entity.TCheckPublish" resultMap="TCheckPublishResult"> |
| | | <include refid="selectTCheckPublishVo"/> |
| | | <where> |
| | | <if test="templateId != null "> and template_id = #{templateId}</if> |
| | | <if test="examineName != null and examineName != '' "> and examine_name = #{examineName}</if> |
| | | <if test="examineRange != null "> and examine_range = #{examineRange}</if> |
| | | <if test="frequency != null "> and frequency = #{frequency}</if> |
| | | <if test="state != null "> and state = #{state}</if> |
| | | <if test="createUser != null "> and create_user = #{createUser}</if> |
| | | <if test="updateUser != null "> and update_user = #{updateUser}</if> |
| | | <if test="description != null and description != ''"> and description = #{description}</if> |
| | | <if test="alarmScore != null"> and alarm_score = #{alarmScore}</if> |
| | | <if test="auditState != null"> and audit_state = #{auditState}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectTCheckPublishById" parameterType="Long" resultMap="TCheckPublishResult"> |
| | | <include refid="selectTCheckPublishVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertTCheckPublish" parameterType="com.ycl.platform.domain.entity.TCheckPublish"> |
| | | insert into t_check_publish |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="examineName != null and examineName != ''">examine_name,</if> |
| | | <if test="templateId != null">template_id,</if> |
| | | <if test="examineRange != null">examine_range,</if> |
| | | <if test="frequency != null">frequency,</if> |
| | | <if test="state != null">state,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createUser != null">create_user,</if> |
| | | <if test="createUserName != null and createUserName!= ''">create_user_name,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="updateUser != null">update_user,</if> |
| | | <if test="updateUserName != null and updateUserName!= ''">update_user_name,</if> |
| | | <if test="description != null">description,</if> |
| | | <if test="alarmScore != null">alarm_score,</if> |
| | | <if test="auditState != null">alarm_state,</if> |
| | | <if test="auditUser != null and auditUser!=''">alarm_user,</if> |
| | | <if test="auditDescription != null auditDescription!=''">alarm_description,</if> |
| | | <if test="auditTime != null">alarm_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="examineName != null and examineName != ''">#{examineName},</if> |
| | | <if test="templateId != null">#{templateId},</if> |
| | | <if test="examineRange != null">#{examineRange},</if> |
| | | <if test="frequency != null">#{frequency},</if> |
| | | <if test="state != null">#{state},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createUser != null">#{createUser},</if> |
| | | <if test="createUserName != null and createUserName!= ''">#{createUserName},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="updateUser != null">#{updateUser},</if> |
| | | <if test="updateUserName != null and updateUserName!= ''">#{updateUserName},</if> |
| | | <if test="description != null">#{description},</if> |
| | | <if test="alarmScore != null">#{alarmScore},</if> |
| | | <if test="auditState != null">#{alarmState),</if> |
| | | <if test="auditUser != null and auditUser!=''">#{auditUser},</if> |
| | | <if test="auditDescription != null auditDescription!=''">#{auditDescription},</if> |
| | | <if test="auditTime != null">#{auditTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateTCheckPublish" parameterType="com.ycl.platform.domain.entity.TCheckPublish"> |
| | | update t_check_publish |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="examineName != null and examineName != ''">examine_name = #{examineName},</if> |
| | | <if test="templateId != null">template_id = #{templateId},</if> |
| | | <if test="examineRange != null">examine_range = #{examineRange},</if> |
| | | <if test="frequency != null">frequency = #{frequency},</if> |
| | | <if test="state != null">state = #{state},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createUser != null">create_user = #{createUser},</if> |
| | | <if test="createUserName != null and createUserName!= ''">create_user_name = #{createUserName},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="updateUser != null">update_user = #{updateUser},</if> |
| | | <if test="updateUserName != null and updateUserName!= ''">update_user_name = #{updateUserName},</if> |
| | | <if test="description != null">description = #{description},</if> |
| | | <if test="alarmScore != null">alarm_score = #{alarmScore},</if> |
| | | <if test="auditState != null">audit_state = #{alarmState),</if> |
| | | <if test="auditUser != null and auditUser!=''">audit_user = #{auditUser},</if> |
| | | <if test="auditDescription != null auditDescription!=''">audit_description = #{auditDescription},</if> |
| | | <if test="auditTime != null">audit_time = #{auditTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteTCheckPublishById" parameterType="Long"> |
| | | delete from t_check_publish where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteTCheckPublishByIds" parameterType="String"> |
| | | delete from t_check_publish where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
New file |
| | |
| | | <?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.ycl.platform.mapper.TExamineScoreMapper"> |
| | | |
| | | <resultMap type="com.ycl.platform.domain.entity.TExamineScore" id="TExamineScoreResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="score" column="score" /> |
| | | <result property="unitId" column="unit_id" /> |
| | | <result property="examineId" column="examine_id" /> |
| | | <result property="examineCategory" column="examine_category" /> |
| | | <result property="ruleCategory" column="rule_category" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTExamineScoreVo"> |
| | | select id, score, unit_id, examine_id, examine_category, rule_category, create_time, create_by from t_examine_score |
| | | </sql> |
| | | |
| | | <select id="selectTExamineScoreList" resultType="com.ycl.platform.domain.vo.TExamineScoreVO"> |
| | | select tes.id, tes.score, tyu.unit_name, tcp.examine_name, tes.examine_category,tes.rule_category,tes.create_time, tes.create_by |
| | | from t_examine_score tes |
| | | left join t_check_publish tcp on tes.examine_id = tcp.id |
| | | left join t_yw_unit tyu on tes.unit_id = tyu.id |
| | | <where> |
| | | <if test="score != null "> and score = #{score}</if> |
| | | <if test="unitId != null "> and unit_id = #{unitId}</if> |
| | | <if test="examineId != null "> and examine_id = #{examineId}</if> |
| | | <if test="examineCategory != null "> and examine_category = #{examineCategory}</if> |
| | | <if test="ruleCategory != null "> and rule_category = #{ruleCategory</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectTExamineScoreById" parameterType="Long" resultMap="TExamineScoreResult"> |
| | | <include refid="selectTExamineScoreVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertTExamineScore" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into t_examine_score |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="score != null">score,</if> |
| | | <if test="unitId != null">unit_id,</if> |
| | | <if test="examineId != null">examine_id,</if> |
| | | <if test="examineCategory != null">examine_category,</if> |
| | | <if test="ruleCategory != null">rule_category,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="score != null">#{score},</if> |
| | | <if test="unitId != null">#{unitId},</if> |
| | | <if test="examineId != null">#{examineId},</if> |
| | | <if test="examineCategory != null">#{examineCategory},</if> |
| | | <if test="ruleCategory != null">#{ruleCategory},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateTExamineScore"> |
| | | update t_examine_score |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="unitId != null">unit_id = #{unitId},</if> |
| | | <if test="examineId != null">examine_id = #{examineId},</if> |
| | | <if test="examineCategory != null">examine_category = #{examineCategory},</if> |
| | | <if test="ruleCategory != null">rule_category = #{ruleCategory},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteTExamineScoreById" parameterType="Long"> |
| | | delete from t_examine_score where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteTExamineScoreByIds" parameterType="String"> |
| | | delete from t_examine_score where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |