feat: 法规符合性评估库相关代码
This commit is contained in:
+46
@@ -0,0 +1,46 @@
|
||||
package com.jero.modules.assessmentLibrary.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsConformityAssessmentLibrary;
|
||||
import com.jero.modules.assessmentLibrary.service.ILawsConformityAssessmentLibraryService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Api(tags = "法规符合性评估库-法规符合性评估库")
|
||||
@RestController
|
||||
@RequestMapping("/laws/lawsConformityAssessment")
|
||||
@Slf4j
|
||||
public class LawsConformityAssessmentController {
|
||||
|
||||
@Resource
|
||||
private ILawsConformityAssessmentLibraryService lawsConformityAssessmentLibraryService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param lawsConformityAssessmentLibrary
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "法规符合性评估库-法规符合性评估库-分页列表查询")
|
||||
@ApiOperation(value = "法规符合性评估库-法规符合性评估库-分页列表查询", notes = "法规符合性评估库-法规符合性评估库-分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
// @RequiresPermissions("")
|
||||
public Result<IPage<LawsConformityAssessmentLibrary>> queryPageList(LawsConformityAssessmentLibrary lawsConformityAssessmentLibrary,
|
||||
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
|
||||
IPage<LawsConformityAssessmentLibrary> pageList = lawsConformityAssessmentLibraryService.queryPage(lawsConformityAssessmentLibrary, pageNo, pageSize);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
}
|
||||
+9
-14
@@ -1,33 +1,28 @@
|
||||
package com.jero.modules.projectLibrary.controller;
|
||||
package com.jero.modules.assessmentLibrary.controller;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.common.system.vo.LoginUser;
|
||||
import com.jero.common.api.vo.ResultCommon;
|
||||
import com.jero.modules.laws.common.constant.FieldCommon;
|
||||
import com.jero.modules.laws.common.util.CurrentUserUtil;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.modules.projectLibrary.common.AssessCommon;
|
||||
import com.jero.modules.projectLibrary.entity.LawsEvaluationNotMet;
|
||||
import com.jero.modules.projectLibrary.service.ILawsEvaluationNotMetService;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.modules.system.vo.IdsMapBody;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import org.apache.poi.ss.formula.functions.T;
|
||||
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
package com.jero.modules.assessmentLibrary.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 法规符合性评估库
|
||||
* @TableName laws_conformity_assessment_library
|
||||
*/
|
||||
@TableName(value ="laws_conformity_assessment_library")
|
||||
@Data
|
||||
public class LawsConformityAssessmentLibrary implements Serializable {
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 来源
|
||||
*/
|
||||
@ApiModelProperty(value = "来源")
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 标准ID
|
||||
*/
|
||||
@ApiModelProperty(value = "标准ID")
|
||||
private String standardId;
|
||||
|
||||
/**
|
||||
* 评估日期
|
||||
*/
|
||||
@ApiModelProperty(value = "评估日期")
|
||||
private Date valuationTime;
|
||||
|
||||
/**
|
||||
* 开始评估日期
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "开始评估日期")
|
||||
private Date startValuationTime;
|
||||
|
||||
/**
|
||||
* 结束评估日期
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "结束评估日期")
|
||||
private Date endValuationTime;
|
||||
|
||||
/**
|
||||
* 标准编号
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "标准编号")
|
||||
private String standardNumber;
|
||||
|
||||
/**
|
||||
* 标准名称
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "标准名称")
|
||||
private String standardName;
|
||||
|
||||
/**
|
||||
* 适用市场
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
@ApiModelProperty(value = "适用市场")
|
||||
private String applicableMarket;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
+125
@@ -0,0 +1,125 @@
|
||||
package com.jero.modules.assessmentLibrary.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName laws_conformity_assessment_library_detail
|
||||
*/
|
||||
@TableName(value ="laws_conformity_assessment_library_detail")
|
||||
@Data
|
||||
public class LawsConformityAssessmentLibraryDetail implements Serializable {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 修改人ID
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 部门code
|
||||
*/
|
||||
private String orgCode;
|
||||
|
||||
/**
|
||||
* 条款号
|
||||
*/
|
||||
private String termNumber;
|
||||
|
||||
/**
|
||||
* 条款内容
|
||||
*/
|
||||
private String termContent;
|
||||
|
||||
/**
|
||||
* 车型
|
||||
*/
|
||||
private String model;
|
||||
|
||||
/**
|
||||
* 车型状态
|
||||
*/
|
||||
private String modelStatus;
|
||||
|
||||
/**
|
||||
* 责任部门
|
||||
*/
|
||||
private String authDept;
|
||||
|
||||
/**
|
||||
* 评估人
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 评估结果
|
||||
*/
|
||||
private String result;
|
||||
|
||||
/**
|
||||
* 问题描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 不满足要求的现状
|
||||
*/
|
||||
private String unsatisfyRequire;
|
||||
|
||||
/**
|
||||
* 整改方案
|
||||
*/
|
||||
private String correctionSolution;
|
||||
|
||||
/**
|
||||
* 整改费用
|
||||
*/
|
||||
private String correctionCost;
|
||||
|
||||
/**
|
||||
* 与其他项目共用性
|
||||
*/
|
||||
private String commonality;
|
||||
|
||||
/**
|
||||
* 共用后本项目所需费用
|
||||
*/
|
||||
private String commonalityCost;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 佐证材料
|
||||
*/
|
||||
private String material;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
package com.jero.modules.assessmentLibrary.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 不符合项库
|
||||
* @TableName laws_evaluation_not_met_library
|
||||
*/
|
||||
@TableName(value ="laws_evaluation_not_met_library")
|
||||
@Data
|
||||
public class LawsEvaluationNotMetLibrary implements Serializable {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 部门code
|
||||
*/
|
||||
private String orgCode;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 修改人ID
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 删除标识
|
||||
*/
|
||||
private Integer delFlag;
|
||||
|
||||
/**
|
||||
* 来源
|
||||
*/
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 标准id
|
||||
*/
|
||||
private String standardId;
|
||||
|
||||
/**
|
||||
* 标准编号
|
||||
*/
|
||||
private String standardNumber;
|
||||
|
||||
/**
|
||||
* 标准名称
|
||||
*/
|
||||
private String standardName;
|
||||
|
||||
/**
|
||||
* 适用市场
|
||||
*/
|
||||
private String applicableMarket;
|
||||
|
||||
/**
|
||||
* 评估日期
|
||||
*/
|
||||
private Date evaluateDate;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
+130
@@ -0,0 +1,130 @@
|
||||
package com.jero.modules.assessmentLibrary.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
*
|
||||
* @TableName laws_evaluation_not_met_library_detail
|
||||
*/
|
||||
@TableName(value ="laws_evaluation_not_met_library_detail")
|
||||
@Data
|
||||
public class LawsEvaluationNotMetLibraryDetail implements Serializable {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 部门code
|
||||
*/
|
||||
private String orgCode;
|
||||
|
||||
/**
|
||||
* 创建人ID
|
||||
*/
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 修改人ID
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 删除标识
|
||||
*/
|
||||
private Integer delFlag;
|
||||
|
||||
/**
|
||||
* 条款号
|
||||
*/
|
||||
private String termNumber;
|
||||
|
||||
/**
|
||||
* 条款内容
|
||||
*/
|
||||
private String termContent;
|
||||
|
||||
/**
|
||||
* 车型
|
||||
*/
|
||||
private String model;
|
||||
|
||||
/**
|
||||
* 车型状态
|
||||
*/
|
||||
private String modelStatus;
|
||||
|
||||
/**
|
||||
* 责任部门
|
||||
*/
|
||||
private String authDept;
|
||||
|
||||
/**
|
||||
* 评估人
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 评估结果
|
||||
*/
|
||||
private String result;
|
||||
|
||||
/**
|
||||
* 问题描述
|
||||
*/
|
||||
private String description;
|
||||
|
||||
/**
|
||||
* 不满足要求的现状
|
||||
*/
|
||||
private String unsatisfyRequire;
|
||||
|
||||
/**
|
||||
* 整改方案
|
||||
*/
|
||||
private String correctionSolution;
|
||||
|
||||
/**
|
||||
* 整改费用
|
||||
*/
|
||||
private String correctionCost;
|
||||
|
||||
/**
|
||||
* 与其他项目共用性
|
||||
*/
|
||||
private String commonality;
|
||||
|
||||
/**
|
||||
* 共用后本项目所需费用
|
||||
*/
|
||||
private String commonalityCost;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 佐证材料
|
||||
*/
|
||||
private String material;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.jero.modules.assessmentLibrary.mapper;
|
||||
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsConformityAssessmentLibraryDetail;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_conformity_assessment_library_detail】的数据库操作Mapper
|
||||
* @createDate 2024-06-24 14:47:43
|
||||
* @Entity com.jero.modules.laws.assessment.entity.LawsConformityAssessmentLibraryDetail
|
||||
*/
|
||||
public interface LawsConformityAssessmentLibraryDetailMapper extends BaseMapper<LawsConformityAssessmentLibraryDetail> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.jero.modules.assessmentLibrary.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsConformityAssessmentLibrary;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_conformity_assessment_library(法规符合性评估库)】的数据库操作Mapper
|
||||
* @createDate 2024-06-24 14:47:19
|
||||
* @Entity com.jero.modules.laws.assessment.entity.LawsConformityAssessmentLibrary
|
||||
*/
|
||||
public interface LawsConformityAssessmentLibraryMapper extends BaseMapper<LawsConformityAssessmentLibrary> {
|
||||
|
||||
Page<LawsConformityAssessmentLibrary> queryByPage(Page<LawsConformityAssessmentLibrary> page, QueryWrapper<LawsConformityAssessmentLibrary> queryWrapper);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.jero.modules.assessmentLibrary.mapper;
|
||||
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsEvaluationNotMetLibraryDetail;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_evaluation_not_met_library_detail】的数据库操作Mapper
|
||||
* @createDate 2024-06-24 14:48:05
|
||||
* @Entity com.jero.modules.laws.assessment.entity.LawsEvaluationNotMetLibraryDetail
|
||||
*/
|
||||
public interface LawsEvaluationNotMetLibraryDetailMapper extends BaseMapper<LawsEvaluationNotMetLibraryDetail> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package com.jero.modules.assessmentLibrary.mapper;
|
||||
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsEvaluationNotMetLibrary;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_evaluation_not_met_library(不符合项库)】的数据库操作Mapper
|
||||
* @createDate 2024-06-24 14:48:02
|
||||
* @Entity com.jero.modules.laws.assessment.entity.LawsEvaluationNotMetLibrary
|
||||
*/
|
||||
public interface LawsEvaluationNotMetLibraryMapper extends BaseMapper<LawsEvaluationNotMetLibrary> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
<?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.jero.modules.assessment.mapper.LawsConformityAssessmentLibraryDetailMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.assessmentLibrary.entity.LawsConformityAssessmentLibraryDetail">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="orgCode" column="org_code" jdbcType="VARCHAR"/>
|
||||
<result property="termNumber" column="term_number" jdbcType="VARCHAR"/>
|
||||
<result property="termContent" column="term_content" jdbcType="VARCHAR"/>
|
||||
<result property="model" column="model" jdbcType="VARCHAR"/>
|
||||
<result property="modelStatus" column="model_status" jdbcType="VARCHAR"/>
|
||||
<result property="authDept" column="auth_dept" jdbcType="VARCHAR"/>
|
||||
<result property="userId" column="user_id" jdbcType="VARCHAR"/>
|
||||
<result property="result" column="result" jdbcType="VARCHAR"/>
|
||||
<result property="description" column="description" jdbcType="VARCHAR"/>
|
||||
<result property="unsatisfyRequire" column="unsatisfy_require" jdbcType="VARCHAR"/>
|
||||
<result property="correctionSolution" column="correction_solution" jdbcType="VARCHAR"/>
|
||||
<result property="correctionCost" column="correction_cost" jdbcType="VARCHAR"/>
|
||||
<result property="commonality" column="commonality" jdbcType="VARCHAR"/>
|
||||
<result property="commonalityCost" column="commonality_cost" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
<result property="material" column="material" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,create_by,create_time,
|
||||
update_by,update_time,org_code,
|
||||
term_number,term_content,model,
|
||||
model_status,auth_dept,user_id,
|
||||
result,description,unsatisfy_require,
|
||||
correction_solution,correction_cost,commonality,
|
||||
commonality_cost,remark,material
|
||||
</sql>
|
||||
</mapper>
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
<?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.jero.modules.assessment.mapper.LawsConformityAssessmentLibraryMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.assessmentLibrary.entity.LawsConformityAssessmentLibrary">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="source" column="source" jdbcType="VARCHAR"/>
|
||||
<result property="standardId" column="standard_id" jdbcType="VARCHAR"/>
|
||||
<result property="standardNumber" column="standard_number" jdbcType="VARCHAR"/>
|
||||
<result property="standardName" column="standard_name" jdbcType="VARCHAR"/>
|
||||
<result property="valuationTime" column="valuation_time" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,source,standard_id,
|
||||
standard_number,standard_name,valuation_time
|
||||
</sql>
|
||||
|
||||
<select id="queryByPage" resultType="com.jero.modules.assessmentLibrary.entity.LawsConformityAssessmentLibrary">
|
||||
select
|
||||
cs.id,
|
||||
cs.standard_id,
|
||||
d.standard_number,
|
||||
d.standard_name,
|
||||
d.applicable_market
|
||||
from laws_conformity_assessment_library cs
|
||||
left join laws_domestic_standard as d on d.id = cs.standard_id
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
</mapper>
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
<?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.jero.modules.assessment.mapper.LawsEvaluationNotMetLibraryDetailMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.assessmentLibrary.entity.LawsEvaluationNotMetLibraryDetail">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="orgCode" column="org_code" jdbcType="VARCHAR"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
|
||||
<result property="termNumber" column="term_number" jdbcType="VARCHAR"/>
|
||||
<result property="termContent" column="term_content" jdbcType="VARCHAR"/>
|
||||
<result property="model" column="model" jdbcType="VARCHAR"/>
|
||||
<result property="modelStatus" column="model_status" jdbcType="VARCHAR"/>
|
||||
<result property="authDept" column="auth_dept" jdbcType="VARCHAR"/>
|
||||
<result property="userId" column="user_id" jdbcType="VARCHAR"/>
|
||||
<result property="result" column="result" jdbcType="VARCHAR"/>
|
||||
<result property="description" column="description" jdbcType="VARCHAR"/>
|
||||
<result property="unsatisfyRequire" column="unsatisfy_require" jdbcType="VARCHAR"/>
|
||||
<result property="correctionSolution" column="correction_solution" jdbcType="VARCHAR"/>
|
||||
<result property="correctionCost" column="correction_cost" jdbcType="VARCHAR"/>
|
||||
<result property="commonality" column="commonality" jdbcType="VARCHAR"/>
|
||||
<result property="commonalityCost" column="commonality_cost" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="remark" jdbcType="VARCHAR"/>
|
||||
<result property="material" column="material" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,org_code,create_by,
|
||||
create_time,update_by,update_time,
|
||||
del_flag,term_number,term_content,
|
||||
model,model_status,auth_dept,
|
||||
user_id,result,description,
|
||||
unsatisfy_require,correction_solution,correction_cost,
|
||||
commonality,commonality_cost,remark,
|
||||
material
|
||||
</sql>
|
||||
</mapper>
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
<?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.jero.modules.assessment.mapper.LawsEvaluationNotMetLibraryMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.assessmentLibrary.entity.LawsEvaluationNotMetLibrary">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="orgCode" column="org_code" jdbcType="VARCHAR"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
|
||||
<result property="source" column="source" jdbcType="VARCHAR"/>
|
||||
<result property="standardId" column="standard_id" jdbcType="VARCHAR"/>
|
||||
<result property="standardNumber" column="standard_number" jdbcType="VARCHAR"/>
|
||||
<result property="standardName" column="standard_name" jdbcType="VARCHAR"/>
|
||||
<result property="applicableMarket" column="applicable_market" jdbcType="VARCHAR"/>
|
||||
<result property="evaluateDate" column="evaluate_date" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,org_code,create_by,
|
||||
create_time,update_by,update_time,
|
||||
del_flag,source,standard_id,
|
||||
standard_number,standard_name,applicable_market,
|
||||
evaluate_date
|
||||
</sql>
|
||||
</mapper>
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package com.jero.modules.assessmentLibrary.service;
|
||||
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsConformityAssessmentLibraryDetail;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_conformity_assessment_library_detail】的数据库操作Service
|
||||
* @createDate 2024-06-24 14:47:43
|
||||
*/
|
||||
public interface ILawsConformityAssessmentLibraryDetailService extends IService<LawsConformityAssessmentLibraryDetail> {
|
||||
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.jero.modules.assessmentLibrary.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsConformityAssessmentLibrary;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_conformity_assessment_library(法规符合性评估库)】的数据库操作Service
|
||||
* @createDate 2024-06-24 14:47:19
|
||||
*/
|
||||
public interface ILawsConformityAssessmentLibraryService extends IService<LawsConformityAssessmentLibrary> {
|
||||
|
||||
IPage<LawsConformityAssessmentLibrary> queryPage(LawsConformityAssessmentLibrary lawsConformityAssessmentLibrary, Integer pageNo, Integer pageSize);
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package com.jero.modules.assessmentLibrary.service;
|
||||
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsEvaluationNotMetLibraryDetail;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_evaluation_not_met_library_detail】的数据库操作Service
|
||||
* @createDate 2024-06-24 14:48:05
|
||||
*/
|
||||
public interface ILawsEvaluationNotMetLibraryDetailService extends IService<LawsEvaluationNotMetLibraryDetail> {
|
||||
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package com.jero.modules.assessmentLibrary.service;
|
||||
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsEvaluationNotMetLibrary;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_evaluation_not_met_library(不符合项库)】的数据库操作Service
|
||||
* @createDate 2024-06-24 14:48:02
|
||||
*/
|
||||
public interface ILawsEvaluationNotMetLibraryService extends IService<LawsEvaluationNotMetLibrary> {
|
||||
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.jero.modules.assessmentLibrary.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsConformityAssessmentLibraryDetail;
|
||||
import com.jero.modules.assessmentLibrary.service.ILawsConformityAssessmentLibraryDetailService;
|
||||
import com.jero.modules.assessmentLibrary.mapper.LawsConformityAssessmentLibraryDetailMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_conformity_assessment_library_detail】的数据库操作Service实现
|
||||
* @createDate 2024-06-24 14:47:43
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class LawsConformityAssessmentLibraryDetailServiceImpl extends ServiceImpl<LawsConformityAssessmentLibraryDetailMapper, LawsConformityAssessmentLibraryDetail>
|
||||
implements ILawsConformityAssessmentLibraryDetailService {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
package com.jero.modules.assessmentLibrary.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsConformityAssessmentLibrary;
|
||||
import com.jero.modules.assessmentLibrary.service.ILawsConformityAssessmentLibraryService;
|
||||
import com.jero.modules.assessmentLibrary.mapper.LawsConformityAssessmentLibraryMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import static com.jero.modules.laws.common.constant.FieldCommon.STANDARD_NAME;
|
||||
import static com.jero.modules.laws.common.constant.FieldCommon.STANDARD_NUMBER;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_conformity_assessment_library(法规符合性评估库)】的数据库操作Service实现
|
||||
* @createDate 2024-06-24 14:47:19
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class LawsConformityAssessmentLibraryServiceImpl extends ServiceImpl<LawsConformityAssessmentLibraryMapper, LawsConformityAssessmentLibrary>
|
||||
implements ILawsConformityAssessmentLibraryService {
|
||||
|
||||
@Resource
|
||||
private LawsConformityAssessmentLibraryMapper lawsConformityAssessmentLibraryMapper;
|
||||
|
||||
@Override
|
||||
public IPage<LawsConformityAssessmentLibrary> queryPage(LawsConformityAssessmentLibrary lawsConformityAssessmentLibrary, Integer pageNo, Integer pageSize) {
|
||||
// TODO 数据权限
|
||||
QueryWrapper<LawsConformityAssessmentLibrary> queryWrapper = new QueryWrapper<>();
|
||||
Page<LawsConformityAssessmentLibrary> page = new Page<>(pageNo, pageSize);
|
||||
queryWrapper.like(StringUtils.isNotBlank(lawsConformityAssessmentLibrary.getStandardNumber()),
|
||||
STANDARD_NUMBER, lawsConformityAssessmentLibrary.getStandardNumber());
|
||||
queryWrapper.like(StringUtils.isNotBlank(lawsConformityAssessmentLibrary.getStandardName()),
|
||||
STANDARD_NAME, lawsConformityAssessmentLibrary.getStandardName());
|
||||
queryWrapper.eq(StringUtils.isNotBlank(lawsConformityAssessmentLibrary.getStandardName()),
|
||||
STANDARD_NAME, lawsConformityAssessmentLibrary.getStandardName());
|
||||
queryWrapper.between(lawsConformityAssessmentLibrary.getValuationTime() != null,
|
||||
"valuation_time", lawsConformityAssessmentLibrary.getStartValuationTime(), lawsConformityAssessmentLibrary.getEndValuationTime());
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
Page<LawsConformityAssessmentLibrary> result = lawsConformityAssessmentLibraryMapper.queryByPage(page, queryWrapper);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.jero.modules.assessmentLibrary.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsEvaluationNotMetLibraryDetail;
|
||||
import com.jero.modules.assessmentLibrary.service.ILawsEvaluationNotMetLibraryDetailService;
|
||||
import com.jero.modules.assessmentLibrary.mapper.LawsEvaluationNotMetLibraryDetailMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_evaluation_not_met_library_detail】的数据库操作Service实现
|
||||
* @createDate 2024-06-24 14:48:05
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class LawsEvaluationNotMetLibraryDetailServiceImpl extends ServiceImpl<LawsEvaluationNotMetLibraryDetailMapper, LawsEvaluationNotMetLibraryDetail>
|
||||
implements ILawsEvaluationNotMetLibraryDetailService {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package com.jero.modules.assessmentLibrary.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.modules.assessmentLibrary.entity.LawsEvaluationNotMetLibrary;
|
||||
import com.jero.modules.assessmentLibrary.mapper.LawsEvaluationNotMetLibraryMapper;
|
||||
import com.jero.modules.assessmentLibrary.service.ILawsEvaluationNotMetLibraryService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author ThinkBook
|
||||
* @description 针对表【laws_evaluation_not_met_library(不符合项库)】的数据库操作Service实现
|
||||
* @createDate 2024-06-24 14:48:02
|
||||
*/
|
||||
@Service
|
||||
@Slf4j
|
||||
public class LawsEvaluationNotMetLibraryServiceImpl extends ServiceImpl<LawsEvaluationNotMetLibraryMapper, LawsEvaluationNotMetLibrary>
|
||||
implements ILawsEvaluationNotMetLibraryService {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
-19
@@ -1,19 +0,0 @@
|
||||
<?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.jero.modules.activiti.process.demo.mapper.ProcessDemoMapper">
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.activiti.process.demo.entity.ProcessDemo">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table process_demo-->
|
||||
<result column="id" jdbcType="VARCHAR" property="id" />
|
||||
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="org_code" jdbcType="VARCHAR" property="orgCode" />
|
||||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, create_by, create_time, update_by, update_time, org_code, del_flag
|
||||
</sql>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user