Browse Source

执法端,监督端-新增其他原因字段

dev-V1.10.2-temp
niujiyi 3 months ago
parent
commit
a48fbf9b58
  1. 5
      zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/domain/bo/EnforcementRegistrationBo.java
  2. 4
      zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/domain/vo/EnforcementRegistrationVo.java
  3. 3
      zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/EnforcementRegistrationMapper.xml
  4. 2
      zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/report/EnforcementRegistrationEINOFTReportMapper.xml
  5. 11
      zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/report/EnforcementRegistrationReportMapper.xml
  6. 3
      zdxt-modules/zdxt-system/src/main/java/org/dromara/system/controller/system/SysDictDataController.java
  7. 2
      zdxt-modules/zdxt-system/src/main/java/org/dromara/system/service/impl/SysDictTypeServiceImpl.java

5
zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/domain/bo/EnforcementRegistrationBo.java

@ -321,4 +321,9 @@ public class EnforcementRegistrationBo extends BaseEntity {
*/ */
private Integer warnType; private Integer warnType;
/**
* 其他原因
*/
private String otherReasons;
} }

4
zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/domain/vo/EnforcementRegistrationVo.java

@ -410,4 +410,8 @@ public class EnforcementRegistrationVo implements Serializable {
private List<ZdxtFileVo> fileList; private List<ZdxtFileVo> fileList;
/**
* 其他原因
*/
private String otherReasons;
} }

3
zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/EnforcementRegistrationMapper.xml

@ -315,6 +315,7 @@
<if test="lawEnforceCategory != null and lawEnforceCategory!=''"> law_enforce_category = #{lawEnforceCategory},</if> <if test="lawEnforceCategory != null and lawEnforceCategory!=''"> law_enforce_category = #{lawEnforceCategory},</if>
<if test="entrustDeptId != null and entrustDeptId!=''"> entrust_dept_id=#{entrustDeptId},</if> <if test="entrustDeptId != null and entrustDeptId!=''"> entrust_dept_id=#{entrustDeptId},</if>
<if test="entrustDeptName != null and entrustDeptName!=''"> entrust_dept_name=#{entrustDeptName},</if> <if test="entrustDeptName != null and entrustDeptName!=''"> entrust_dept_name=#{entrustDeptName},</if>
<if test="otherReasons != null and otherReasons != ''"> other_reasons = #{otherReasons},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
@ -383,6 +384,7 @@
<if test="lawEnforceCategory != null and lawEnforceCategory!=''"> law_enforce_category,</if> <if test="lawEnforceCategory != null and lawEnforceCategory!=''"> law_enforce_category,</if>
<if test="entrustDeptId != null and entrustDeptId!=''"> entrust_dept_id,</if> <if test="entrustDeptId != null and entrustDeptId!=''"> entrust_dept_id,</if>
<if test="entrustDeptName != null and entrustDeptName!=''"> entrust_dept_name,</if> <if test="entrustDeptName != null and entrustDeptName!=''"> entrust_dept_name,</if>
<if test="otherReasons != null and otherReasons != ''"> other_reasons,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">#{id},</if> <if test="id != null and id != ''">#{id},</if>
@ -437,6 +439,7 @@
<if test="lawEnforceCategory != null and lawEnforceCategory!=''"> #{lawEnforceCategory},</if> <if test="lawEnforceCategory != null and lawEnforceCategory!=''"> #{lawEnforceCategory},</if>
<if test="entrustDeptId != null and entrustDeptId!=''"> #{entrustDeptId},</if> <if test="entrustDeptId != null and entrustDeptId!=''"> #{entrustDeptId},</if>
<if test="entrustDeptName != null and entrustDeptName!=''"> #{entrustDeptName},</if> <if test="entrustDeptName != null and entrustDeptName!=''"> #{entrustDeptName},</if>
<if test="otherReasons != null and otherReasons != ''"> #{otherReasons},</if>
</trim> </trim>
</insert> </insert>

2
zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/report/EnforcementRegistrationEINOFTReportMapper.xml

