Эх сурвалжийг харах

1.办事指南
2.优化转发接口

wangyuzhe 2 сар өмнө
parent
commit
0840218c39

+ 10 - 0
src/main/java/org/springblade/common/controller/ParamsConvert.java

@@ -59,6 +59,10 @@ public class ParamsConvert {
 			String deptId = "";
 			String roleId = "";
 			return method.invoke(proxyObject, entityVo, deptId, roleId);
+		} else if (className.equals("bladeTokenEndPoint") && method.getName().equals("token")) {
+			// app登录
+			return method.invoke(proxyObject, "000000", params.get("username").toString(), params.get("password").toString(), "sfzh"
+				, "deptId", "roleId", params.get("code").toString());
 		} else if (className.equals("signController") && method.getName().equals("save")) {
 			//考勤
 			jsonObject.putAll(params);
@@ -510,6 +514,12 @@ public class ParamsConvert {
 			jsonObject.putAll(params);
 			UserJwdEntity entityVo = jsonObject.toJavaObject(UserJwdEntity.class);
 			return method.invoke(proxyObject, entityVo);
+		} else if (className.equals("dictBsznController") && method.getName().equals("bsznList")) {
+			return method.invoke(proxyObject);
+		} else if (className.equals("dictBsznController") && method.getName().equals("selectListByMc")) {
+			return method.invoke(proxyObject, params);
+		} else if (className.equals("dictBsznController") && method.getName().equals("detailById")) {
+			return method.invoke(proxyObject, params);
 		} else if (className.equals("rhzfFwqzController") && method.getName().equals("save")) {
 			jsonObject.putAll(params);
 			RhzfFwqzEntity rhzfFwqzEntity = jsonObject.toJavaObject(RhzfFwqzEntity.class);

+ 10 - 28
src/main/java/org/springblade/common/controller/ZfController.java

@@ -43,35 +43,11 @@ public class ZfController extends BladeController {
 		ResponseVO responseVO = new ResponseVO();
 		responseVO.getData().getDataList().add(new DataListVO());
 		FieldValuesVO fieldValuesVO = new FieldValuesVO();
-		if (requestCommonVO.getClassName().equals("bladeTokenEndPoint")) {
-			// 登录
-			if (requestCommonVO.getMethodName().equals("token3")) {
-				String className = requestCommonVO.getClassName();
-				String methodName = requestCommonVO.getMethodName();
-				className = StringUtils.uncapitalize(className);
-				Object proxyObject = ReflectUtil.getBean(className);
-				Method[] methods = proxyObject.getClass().getMethods();
-				Method myMethod = null;
-				for (Method method : methods) {
-					if (method.getName().equalsIgnoreCase(methodName)) {
-						myMethod = method;
-						break;
-					}
-				}
-				Map<String, Object> params = new HashMap<>();
-				params.put("username", requestCommonVO.getUsername());
-				params.put("password", requestCommonVO.getPassword());
-				if (myMethod != null) {
-					Object resObj = ParamsConvert.paramsConvert(proxyObject, className, myMethod, params);
-					fieldValuesVO.setValue(JSONObject.toJSONString(resObj));
-				}
-			}
-		} else if (AuthUtil.getUserId() == null || AuthUtil.getUserId().equals(-1L)) {
+		if ((AuthUtil.getUserId() == null || AuthUtil.getUserId().equals(-1L)) && !requestCommonVO.getClassName().equals("bladeTokenEndPoint")) {
 			fieldValuesVO.setValue(JSONObject.toJSONString(R.fail(401, "请求未授权,请重新登录")));
-		} else {
-			String className = requestCommonVO.getClassName();
+		} else if (!requestCommonVO.getClassName().equals("")) {
+			String className = StringUtils.uncapitalize(requestCommonVO.getClassName());
 			String methodName = requestCommonVO.getMethodName();
-			className = StringUtils.uncapitalize(className);
 			Object proxyObject = ReflectUtil.getBean(className);
 			Method[] methods = proxyObject.getClass().getMethods();
 			Method myMethod = null;
@@ -81,7 +57,13 @@ public class ZfController extends BladeController {
 					break;
 				}
 			}
-			Map<String, Object> params = requestCommonVO.getParams();
+			Map<String, Object> params = new HashMap<>();
+			if (requestCommonVO.getMethodName().equals("token3")) {
+				params.put("username", requestCommonVO.getUsername());
+				params.put("password", requestCommonVO.getPassword());
+			} else {
+				params = requestCommonVO.getParams();
+			}
 			if (myMethod != null) {
 				Object resObj = ParamsConvert.paramsConvert(proxyObject, className, myMethod, params);
 				fieldValuesVO.setValue(JSONObject.toJSONString(resObj));

+ 186 - 0
src/main/java/org/springblade/modules/dictBszn/controller/DictBsznController.java

@@ -0,0 +1,186 @@
+/**
+ * BladeX Commercial License Agreement
+ * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
+ * <p>
+ * Use of this software is governed by the Commercial License Agreement
+ * obtained after purchasing a license from BladeX.
+ * <p>
+ * 1. This software is for development use only under a valid license
+ * from BladeX.
+ * <p>
+ * 2. Redistribution of this software's source code to any third party
+ * without a commercial license is strictly prohibited.
+ * <p>
+ * 3. Licensees may copyright their own code but cannot use segments
+ * from this software for such purposes. Copyright of this software
+ * remains with BladeX.
+ * <p>
+ * Using this software signifies agreement to this License, and the software
+ * must not be used for illegal purposes.
+ * <p>
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
+ * not liable for any claims arising from secondary or illegal development.
+ * <p>
+ * Author: Chill Zhuang (bladejava@qq.com)
+ */
+package org.springblade.modules.dictBszn.controller;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
+import lombok.AllArgsConstructor;
+import org.springblade.core.boot.ctrl.BladeController;
+import org.springblade.core.excel.util.ExcelUtil;
+import org.springblade.core.mp.support.Condition;
+import org.springblade.core.mp.support.Query;
+import org.springblade.core.secure.BladeUser;
+import org.springblade.core.secure.annotation.PreAuth;
+import org.springblade.core.tool.api.R;
+import org.springblade.core.tool.constant.RoleConstant;
+import org.springblade.core.tool.utils.DateUtil;
+import org.springblade.core.tool.utils.Func;
+import org.springblade.modules.dictBszn.excel.DictBsznExcel;
+import org.springblade.modules.dictBszn.pojo.entity.DictBsznEntity;
+import org.springblade.modules.dictBszn.pojo.vo.BsznVO;
+import org.springblade.modules.dictBszn.pojo.vo.DictBsznVO;
+import org.springblade.modules.dictBszn.service.IDictBsznService;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import javax.validation.Valid;
+import java.util.List;
+import java.util.Map;
+
+/**
+ *  控制器
+ *
+ * @author BladeX
+ * @since 2024-10-31
+ */
+@RestController
+@AllArgsConstructor
+@RequestMapping("/dictBszn")
+public class DictBsznController extends BladeController {
+
+	private final IDictBsznService dictBsznService;
+
+	/**
+	 *  详情
+	 */
+	@GetMapping("/detail")
+	@ApiOperationSupport(order = 1)
+	public R<DictBsznEntity> detail(DictBsznEntity dictBszn) {
+		DictBsznEntity detail = dictBsznService.getOne(Condition.getQueryWrapper(dictBszn));
+		return R.data(detail);
+	}
+
+	/**
+	 *  分页
+	 */
+	@GetMapping("/list")
+	@ApiOperationSupport(order = 2)
+	public R<IPage<DictBsznEntity>> list(@RequestParam Map<String, Object> dictBszn, Query query) {
+		IPage<DictBsznEntity> pages = dictBsznService.page(Condition.getPage(query), Condition.getQueryWrapper(dictBszn, DictBsznEntity.class));
+		return R.data(pages);
+	}
+
+
+	/**
+	 *  自定义分页
+	 */
+	@GetMapping("/page")
+	@ApiOperationSupport(order = 3)
+	public R<IPage<DictBsznVO>> page(DictBsznVO dictBszn, Query query) {
+		IPage<DictBsznVO> pages = dictBsznService.selectDictBsznPage(Condition.getPage(query), dictBszn);
+		return R.data(pages);
+	}
+
+	/**
+	 *  新增
+	 */
+	@PostMapping("/save")
+	@ApiOperationSupport(order = 4)
+	public R save(@Valid @RequestBody DictBsznEntity dictBszn) {
+		return R.status(dictBsznService.save(dictBszn));
+	}
+
+	/**
+	 *  修改
+	 */
+	@PostMapping("/update")
+	@ApiOperationSupport(order = 5)
+	public R update(@Valid @RequestBody DictBsznEntity dictBszn) {
+		return R.status(dictBsznService.updateById(dictBszn));
+	}
+
+	/**
+	 *  新增或修改
+	 */
+	@PostMapping("/submit")
+	@ApiOperationSupport(order = 6)
+	public R submit(@Valid @RequestBody DictBsznEntity dictBszn) {
+		return R.status(dictBsznService.saveOrUpdate(dictBszn));
+	}
+
+	/**
+	 *  删除
+	 */
+	@PostMapping("/remove")
+	@ApiOperationSupport(order = 7)
+	public R remove(@RequestParam String ids) {
+		return R.status(dictBsznService.deleteLogic(Func.toLongList(ids)));
+	}
+
+	/**
+	 * 导出数据
+	 */
+	@PreAuth(RoleConstant.HAS_ROLE_ADMIN)
+	@GetMapping("/export-dictBszn")
+	@ApiOperationSupport(order = 8)
+	public void exportDictBszn(@RequestParam Map<String, Object> dictBszn, BladeUser bladeUser, HttpServletResponse response) {
+		QueryWrapper<DictBsznEntity> queryWrapper = Condition.getQueryWrapper(dictBszn, DictBsznEntity.class);
+		//if (!AuthUtil.isAdministrator()) {
+		//	queryWrapper.lambda().eq(DictBsznEntity::getTenantId, bladeUser.getTenantId());
+		//}
+		//queryWrapper.lambda().eq(DictBsznEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
+		List<DictBsznExcel> list = dictBsznService.exportDictBszn(queryWrapper);
+		ExcelUtil.export(response, "数据" + DateUtil.time(), "数据表", list, DictBsznExcel.class);
+	}
+
+	/**
+	 * 根据事项名称模糊搜索
+	 */
+	@GetMapping("selectListByMc")
+	public R selectListByMc(String dictValue) {
+		return R.data(dictBsznService.selectListByMc(dictValue));
+	}
+
+	/**
+	 * 根据id查看详情
+	 */
+	@GetMapping("detailById")
+	public R detailByIdv(Long id) {
+		return R.data(dictBsznService.detailById(id));
+	}
+
+	/**
+	 * 办事指南列表
+	 */
+	@GetMapping("bsznList")
+	public R bsznList() {
+		List<BsznVO> topList = dictBsznService.selectTop();
+		for (BsznVO top:topList) {
+			List<BsznVO> oneList = dictBsznService.selectOneList(top.value);
+			top.setChildren(oneList);
+			for (BsznVO one:oneList) {
+				List<BsznVO> twoList = dictBsznService.selectOneList(one.value);
+				one.setChildren(twoList);
+				for (BsznVO two:twoList) {
+					List<BsznVO> threeList = dictBsznService.selectOneList(two.value);
+					two.setChildren(threeList);
+				}
+			}
+		}
+		return R.data(topList);
+	}
+}

+ 149 - 0
src/main/java/org/springblade/modules/dictBszn/excel/DictBsznExcel.java

@@ -0,0 +1,149 @@
+/**
+ * BladeX Commercial License Agreement
+ * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
+ * <p>
+ * Use of this software is governed by the Commercial License Agreement
+ * obtained after purchasing a license from BladeX.
+ * <p>
+ * 1. This software is for development use only under a valid license
+ * from BladeX.
+ * <p>
+ * 2. Redistribution of this software's source code to any third party
+ * without a commercial license is strictly prohibited.
+ * <p>
+ * 3. Licensees may copyright their own code but cannot use segments
+ * from this software for such purposes. Copyright of this software
+ * remains with BladeX.
+ * <p>
+ * Using this software signifies agreement to this License, and the software
+ * must not be used for illegal purposes.
+ * <p>
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
+ * not liable for any claims arising from secondary or illegal development.
+ * <p>
+ * Author: Chill Zhuang (bladejava@qq.com)
+ */
+package org.springblade.modules.dictBszn.excel;
+
+
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.annotation.write.style.ColumnWidth;
+import com.alibaba.excel.annotation.write.style.ContentRowHeight;
+import com.alibaba.excel.annotation.write.style.HeadRowHeight;
+import lombok.Data;
+
+import java.io.Serializable;
+
+
+/**
+ *  Excel实体类
+ *
+ * @author BladeX
+ * @since 2024-10-31
+ */
+@Data
+@ColumnWidth(25)
+@HeadRowHeight(20)
+@ContentRowHeight(18)
+public class DictBsznExcel implements Serializable {
+
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private Long parentId;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String dictValue;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String sxlx;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String xzcj;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String fdsx;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String cnsx;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String bjlx;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String spjglx;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String spjgmc;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String sltj;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String sdyj;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String sfsf;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String sfbz;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String sfyj;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String sqcl;
+	/**
+	 *
+	 */
+	@ColumnWidth(20)
+	@ExcelProperty("")
+	private String bllc;
+
+}

+ 71 - 0
src/main/java/org/springblade/modules/dictBszn/mapper/DictBsznMapper.java

@@ -0,0 +1,71 @@
+/**
+ * BladeX Commercial License Agreement
+ * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
+ * <p>
+ * Use of this software is governed by the Commercial License Agreement
+ * obtained after purchasing a license from BladeX.
+ * <p>
+ * 1. This software is for development use only under a valid license
+ * from BladeX.
+ * <p>
+ * 2. Redistribution of this software's source code to any third party
+ * without a commercial license is strictly prohibited.
+ * <p>
+ * 3. Licensees may copyright their own code but cannot use segments
+ * from this software for such purposes. Copyright of this software
+ * remains with BladeX.
+ * <p>
+ * Using this software signifies agreement to this License, and the software
+ * must not be used for illegal purposes.
+ * <p>
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
+ * not liable for any claims arising from secondary or illegal development.
+ * <p>
+ * Author: Chill Zhuang (bladejava@qq.com)
+ */
+package org.springblade.modules.dictBszn.mapper;
+
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.apache.ibatis.annotations.Param;
+import org.springblade.modules.dictBszn.excel.DictBsznExcel;
+import org.springblade.modules.dictBszn.pojo.entity.DictBsznEntity;
+import org.springblade.modules.dictBszn.pojo.vo.BsznVO;
+import org.springblade.modules.dictBszn.pojo.vo.DictBsznVO;
+
+import java.util.List;
+
+/**
+ *  Mapper 接口
+ *
+ * @author BladeX
+ * @since 2024-10-31
+ */
+public interface DictBsznMapper extends BaseMapper<DictBsznEntity> {
+
+	/**
+	 * 自定义分页
+	 *
+	 * @param page 分页参数
+	 * @param dictBszn 查询参数
+	 * @return List<DictBsznVO>
+	 */
+	List<DictBsznVO> selectDictBsznPage(IPage page, DictBsznVO dictBszn);
+
+	/**
+	 * 获取导出数据
+	 *
+	 * @param queryWrapper 查询条件
+	 * @return List<DictBsznExcel>
+	 */
+	List<DictBsznExcel> exportDictBszn(@Param("ew") Wrapper<DictBsznEntity> queryWrapper);
+
+	List<DictBsznEntity> selectListByMc(String dictValue);
+
+	DictBsznEntity detailById(Long id);
+
+	List<BsznVO> selectTop();
+
+	List<BsznVO> selectOneList(String value);
+}

+ 56 - 0
src/main/java/org/springblade/modules/dictBszn/mapper/DictBsznMapper.xml

@@ -0,0 +1,56 @@
+<?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="org.springblade.modules.dictBszn.mapper.DictBsznMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="dictBsznResultMap" type="org.springblade.modules.dictBszn.pojo.entity.DictBsznEntity">
+        <result column="parent_id" property="parentId"/>
+        <result column="dict_value" property="dictValue"/>
+        <result column="sxlx" property="sxlx"/>
+        <result column="xzcj" property="xzcj"/>
+        <result column="fdsx" property="fdsx"/>
+        <result column="cnsx" property="cnsx"/>
+        <result column="bjlx" property="bjlx"/>
+        <result column="spjglx" property="spjglx"/>
+        <result column="spjgmc" property="spjgmc"/>
+        <result column="sltj" property="sltj"/>
+        <result column="sdyj" property="sdyj"/>
+        <result column="sfsf" property="sfsf"/>
+        <result column="sfbz" property="sfbz"/>
+        <result column="sfyj" property="sfyj"/>
+        <result column="sqcl" property="sqcl"/>
+        <result column="bllc" property="bllc"/>
+    </resultMap>
+
+    <select id="selectDictBsznPage" resultMap="dictBsznResultMap">
+        select * from dict_bszn where is_deleted = 0
+    </select>
+
+    <select id="exportDictBszn" resultType="org.springblade.modules.dictBszn.excel.DictBsznExcel">
+        SELECT * FROM dict_bszn ${ew.customSqlSegment}
+    </select>
+
+    <select id="selectListByMc" resultMap="dictBsznResultMap">
+        select * from jdrh.dict_bszn where status = '2' and dict_value like '%' || #{dictValue} || '%' order by id
+    </select>
+
+    <select id="detailById" resultMap="dictBsznResultMap">
+        select * from jdrh.dict_bszn where parent_id = #{id}
+    </select>
+
+    <select id="selectTop" resultType="org.springblade.modules.dictBszn.pojo.vo.BsznVO">
+        select
+            id as value,
+            dict_value as label
+        from jdrh.dict_bszn
+        where parent_id = 0 and dict_value != '详情' order by id
+    </select>
+
+    <select id="selectOneList" resultType="org.springblade.modules.dictBszn.pojo.vo.BsznVO">
+        select
+            id as value,
+            dict_value as label
+        from jdrh.dict_bszn
+        where parent_id = #{value} :: int8 and dict_value != '详情' order by id
+    </select>
+</mapper>

+ 44 - 0
src/main/java/org/springblade/modules/dictBszn/pojo/dto/DictBsznDTO.java

@@ -0,0 +1,44 @@
+/**
+ * BladeX Commercial License Agreement
+ * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
+ * <p>
+ * Use of this software is governed by the Commercial License Agreement
+ * obtained after purchasing a license from BladeX.
+ * <p>
+ * 1. This software is for development use only under a valid license
+ * from BladeX.
+ * <p>
+ * 2. Redistribution of this software's source code to any third party
+ * without a commercial license is strictly prohibited.
+ * <p>
+ * 3. Licensees may copyright their own code but cannot use segments
+ * from this software for such purposes. Copyright of this software
+ * remains with BladeX.
+ * <p>
+ * Using this software signifies agreement to this License, and the software
+ * must not be used for illegal purposes.
+ * <p>
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
+ * not liable for any claims arising from secondary or illegal development.
+ * <p>
+ * Author: Chill Zhuang (bladejava@qq.com)
+ */
+package org.springblade.modules.dictBszn.pojo.dto;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.springblade.modules.dictBszn.pojo.entity.DictBsznEntity;
+
+
+/**
+ *  数据传输对象实体类
+ *
+ * @author BladeX
+ * @since 2024-10-31
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class DictBsznDTO extends DictBsznEntity {
+	private static final long serialVersionUID = 1L;
+
+}

+ 111 - 0
src/main/java/org/springblade/modules/dictBszn/pojo/entity/DictBsznEntity.java

@@ -0,0 +1,111 @@
+/**
+ * BladeX Commercial License Agreement
+ * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
+ * <p>
+ * Use of this software is governed by the Commercial License Agreement
+ * obtained after purchasing a license from BladeX.
+ * <p>
+ * 1. This software is for development use only under a valid license
+ * from BladeX.
+ * <p>
+ * 2. Redistribution of this software's source code to any third party
+ * without a commercial license is strictly prohibited.
+ * <p>
+ * 3. Licensees may copyright their own code but cannot use segments
+ * from this software for such purposes. Copyright of this software
+ * remains with BladeX.
+ * <p>
+ * Using this software signifies agreement to this License, and the software
+ * must not be used for illegal purposes.
+ * <p>
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
+ * not liable for any claims arising from secondary or illegal development.
+ * <p>
+ * Author: Chill Zhuang (bladejava@qq.com)
+ */
+package org.springblade.modules.dictBszn.pojo.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.springblade.core.mp.base.BaseEntity;
+
+/**
+ *  实体类
+ *
+ * @author BladeX
+ * @since 2024-10-31
+ */
+@Data
+@TableName("dict_bszn")
+@EqualsAndHashCode(callSuper = true)
+public class DictBsznEntity extends BaseEntity {
+
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 *
+	 */
+	private Long parentId;
+	/**
+	 *
+	 */
+	private String dictValue;
+	/**
+	 *
+	 */
+	private String sxlx;
+	/**
+	 *
+	 */
+	private String xzcj;
+	/**
+	 *
+	 */
+	private String fdsx;
+	/**
+	 *
+	 */
+	private String cnsx;
+	/**
+	 *
+	 */
+	private String bjlx;
+	/**
+	 *
+	 */
+	private String spjglx;
+	/**
+	 *
+	 */
+	private String spjgmc;
+	/**
+	 *
+	 */
+	private String sltj;
+	/**
+	 *
+	 */
+	private String sdyj;
+	/**
+	 *
+	 */
+	private String sfsf;
+	/**
+	 *
+	 */
+	private String sfbz;
+	/**
+	 *
+	 */
+	private String sfyj;
+	/**
+	 *
+	 */
+	private String sqcl;
+	/**
+	 *
+	 */
+	private String bllc;
+
+}

+ 12 - 0
src/main/java/org/springblade/modules/dictBszn/pojo/vo/BsznVO.java

@@ -0,0 +1,12 @@
+package org.springblade.modules.dictBszn.pojo.vo;
+
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class BsznVO {
+	public String value;
+	public String label;
+	public List<BsznVO> children;
+}

+ 43 - 0
src/main/java/org/springblade/modules/dictBszn/pojo/vo/DictBsznVO.java

@@ -0,0 +1,43 @@
+/**
+ * BladeX Commercial License Agreement
+ * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
+ * <p>
+ * Use of this software is governed by the Commercial License Agreement
+ * obtained after purchasing a license from BladeX.
+ * <p>
+ * 1. This software is for development use only under a valid license
+ * from BladeX.
+ * <p>
+ * 2. Redistribution of this software's source code to any third party
+ * without a commercial license is strictly prohibited.
+ * <p>
+ * 3. Licensees may copyright their own code but cannot use segments
+ * from this software for such purposes. Copyright of this software
+ * remains with BladeX.
+ * <p>
+ * Using this software signifies agreement to this License, and the software
+ * must not be used for illegal purposes.
+ * <p>
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
+ * not liable for any claims arising from secondary or illegal development.
+ * <p>
+ * Author: Chill Zhuang (bladejava@qq.com)
+ */
+package org.springblade.modules.dictBszn.pojo.vo;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import org.springblade.modules.dictBszn.pojo.entity.DictBsznEntity;
+
+/**
+ *  视图实体类
+ *
+ * @author BladeX
+ * @since 2024-10-31
+ */
+@Data
+@EqualsAndHashCode(callSuper = true)
+public class DictBsznVO extends DictBsznEntity {
+	private static final long serialVersionUID = 1L;
+
+}

+ 69 - 0
src/main/java/org/springblade/modules/dictBszn/service/IDictBsznService.java

@@ -0,0 +1,69 @@
+/**
+ * BladeX Commercial License Agreement
+ * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
+ * <p>
+ * Use of this software is governed by the Commercial License Agreement
+ * obtained after purchasing a license from BladeX.
+ * <p>
+ * 1. This software is for development use only under a valid license
+ * from BladeX.
+ * <p>
+ * 2. Redistribution of this software's source code to any third party
+ * without a commercial license is strictly prohibited.
+ * <p>
+ * 3. Licensees may copyright their own code but cannot use segments
+ * from this software for such purposes. Copyright of this software
+ * remains with BladeX.
+ * <p>
+ * Using this software signifies agreement to this License, and the software
+ * must not be used for illegal purposes.
+ * <p>
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
+ * not liable for any claims arising from secondary or illegal development.
+ * <p>
+ * Author: Chill Zhuang (bladejava@qq.com)
+ */
+package org.springblade.modules.dictBszn.service;
+
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.springblade.core.mp.base.BaseService;
+import org.springblade.modules.dictBszn.excel.DictBsznExcel;
+import org.springblade.modules.dictBszn.pojo.entity.DictBsznEntity;
+import org.springblade.modules.dictBszn.pojo.vo.BsznVO;
+import org.springblade.modules.dictBszn.pojo.vo.DictBsznVO;
+
+import java.util.List;
+
+/**
+ *  服务类
+ *
+ * @author BladeX
+ * @since 2024-10-31
+ */
+public interface IDictBsznService extends BaseService<DictBsznEntity> {
+	/**
+	 * 自定义分页
+	 *
+	 * @param page 分页参数
+	 * @param dictBszn 查询参数
+	 * @return IPage<DictBsznVO>
+	 */
+	IPage<DictBsznVO> selectDictBsznPage(IPage<DictBsznVO> page, DictBsznVO dictBszn);
+
+	/**
+	 * 导出数据
+	 *
+	 * @param queryWrapper 查询条件
+	 * @return List<DictBsznExcel>
+	 */
+	List<DictBsznExcel> exportDictBszn(Wrapper<DictBsznEntity> queryWrapper);
+
+	List<DictBsznEntity> selectListByMc(String dictValue);
+
+	DictBsznEntity detailById(Long id);
+
+	List<BsznVO> selectTop();
+
+	List<BsznVO> selectOneList(String value);
+}

+ 84 - 0
src/main/java/org/springblade/modules/dictBszn/service/impl/DictBsznServiceImpl.java

@@ -0,0 +1,84 @@
+/**
+ * BladeX Commercial License Agreement
+ * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
+ * <p>
+ * Use of this software is governed by the Commercial License Agreement
+ * obtained after purchasing a license from BladeX.
+ * <p>
+ * 1. This software is for development use only under a valid license
+ * from BladeX.
+ * <p>
+ * 2. Redistribution of this software's source code to any third party
+ * without a commercial license is strictly prohibited.
+ * <p>
+ * 3. Licensees may copyright their own code but cannot use segments
+ * from this software for such purposes. Copyright of this software
+ * remains with BladeX.
+ * <p>
+ * Using this software signifies agreement to this License, and the software
+ * must not be used for illegal purposes.
+ * <p>
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
+ * not liable for any claims arising from secondary or illegal development.
+ * <p>
+ * Author: Chill Zhuang (bladejava@qq.com)
+ */
+package org.springblade.modules.dictBszn.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.Wrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.springblade.core.mp.base.BaseServiceImpl;
+import org.springblade.modules.dictBszn.excel.DictBsznExcel;
+import org.springblade.modules.dictBszn.mapper.DictBsznMapper;
+import org.springblade.modules.dictBszn.pojo.entity.DictBsznEntity;
+import org.springblade.modules.dictBszn.pojo.vo.BsznVO;
+import org.springblade.modules.dictBszn.pojo.vo.DictBsznVO;
+import org.springblade.modules.dictBszn.service.IDictBsznService;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+/**
+ *  服务实现类
+ *
+ * @author BladeX
+ * @since 2024-10-31
+ */
+@Service
+public class DictBsznServiceImpl extends BaseServiceImpl<DictBsznMapper, DictBsznEntity> implements IDictBsznService {
+
+	@Override
+	public IPage<DictBsznVO> selectDictBsznPage(IPage<DictBsznVO> page, DictBsznVO dictBszn) {
+		return page.setRecords(baseMapper.selectDictBsznPage(page, dictBszn));
+	}
+
+	@Override
+	public List<DictBsznExcel> exportDictBszn(Wrapper<DictBsznEntity> queryWrapper) {
+		List<DictBsznExcel> dictBsznList = baseMapper.exportDictBszn(queryWrapper);
+		//dictBsznList.forEach(dictBszn -> {
+		//	dictBszn.setTypeName(DictCache.getValue(DictEnum.YES_NO, DictBsznEntity.getType()));
+		//});
+		return dictBsznList;
+	}
+
+	@Override
+	public List<DictBsznEntity> selectListByMc(String dictValue) {
+		return baseMapper.selectListByMc(dictValue);
+	}
+
+	@Override
+	public DictBsznEntity detailById(Long id) {
+		return baseMapper.detailById(id);
+	}
+
+	@Override
+	public List<BsznVO> selectTop() {
+		return baseMapper.selectTop();
+	}
+
+	@Override
+	public List<BsznVO> selectOneList(String value) {
+		return baseMapper.selectOneList(value);
+	}
+
+}

+ 59 - 0
src/main/java/org/springblade/modules/dictBszn/wrapper/DictBsznWrapper.java

@@ -0,0 +1,59 @@
+/**
+ * BladeX Commercial License Agreement
+ * Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
+ * <p>
+ * Use of this software is governed by the Commercial License Agreement
+ * obtained after purchasing a license from BladeX.
+ * <p>
+ * 1. This software is for development use only under a valid license
+ * from BladeX.
+ * <p>
+ * 2. Redistribution of this software's source code to any third party
+ * without a commercial license is strictly prohibited.
+ * <p>
+ * 3. Licensees may copyright their own code but cannot use segments
+ * from this software for such purposes. Copyright of this software
+ * remains with BladeX.
+ * <p>
+ * Using this software signifies agreement to this License, and the software
+ * must not be used for illegal purposes.
+ * <p>
+ * THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
+ * not liable for any claims arising from secondary or illegal development.
+ * <p>
+ * Author: Chill Zhuang (bladejava@qq.com)
+ */
+package org.springblade.modules.dictBszn.wrapper;
+
+import org.springblade.core.mp.support.BaseEntityWrapper;
+import org.springblade.core.tool.utils.BeanUtil;
+import org.springblade.modules.dictBszn.pojo.entity.DictBsznEntity;
+import org.springblade.modules.dictBszn.pojo.vo.DictBsznVO;
+
+import java.util.Objects;
+
+/**
+ *  包装类,返回视图层所需的字段
+ *
+ * @author BladeX
+ * @since 2024-10-31
+ */
+public class DictBsznWrapper extends BaseEntityWrapper<DictBsznEntity, DictBsznVO>  {
+
+	public static DictBsznWrapper build() {
+		return new DictBsznWrapper();
+ 	}
+
+	@Override
+	public DictBsznVO entityVO(DictBsznEntity dictBszn) {
+		DictBsznVO dictBsznVO = Objects.requireNonNull(BeanUtil.copyProperties(dictBszn, DictBsznVO.class));
+
+		//User createUser = UserCache.getUser(dictBszn.getCreateUser());
+		//User updateUser = UserCache.getUser(dictBszn.getUpdateUser());
+		//dictBsznVO.setCreateUserName(createUser.getName());
+		//dictBsznVO.setUpdateUserName(updateUser.getName());
+
+		return dictBsznVO;
+	}
+
+}