Browse Source

监督端-法律法规代码生成

dev
niujiyi 5 days ago
parent
commit
7cba2a7dca
  1. 6
      zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelCityMapper.xml
  2. 6
      zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelDistrictMapper.xml
  3. 10
      zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelMapper.xml
  4. 40
      zdxt-modules/zdxt-system/src/main/resources/mapper/system/SysDeptMapper.xml

6
zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelCityMapper.xml

@ -205,7 +205,7 @@
and r.bureau_dept_id in <foreach collection="filterDepts" item="bureau_dept_id" open="(" separator="," close=")"> #{bureau_dept_id} </foreach> and r.bureau_dept_id in <foreach collection="filterDepts" item="bureau_dept_id" open="(" separator="," close=")"> #{bureau_dept_id} </foreach>
</if> </if>
<if test="params.dataScope != null and params.dataScope != ''"> ${params.dataScope} </if> <if test="params.dataScope != null and params.dataScope != ''"> ${params.dataScope} </if>
GROUP BY r.enterprise_number order by cnt desc limit #{pageSize} GROUP BY r.enterprise_number,r.enterprise_name order by cnt desc limit #{pageSize}
</select> </select>
<!-- 执法单位执法数量排行 --> <!-- 执法单位执法数量排行 -->
@ -218,7 +218,7 @@
and r.bureau_dept_id in <foreach collection="filterDepts" item="bureau_dept_id" open="(" separator="," close=")"> #{bureau_dept_id} </foreach> and r.bureau_dept_id in <foreach collection="filterDepts" item="bureau_dept_id" open="(" separator="," close=")"> #{bureau_dept_id} </foreach>
</if> </if>
<if test="params.dataScope != null and params.dataScope != ''"> ${params.dataScope} </if> <if test="params.dataScope != null and params.dataScope != ''"> ${params.dataScope} </if>
GROUP BY r.bureau_dept_id order by cnt desc limit #{pageSize} GROUP BY r.bureau_dept_id,r.bureau_dept_name order by cnt desc limit #{pageSize}
</select> </select>
<!-- 被投诉单位次数排行 --> <!-- 被投诉单位次数排行 -->
@ -227,7 +227,7 @@
<if test="beginTime != null and beginTime != ''"> and c.create_time &gt;= #{beginTime} </if> <if test="beginTime != null and beginTime != ''"> and c.create_time &gt;= #{beginTime} </if>
<if test="endTime != null and endTime != ''"> and c.create_time &lt; #{endTime} </if> <if test="endTime != null and endTime != ''"> and c.create_time &lt; #{endTime} </if>
<if test="bureauDeptId != null and bureauDeptId != ''"> and FIND_IN_SET(#{bureauDeptId}, c.complaint_department_ids) </if> <if test="bureauDeptId != null and bureauDeptId != ''"> and FIND_IN_SET(#{bureauDeptId}, c.complaint_department_ids) </if>
GROUP BY c.complaint_department_ids order by cnt desc limit #{pageSize} GROUP BY c.complaint_department_ids,c.complaint_departments order by cnt desc limit #{pageSize}
</select> </select>
<!-- 委托执法数量及占比 --> <!-- 委托执法数量及占比 -->

6
zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelDistrictMapper.xml

@ -217,7 +217,7 @@
and r.bureau_dept_id in <foreach collection="filterDepts" item="bureau_dept_id" open="(" separator="," close=")"> #{bureau_dept_id} </foreach> and r.bureau_dept_id in <foreach collection="filterDepts" item="bureau_dept_id" open="(" separator="," close=")"> #{bureau_dept_id} </foreach>
</if> </if>
<if test="params.dataScope != null and params.dataScope != ''"> ${params.dataScope} </if> <if test="params.dataScope != null and params.dataScope != ''"> ${params.dataScope} </if>
GROUP BY r.enterprise_number order by cnt desc limit #{pageSize} GROUP BY r.enterprise_number,r.enterprise_name order by cnt desc limit #{pageSize}
</select> </select>
<!-- 执法单位执法数量排行 --> <!-- 执法单位执法数量排行 -->
@ -231,7 +231,7 @@
and r.bureau_dept_id in <foreach collection="filterDepts" item="bureau_dept_id" open="(" separator="," close=")"> #{bureau_dept_id} </foreach> and r.bureau_dept_id in <foreach collection="filterDepts" item="bureau_dept_id" open="(" separator="," close=")"> #{bureau_dept_id} </foreach>
</if> </if>
<if test="params.dataScope != null and params.dataScope != ''"> ${params.dataScope} </if> <if test="params.dataScope != null and params.dataScope != ''"> ${params.dataScope} </if>
GROUP BY r.bureau_dept_id order by cnt desc limit #{pageSize} GROUP BY r.bureau_dept_id,r.bureau_dept_name order by cnt desc limit #{pageSize}
</select> </select>
<!-- 被投诉单位次数排行 --> <!-- 被投诉单位次数排行 -->
@ -240,7 +240,7 @@
<if test="beginTime != null and beginTime != ''"> and c.create_time &gt;= #{beginTime} </if> <if test="beginTime != null and beginTime != ''"> and c.create_time &gt;= #{beginTime} </if>
<if test="endTime != null and endTime != ''"> and c.create_time &lt; #{endTime} </if> <if test="endTime != null and endTime != ''"> and c.create_time &lt; #{endTime} </if>
<if test="bureauDeptId != null and bureauDeptId != ''"> and FIND_IN_SET(#{bureauDeptId}, c.complaint_department_ids) </if> <if test="bureauDeptId != null and bureauDeptId != ''"> and FIND_IN_SET(#{bureauDeptId}, c.complaint_department_ids) </if>
GROUP BY c.complaint_department_ids order by cnt desc limit #{pageSize} GROUP BY c.complaint_department_ids,c.complaint_departments order by cnt desc limit #{pageSize}
</select> </select>
<!-- 委托执法数量及占比 --> <!-- 委托执法数量及占比 -->

10
zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/StatisticalPanelMapper.xml

@ -1653,7 +1653,7 @@
${params.dataScope} ${params.dataScope}
</if> </if>
</where> </where>
group by DATE_FORMAT(enforcement_time, '%Y-%m') order by enforcement_time group by DATE_FORMAT(enforcement_time, '%Y-%m') order by MAX(enforcement_time)
</select> </select>
<!-- 非行政检查 --> <!-- 非行政检查 -->
<select id="analysis_non_enterprisesIns_time" parameterType="com.zdxt.enforcementcode.domain.bo.SixAnalysisParamsBo" resultType="java.util.Map"> <select id="analysis_non_enterprisesIns_time" parameterType="com.zdxt.enforcementcode.domain.bo.SixAnalysisParamsBo" resultType="java.util.Map">
@ -1679,7 +1679,7 @@
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
${params.dataScope} ${params.dataScope}
</if> </if>
group by DATE_FORMAT(enforcement_time, '%Y-%m') order by enforcement_time group by DATE_FORMAT(enforcement_time, '%Y-%m') order by MAX(enforcement_time)
</select> </select>
<!-- 企业 --> <!-- 企业 -->
<select id="analysis_enterprises_time" parameterType="com.zdxt.enforcementcode.domain.bo.SixAnalysisParamsBo" resultType="java.util.Map"> <select id="analysis_enterprises_time" parameterType="com.zdxt.enforcementcode.domain.bo.SixAnalysisParamsBo" resultType="java.util.Map">
@ -1711,7 +1711,7 @@
${params.dataScope} ${params.dataScope}
</if> </if>
</where> </where>
group by DATE_FORMAT(enforcement_time, '%Y-%m') order by enforcement_time group by DATE_FORMAT(enforcement_time, '%Y-%m') order by MAX(enforcement_time)
</select> </select>
<!-- 非行政检查类型统计 --> <!-- 非行政检查类型统计 -->
@ -1740,7 +1740,7 @@
${params.dataScope} ${params.dataScope}
</if> </if>
</where> </where>
group by r.law_enforcement_type group by r.law_enforcement_type,sdd.dict_label
</select> </select>
@ -1774,6 +1774,6 @@
${params.dataScope} ${params.dataScope}
</if> </if>
</where> </where>
group by r.law_enforce_category group by r.law_enforce_category,sdd.dict_label
</select> </select>
</mapper> </mapper>

40
zdxt-modules/zdxt-system/src/main/resources/mapper/system/SysDeptMapper.xml

@ -36,9 +36,9 @@
d.create_by as createBy, d.create_by as createBy,
d.create_time as createTime, d.create_time as createTime,
dept_type as deptType, dept_type as deptType,
d.kingdee_org_id as kingdeeOrgId, <!-- d.kingdee_org_id as kingdeeOrgId,
d.kingdee_org_parent_id as kingdeeOrgParentId, d.kingdee_org_parent_id as kingdeeOrgParentId,-->
tenant_code as tenantCode, <!--tenant_code as tenantCode,-->
organizationId, organizationId,
organizationParentId, organizationParentId,
zzLevel, zzLevel,
@ -46,7 +46,7 @@
mappingUnitParentId, mappingUnitParentId,
updateAt, updateAt,
createAt, createAt,
description, <!-- description,-->
effectOn, effectOn,
sequence, sequence,
isDeleted, isDeleted,
@ -61,24 +61,24 @@
taskId, taskId,
creditcode, creditcode,
zone, zone,
simpleName, <!-- simpleName,-->
isStatutoryOrg, <!-- isStatutoryOrg,-->
isActive, <!--isActive,-->
unitStatusCode, unitStatusCode,
unitStatus, unitStatus,
unitType, <!-- unitType,-->
xzqhCode, <!-- xzqhCode-->
xzqh, <!-- xzqh,-->
isCGManager, <!-- isCGManager,
isBureauOffice, isBureauOffice,-->
unitTypeCode, unitTypeCode
dwxzCode, <!-- dwxzCode,
dwxz, dwxz,
unitSysTypeCode, unitSysTypeCode,
unitSysType, unitSysType,
dwxtlbms, dwxtlbms,
unitLevelCode, unitLevelCode,
unitLevel unitLevel-->
from from
sys_dept d sys_dept d
</sql> </sql>

Loading…
Cancel
Save