laozt 1 year ago
commit 1995e0e64f

@ -234,5 +234,22 @@ public class BPlanEnterprise {
private Date examineEndTime; private Date examineEndTime;
/**
*
*/
@ApiModelProperty(value = "上次检查时间")
private Date checkTime;
/**
*
*/
@ApiModelProperty(value = "企业信用代码")
private String uuto;
} }

@ -223,4 +223,11 @@ public class BPlanEnterpriseRequest {
@ApiModelProperty(value = "上次检查时间") @ApiModelProperty(value = "上次检查时间")
private Date examineEndTime; private Date examineEndTime;
/**
*
*/
@ApiModelProperty(value = "企业信用代码")
private String uuto;
} }

@ -41,13 +41,13 @@ public class checkResultRequest {
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "0未检查 1已检查") @ApiModelProperty(value = "0未检查 1已检查")
private Integer checkStatus; private String checkStatus;
/** /**
* 0稿 1 * 0稿 1
*/ */
@ApiModelProperty(value = "0草稿 1正式") @ApiModelProperty(value = "0草稿 1正式")
private Integer status; private String status;
} }

@ -228,4 +228,16 @@ public class BPlanEnterpriseResponse extends BaseEntity {
private Date examineEndTime; private Date examineEndTime;
/**
*
*/
@ApiModelProperty(value = "上次检查时间")
private Date checkTime;
/**
*
*/
@ApiModelProperty(value = "企业信用代码")
private String uuto;
} }

@ -174,7 +174,7 @@ public class BPlanEnterpriseZhifaResponse {
* 0 1 * 0 1
*/ */
@ApiModelProperty(value = "0未检查 1已检查") @ApiModelProperty(value = "0未检查 1已检查")
private Integer checkStatus; private Long checkStatus;
/** /**

@ -197,7 +197,6 @@
LEFT JOIN ( LEFT JOIN (
SELECT USC_CODE, MAX(EXAMINE_END_TIME) AS MAX_EXAMINE_END_TIME SELECT USC_CODE, MAX(EXAMINE_END_TIME) AS MAX_EXAMINE_END_TIME
FROM sz_enfor_examine FROM sz_enfor_examine
WHERE YEAR(EXAMINE_END_TIME) = YEAR(CURDATE())
GROUP BY USC_CODE GROUP BY USC_CODE
) e ON a.enterprise_id = e.USC_CODE COLLATE utf8mb4_unicode_ci; ) e ON a.enterprise_id = e.USC_CODE COLLATE utf8mb4_unicode_ci;
</select> </select>

@ -29,7 +29,9 @@
status, status,
check_status, check_status,
check_id, check_id,
check_ageing check_ageing,
uuto,
check_time
from b_plan_enterprise from b_plan_enterprise
</sql> </sql>
@ -56,6 +58,8 @@
a.law_areas, a.law_areas,
a.law_level, a.law_level,
a.law_hierarchy, a.law_hierarchy,
a.uuto,
a.check_time,
a.planned_month as plannedMonth, a.planned_month as plannedMonth,
a.status, a.status,
a.check_status, a.check_status,
@ -136,6 +140,8 @@
a.law_hierarchy, a.law_hierarchy,
a.planned_month, a.planned_month,
a.status, a.status,
a.uuto,
a.check_time,
a.check_status, a.check_status,
a.check_id, a.check_id,
a.check_ageing, a.check_ageing,
@ -252,6 +258,8 @@
a.user_id, a.user_id,
a.dept_id, a.dept_id,
a.district, a.district,
a.uuto,
a.check_time,
a.planned_year, a.planned_year,
a.is_point, a.is_point,
a.enterprise_name as entprName a.enterprise_name as entprName
@ -318,7 +326,7 @@
</select> </select>
<select id="selectUpdateAll" resultType="com.ruoyi.programManagement.entity.BPlanEnterprise"> <select id="selectUpdateAll" resultType="com.ruoyi.programManagement.entity.BPlanEnterprise">
SELECT a.id, a.enterprise_id, a.district, a.planned_year, a.is_point, a.enterprise_name, a.law_sort, a.law_areas, a.law_level, a.law_hierarchy, a.planned_month, a.status, SELECT a.id, a.enterprise_id, a.district, a.planned_year, a.is_point, a.enterprise_name, a.law_sort, a.law_areas, a.law_level, a.law_hierarchy, a.planned_month, a.status,e.MAX_EXAMINE_END_TIME as check_time,
CASE CASE
WHEN e.MAX_EXAMINE_END_TIME IS NULL THEN 0 WHEN e.MAX_EXAMINE_END_TIME IS NULL THEN 0
WHEN YEAR(e.MAX_EXAMINE_END_TIME) = a.planned_year AND MONTH(e.MAX_EXAMINE_END_TIME) = a.planned_month THEN 1 WHEN YEAR(e.MAX_EXAMINE_END_TIME) = a.planned_year AND MONTH(e.MAX_EXAMINE_END_TIME) = a.planned_month THEN 1
@ -372,6 +380,7 @@
<if test="remark != null">remark=#{remark},</if> <if test="remark != null">remark=#{remark},</if>
<if test="userId != null">user_id=#{userId},</if> <if test="userId != null">user_id=#{userId},</if>
<if test="deptId != null">dept_id=#{deptId},</if> <if test="deptId != null">dept_id=#{deptId},</if>
<if test="uuto != null">uuto =#{uuto},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
@ -401,6 +410,8 @@
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
<if test="userId != null">user_id,</if> <if test="userId != null">user_id,</if>
<if test="deptId != null">dept_id,</if> <if test="deptId != null">dept_id,</if>
<if test="uuto != null">uuto,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="enterpriseId != null">#{enterpriseId},</if> <if test="enterpriseId != null">#{enterpriseId},</if>
@ -423,6 +434,7 @@
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark},</if>
<if test="userId != null">#{userId},</if> <if test="userId != null">#{userId},</if>
<if test="deptId != null">#{deptId},</if> <if test="deptId != null">#{deptId},</if>
<if test="uuto != null">#{uuto},</if>
</trim> </trim>
</insert> </insert>

Loading…
Cancel
Save