@ -41,7 +41,7 @@
<where> <where>
<include refid="einoftWhereCondition"/> <include refid="einoftWhereCondition"/>
</where> </where>
GROUP BY er.enterprise_number GROUP BY er.enterprise_number, er.enterprise_name, er.district, er.street
) t ) t
<where> <where>
<if test="bo.num != null and bo.num != ''"> <if test="bo.num != null and bo.num != ''">

11
zdxt-modules/zdxt-enforcement-code/src/main/resources/mapper/enforcementcode/report/EnforcementRegistrationReportMapper.xml

@ -152,7 +152,8 @@
er.is_evaluate, er.law_id, er.law_text, er.is_evaluate, er.law_id, er.law_text,
er.has_union, er.has_auto, er.union_no, er.law_enforce_category, er.has_union, er.has_auto, er.union_no, er.law_enforce_category,
er.entrust_dept_id, er.entrust_dept_name, er.entrust_dept_id, er.entrust_dept_name,
er.enterprise_address, er.district, er.street, er.zone, er.is_real_union er.enterprise_address, er.district, er.street, er.zone, er.is_real_union,
er.other_reasons
FROM enforcement_registration er FROM enforcement_registration er
LEFT JOIN sys_dict_data area LEFT JOIN sys_dict_data area
ON area.dict_type = 'address_type' ON area.dict_type = 'address_type'
@ -351,7 +352,9 @@
<include refid="reportWhereCondition"/> <include refid="reportWhereCondition"/>
AND enterprise_number IS NOT NULL AND enterprise_number != '' AND enterprise_number IS NOT NULL AND enterprise_number != ''
</where> </where>
GROUP BY enterprise_number GROUP BY enterprise_number, enterprise_name, district, street,
bureau_dept_name, law_enforcer, law_enforcer_two,
law_enforcement_item_text, enforcement_time
ORDER BY enforcement_time DESC ORDER BY enforcement_time DESC
) t ) t
<where> <where>
@ -453,7 +456,9 @@
${dataFilter} ${dataFilter}
</if> </if>
</where> </where>
GROUP BY er.enterprise_number GROUP BY er.enterprise_number, er.enterprise_name, er.district, er.street,
er.bureau_dept_id, er.bureau_dept_name, er.law_enforcer, er.law_enforcer_two,
er.law_enforcement_item_text
) t ) t
LEFT JOIN sys_dict_data area LEFT JOIN sys_dict_data area
ON area.dict_type = 'address_type' ON area.dict_type = 'address_type'

3
zdxt-modules/zdxt-system/src/main/java/org/dromara/system/controller/system/SysDictDataController.java

@ -1,6 +1,7 @@
package org.dromara.system.controller.system; package org.dromara.system.controller.system;
import cn.dev33.satoken.annotation.SaCheckPermission; import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.annotation.SaIgnore;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import jakarta.servlet.http.HttpServletResponse; import jakarta.servlet.http.HttpServletResponse;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
@ -81,7 +82,7 @@ public class SysDictDataController extends BaseController {
} }
return R.ok(data); return R.ok(data);
} }
@SaIgnore
@GetMapping(value = "/dictType") @GetMapping(value = "/dictType")
public R<List<SysDictDataVo>> dictTypes(String dictType) { public R<List<SysDictDataVo>> dictTypes(String dictType) {
List<SysDictDataVo> data = dictTypeService.selectDictDataByType(dictType); List<SysDictDataVo> data = dictTypeService.selectDictDataByType(dictType);

2
zdxt-modules/zdxt-system/src/main/java/org/dromara/system/service/impl/SysDictTypeServiceImpl.java

@ -101,7 +101,7 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService, DictService
* @param dictType 字典类型 * @param dictType 字典类型
* @return 字典数据集合信息 * @return 字典数据集合信息
*/ */
@Cacheable(cacheNames = CacheNames.SYS_DICT, key = "#dictType") //@Cacheable(cacheNames = CacheNames.SYS_DICT, key = "#dictType")
@Override @Override
public List<SysDictDataVo> selectDictDataByType(String dictType) { public List<SysDictDataVo> selectDictDataByType(String dictType) {
List<SysDictDataVo> dictDatas = dictDataMapper.selectDictDataByType(dictType); List<SysDictDataVo> dictDatas = dictDataMapper.selectDictDataByType(dictType);

Loading…
Cancel
Save