diff --git a/yudao-framework/yudao-common/pom.xml b/yudao-framework/yudao-common/pom.xml
index 0a19bf8e..ea86c575 100644
--- a/yudao-framework/yudao-common/pom.xml
+++ b/yudao-framework/yudao-common/pom.xml
@@ -137,6 +137,12 @@
org.jsoup
jsoup
+
+
+ com.belerweb
+ pinyin4j
+ 2.5.1
+
diff --git a/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/enums/AssetsTypeCodeEnum.java b/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/enums/AssetsTypeCodeEnum.java
index c63869c0..bf0e9a54 100644
--- a/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/enums/AssetsTypeCodeEnum.java
+++ b/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/enums/AssetsTypeCodeEnum.java
@@ -22,6 +22,14 @@ public class AssetsTypeCodeEnum {
* 叉车 电
*/
public static final String FORKLIFT_ELECTRICITY = "FORKLIFT_ELECTRICITY";
+ /**
+ * 叉车 油转电
+ */
+ public static final String FORKLIFT_OIL_TO_ELECTRICITY = "FORKLIFT_OIL_TO_ELECTRICITY";
+ /**
+ * 拖拉机
+ */
+ public static final String FORKLIFT_TRACTOR = "FORKLIFT_TRACTOR";
/**
* 托盘
*/
@@ -30,4 +38,9 @@ public class AssetsTypeCodeEnum {
* 绑带
*/
public static final String STRAPS = "STRAPS";
+
+ /**
+ * 生产机械
+ */
+ public static final String PRODUCTION_MACHINERY = "PRODUCTION_MACHINERY";
}
diff --git a/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/spring/ChineseConversionUtils.java b/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/spring/ChineseConversionUtils.java
new file mode 100644
index 00000000..50da61ae
--- /dev/null
+++ b/yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/util/spring/ChineseConversionUtils.java
@@ -0,0 +1,22 @@
+package cn.iocoder.yudao.framework.common.util.spring;
+
+import net.sourceforge.pinyin4j.PinyinHelper;
+
+/**
+ * Spring 中文转换
+ */
+public class ChineseConversionUtils {
+
+ public static String getChineseInitials(String chinese) {
+ StringBuilder result = new StringBuilder();
+ for (char c : chinese.toCharArray()) {
+ // 获取汉字对应的拼音数组(可能有多音字)
+ String[] pinyinArray = PinyinHelper.toHanyuPinyinStringArray(c);
+ if (pinyinArray != null && pinyinArray.length > 0) {
+ // 取第一个拼音的首字母并转大写
+ result.append(pinyinArray[0].charAt(0));
+ }
+ }
+ return result.toString().toUpperCase();
+ }
+}
diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/service/service.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/service/service.vm
index 4085889d..964785c3 100644
--- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/service/service.vm
+++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/service/service.vm
@@ -4,6 +4,7 @@ import java.util.*;
import javax.validation.*;
import ${basePackage}.module.${table.moduleName}.controller.${sceneEnum.basePackage}.${table.businessName}.vo.*;
import ${basePackage}.module.${table.moduleName}.dal.dataobject.${table.businessName}.${table.className}DO;
+import com.baomidou.mybatisplus.extension.service.IService;
## 特殊:主子表专属逻辑
#foreach ($subTable in $subTables)
import ${basePackage}.module.${subTable.moduleName}.dal.dataobject.${subTable.businessName}.${subTable.className}DO;
@@ -16,7 +17,7 @@ import ${PageParamClassName};
*
* @author ${table.author}
*/
-public interface ${table.className}Service {
+public interface ${table.className}Service extends IService<${table.className}DO> {
/**
* 创建${table.classComment}
@@ -144,4 +145,4 @@ public interface ${table.className}Service {
#end
#end
-}
\ No newline at end of file
+}
diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/service/serviceImpl.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/service/serviceImpl.vm
index 6aa2fb2e..39e5654c 100644
--- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/service/serviceImpl.vm
+++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/java/service/serviceImpl.vm
@@ -15,6 +15,7 @@ import ${basePackage}.module.${subTable.moduleName}.dal.dataobject.${subTable.bu
import ${PageResultClassName};
import ${PageParamClassName};
import ${BeanUtils};
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import ${basePackage}.module.${table.moduleName}.dal.mysql.${table.businessName}.${table.className}Mapper;
## 特殊:主子表专属逻辑
@@ -33,7 +34,8 @@ import static ${basePackage}.module.${table.moduleName}.enums.ErrorCodeConstants
*/
@Service
@Validated
-public class ${table.className}ServiceImpl implements ${table.className}Service {
+#set($mainMapper = "${table.className}Mapper")
+public class ${table.className}ServiceImpl extends ServiceImpl<${mainMapper}, ${table.className}DO> implements ${table.className}Service {
@Resource
private ${table.className}Mapper ${classNameVar}Mapper;
@@ -347,4 +349,4 @@ public class ${table.className}ServiceImpl implements ${table.className}Service
}
#end
-}
\ No newline at end of file
+}
diff --git a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/assets/AssetsTypeApi.java b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/assets/AssetsTypeApi.java
index fb4715fa..6834a5d4 100644
--- a/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/assets/AssetsTypeApi.java
+++ b/yudao-module-system/yudao-module-system-api/src/main/java/cn/iocoder/yudao/module/system/api/assets/AssetsTypeApi.java
@@ -30,9 +30,4 @@ public interface AssetsTypeApi {
@Parameter(name = "id", description = "资产类型编号", example = "1", required = true)
CommonResult get(@RequestParam("id") Long id);
- @GetMapping(PREFIX + "/get-list")
- @Operation(summary = "获得资产类型信息")
- @Parameter(name = "ids", description = "资产类型编号", example = "1", required = true)
- CommonResult> getList(@RequestParam("ids") Collection ids);
-
}
diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/assets/AssetsTypeApiImpl.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/assets/AssetsTypeApiImpl.java
index cc752a81..8ed461fd 100644
--- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/assets/AssetsTypeApiImpl.java
+++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/api/assets/AssetsTypeApiImpl.java
@@ -36,9 +36,4 @@ public class AssetsTypeApiImpl implements AssetsTypeApi {
return success(BeanUtils.toBean(assetsTypeDO, AssetsTypeDTO.class));
}
- @Override
- public CommonResult> getList(Collection ids) {
-
- return null;
- }
}
diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/DeptController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/DeptController.java
index e8be097f..fc68f016 100644
--- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/DeptController.java
+++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/DeptController.java
@@ -25,7 +25,10 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
-import java.util.*;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
import java.util.stream.Collectors;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@@ -54,6 +57,14 @@ public class DeptController {
return success(deptId);
}
+ @GetMapping("getDeptListByLeaderUserId")
+ @Operation(summary = "获取当前用户所负责的部门列表")
+ public CommonResult> getDeptListByLeaderUserId() {
+ Long id = getLoginUserId();
+ List list = deptService.getDeptByLeaderId(id);
+ return success(list);
+ }
+
@PutMapping("update")
@Operation(summary = "更新部门")
@PreAuthorize("@ss.hasPermission('system:dept:update')")
@@ -135,7 +146,7 @@ public class DeptController {
return success(BeanUtils.toBean(list, DeptSimpleRespVO.class));
}
- @GetMapping(value = { "/virtually-list"})
+ @GetMapping(value = {"/virtually-list"})
@Operation(summary = "获取部门精简信息列表", description = "只包含被开启的部门,主要用于前端的下拉选项")
public CommonResult> getVirtuallyDeptList() {
List list = deptService.getDeptList(
@@ -178,7 +189,8 @@ public class DeptController {
// 获取外部人员 部门信息
String deptString = configApi.getConfigKey("system.outsiders").getCheckedData();
- Map deptMap = JsonUtils.parseObject(deptString, new TypeReference