越南语调整

main
judy 1 year ago
parent 770c39a140
commit 0585b069b2
  1. 1224
      shkj-admin/src/main/resources/i18n/messages_en_VT.properties
  2. 50
      shkj-admin/src/main/resources/i18n/messages_zh_CN.properties
  3. 4
      shkj-system/src/main/java/com/shkj/system/service/impl/BaseBranchServiceImpl.java
  4. 39
      shkj-system/src/main/java/com/shkj/system/service/impl/SysDeptServiceImpl.java
  5. 9
      shkj-system/src/main/java/com/shkj/system/service/impl/SysDictTypeServiceImpl.java
  6. 9
      shkj-system/src/main/java/com/shkj/system/service/impl/SysPostServiceImpl.java
  7. 12
      shkj-system/src/main/java/com/shkj/system/service/impl/SysUserServiceImpl.java
  8. 4
      shkj-wms/src/main/java/com/shkj/wcs/plc/PlcEventTask.java
  9. 1
      shkj-wms/src/main/java/com/shkj/wms/enums/LanguagesEnum.java
  10. 8
      shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseStorageServiceImpl.java

File diff suppressed because it is too large Load Diff

@ -628,4 +628,52 @@ key\u6761\u7801\u4E0D\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u626B\u63CF=Key barcod
\u8BF7\u9009\u62E9\u76D8\u70B9\u6570\u636E=Please select inventory data--57
\u6B63\u5728\u51FA\u5E93\u4E2D\u4E0D\u9700\u8981\u4E0B\u53D1\u51FA\u5E93\u4EFB\u52A1=Outbound in progress, no need to issue outbound task--58
\u6A21\u5177\u6761\u7801\u4E0D\u5F97\u4E3A\u7A7A=The mold bar code must not be empty--59
\u6B64\u6A21\u5177\u5728\u5176\u4ED6\u6258\u76D8\u5C1A\u672A\u5B8C\u6210\u6D41\u7A0B\uFF0C\u4E0D\u53EF\u5165\u5E93\u6B64\u6258\u76D8 =This mold has not completed the process in other pallets, and cannot be stored in this pallet --60
\u6B64\u6A21\u5177\u5728\u5176\u4ED6\u6258\u76D8\u5C1A\u672A\u5B8C\u6210\u6D41\u7A0B\uFF0C\u4E0D\u53EF\u5165\u5E93\u6B64\u6258\u76D8 =This mold has not completed the process in other pallets, and cannot be stored in this pallet --60
\u672A\u6267\u884C=Not performed
\u6B63\u5728\u6267\u884C=Executing
\u5DF2\u5165\u5E93=Already storage
\u5DF2\u53D6\u6D88=Cancelled
\u5F02\u5E38=abnormal
\u7537=male
\u5973=female
\u672A\u77E5=unknown
\u9ED8\u8BA4=default
\u7CFB\u7EDF=system
\u901A\u77E5=notice
\u516C\u544A=announcement
\u5173\u95ED=closure
\u4FEE\u6539=Revise
\u6388\u6743=Authorize
\u5BFC\u5165=import
\u5F3A\u9000=Quit
\u751F\u6210\u4EE3\u7801=Generate code
\u6E05\u7A7A\u6570\u636E=Clear data
\u6210\u529F=success
\u5931\u8D25=fail
\u5165\u5E93=Enter the warehouse
\u51FA\u5E93=out of warehouse
\u7A7A\u95F2=idle
\u6EE1\u4F4D=Full seats
\u5168\u76D8=overall
\u52A8\u76D8=moving disk
\u672A\u4E0B\u53D1=Not issued
\u6267\u884C\u4E2D=Executing
\u4E0B\u53D1\u5931\u8D25=Delivery failed
\u542F\u7528=enable
\u7981\u7528=Disable
\u5B58\u8D27=Storage of goods
\u4F4E\u6A21\u5177=QD
\u5F85\u51FA\u5E93=Waiting to out of warehouse
\u51FA\u5E93\u4E2D=Out of warehouse
\u5DF2\u51FA\u5E93=Already out of warehouse
\u521D\u59CB\u5316=initialization
\u786E\u8BA4\u6267\u884C=Confirm execution
\u4E2D\u6B62=stop
\u5DF2\u5B8C\u6210=completed
\u7ACB\u4F53\u5E93=Vertical warehouse
\u534A\u6EE1\u4F4D=half-full
\u7A7A\u6258\u51FA\u5E93\u4E2D=Empty stock out of storage
\u6A21\u5177\u51FA\u5E93\u4E2D=Mold out of the warehouse
\u4ED3\u50A8\u7BA1\u7406\u5458=Warehouse manager
\u4ED3\u50A8\u7BA1\u7406\u90E8=Warehouse management department

@ -15,6 +15,7 @@ import com.shkj.common.core.page.BaseBranchVo;
import com.shkj.common.enums.IsDelEnum;
import com.shkj.common.enums.IsUseEnum;
import com.shkj.common.exception.ServiceException;
import com.shkj.common.utils.MessageUtils;
import com.shkj.common.utils.SecurityUtils;
import com.shkj.common.utils.StringUtils;
import com.shkj.system.mapper.BaseBranchMapper;
@ -242,6 +243,9 @@ public class BaseBranchServiceImpl extends ServiceImpl<BaseBranchMapper, BaseBra
}
List<BaseBranch> BaseBranch = this.baseMapper.optionBranchByUserName(userName);
for (com.shkj.common.core.domain.entity.BaseBranch baseBranch : BaseBranch) {
baseBranch.setBranchName(MessageUtils.message(baseBranch.getBranchName()));
}
if (CollectionUtils.isEmpty(BaseBranch)) {
vo.setStatus(2);
} else {

@ -5,6 +5,7 @@ import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;
import com.shkj.common.utils.MessageUtils;
import com.shkj.system.mapper.SysDeptMapper;
import com.shkj.system.mapper.SysRoleMapper;
import com.shkj.system.service.ISysDeptService;
@ -24,7 +25,7 @@ import com.shkj.common.utils.spring.SpringUtils;
/**
* 部门管理 服务实现
*
*
* @author lch
*/
@Service
@ -38,7 +39,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 查询部门管理数据
*
*
* @param dept 部门信息
* @return 部门信息集合
*/
@ -47,12 +48,16 @@ public class SysDeptServiceImpl implements ISysDeptService
public List<SysDept> selectDeptList(SysDept dept)
{
dept.setBranchId(SecurityUtils.getCurrentBranchId());
return deptMapper.selectDeptList(dept);
List<SysDept> sysDepts = deptMapper.selectDeptList(dept);
for (SysDept sysDept : sysDepts) {
sysDept.setDeptName(MessageUtils.message(sysDept.getDeptName()));
}
return sysDepts;
}
/**
* 构建前端所需要树结构
*
*
* @param depts 部门列表
* @return 树结构列表
*/
@ -84,7 +89,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 构建前端所需要下拉树结构
*
*
* @param depts 部门列表
* @return 下拉树结构列表
*/
@ -97,7 +102,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 根据角色ID查询部门树信息
*
*
* @param roleId 角色ID
* @return 选中部门列表
*/
@ -110,7 +115,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 根据部门ID查询信息
*
*
* @param deptId 部门ID
* @return 部门信息
*/
@ -122,7 +127,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 根据ID查询所有子部门正常状态
*
*
* @param deptId 部门ID
* @return 子部门数
*/
@ -134,7 +139,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 是否存在子节点
*
*
* @param deptId 部门ID
* @return 结果
*/
@ -147,7 +152,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 查询部门是否存在用户
*
*
* @param deptId 部门ID
* @return 结果 true 存在 false 不存在
*/
@ -160,7 +165,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 校验部门名称是否唯一
*
*
* @param dept 部门信息
* @return 结果
*/
@ -179,7 +184,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 校验部门是否有数据权限
*
*
* @param deptId 部门id
*/
@Override
@ -199,7 +204,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 新增保存部门信息
*
*
* @param dept 部门信息
* @return 结果
*/
@ -219,7 +224,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 修改保存部门信息
*
*
* @param dept 部门信息
* @return 结果
*/
@ -247,7 +252,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 修改该部门的父级部门状态
*
*
* @param dept 当前部门
*/
private void updateParentDeptStatusNormal(SysDept dept)
@ -259,7 +264,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 修改子元素关系
*
*
* @param deptId 被修改的部门ID
* @param newAncestors 新的父ID集合
* @param oldAncestors 旧的父ID集合
@ -279,7 +284,7 @@ public class SysDeptServiceImpl implements ISysDeptService
/**
* 删除部门管理信息
*
*
* @param deptId 部门ID
* @return 结果
*/

@ -4,9 +4,11 @@ import com.shkj.common.constant.Constants;
import com.shkj.common.constant.UserConstants;
import com.shkj.common.core.domain.entity.SysDictData;
import com.shkj.common.core.domain.entity.SysDictType;
import com.shkj.common.core.domain.entity.SysMenu;
import com.shkj.common.core.redis.RedisCache;
import com.shkj.common.exception.ServiceException;
import com.shkj.common.utils.DictUtils;
import com.shkj.common.utils.MessageUtils;
import com.shkj.common.utils.SecurityUtils;
import com.shkj.common.utils.StringUtils;
import com.shkj.common.utils.spring.SpringUtils;
@ -76,12 +78,19 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService {
public List<SysDictData> selectDictDataByType(String dictType) {
List<SysDictData> dictDatas = DictUtils.getDictCache(dictType);
for (SysDictData dictData : dictDatas) {
dictData.setDictLabel(MessageUtils.message(dictData.getDictLabel()));
}
if (StringUtils.isNotEmpty(dictDatas)) {
return dictDatas;
}
dictDatas = dictDataMapper.selectDictDataByType(dictType, SecurityUtils.getCurrentBranchId());
if (StringUtils.isNotEmpty(dictDatas)) {
DictUtils.setDictCache(dictType, dictDatas);
for (SysDictData dictData : dictDatas) {
dictData.setDictLabel(MessageUtils.message(dictData.getDictLabel()));
}
return dictDatas;
}
return null;

@ -2,12 +2,14 @@ package com.shkj.system.service.impl;
import java.util.List;
import com.shkj.common.utils.MessageUtils;
import com.shkj.common.utils.SecurityUtils;
import com.shkj.system.domain.SysPost;
import com.shkj.system.mapper.SysPostMapper;
import com.shkj.system.mapper.SysUserPostMapper;
import com.shkj.system.service.ISysPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Service;
import com.shkj.common.constant.UserConstants;
import com.shkj.common.exception.ServiceException;
@ -35,7 +37,12 @@ public class SysPostServiceImpl implements ISysPostService {
@Override
public List<SysPost> selectPostList(SysPost post) {
post.setBranchId(SecurityUtils.getCurrentBranchId());
return postMapper.selectPostList(post);
List<SysPost> sysPosts = postMapper.selectPostList(post);
for (SysPost sysPost : sysPosts) {
sysPost.setPostName(MessageUtils.message(sysPost.getPostName()));
sysPost.setPostCode(MessageUtils.message(sysPost.getPostCode()));
}
return sysPosts;
}
/**

@ -2,9 +2,11 @@ package com.shkj.system.service.impl;
import com.shkj.common.annotation.DataScope;
import com.shkj.common.constant.UserConstants;
import com.shkj.common.core.domain.entity.SysDept;
import com.shkj.common.core.domain.entity.SysRole;
import com.shkj.common.core.domain.entity.SysUser;
import com.shkj.common.exception.ServiceException;
import com.shkj.common.utils.MessageUtils;
import com.shkj.common.utils.SecurityUtils;
import com.shkj.common.utils.StringUtils;
import com.shkj.common.utils.bean.BeanValidators;
@ -75,7 +77,15 @@ public class SysUserServiceImpl implements ISysUserService {
public List<SysUser> selectUserList(SysUser user) {
user.setCurrentBranchId(SecurityUtils.getCurrentBranchId());
//如果当前是仓库级 过滤掉系统用户
return userMapper.selectUserList(user);
List<SysUser> sysUserList = userMapper.selectUserList(user);
for (SysUser sysUser : sysUserList) {
SysDept dept = sysUser.getDept();
if (dept !=null){
dept.setDeptName(MessageUtils.message(dept.getDeptName()));
sysUser.setDept(dept);
}
}
return sysUserList;
}
/**

@ -96,7 +96,7 @@ public class PlcEventTask {
@Autowired
PlcInit plcInit;
@Scheduled(fixedDelay = 8000)
// @Scheduled(fixedDelay = 8000)
public void init() {
//查询需要连接的PLC,初始化连接对象
List<WcsPlcConnectVo> plcList = iWcsPlcConnectService.selectWcsPlcConnectList(new WcsPlcConnect().setIsActive("1"));
@ -118,7 +118,7 @@ public class PlcEventTask {
@Scheduled(fixedDelay = 4000)
// @Scheduled(fixedDelay = 4000)
public void writePlcheartbeat(){
//根据连接的plcId获取属性
PlcOperate plcOperate = plcInit.getPlcOperate_dps();

@ -17,6 +17,7 @@ public enum LanguagesEnum {
*/
zh_EN ("zh_EN", "中文"),
en_US ("en_US", "英文"),
en_VT("en_VT","越南语")
;
private String value;

@ -9,7 +9,9 @@ import com.github.pagehelper.Page;
import com.shkj.common.annotation.DataScopeConsignor;
import com.shkj.common.core.domain.Result;
import com.shkj.common.core.domain.entity.BaseBranch;
import com.shkj.common.core.domain.entity.SysDictData;
import com.shkj.common.enums.IsDelEnum;
import com.shkj.common.utils.MessageUtils;
import com.shkj.common.utils.SecurityUtils;
import com.shkj.common.utils.StringUtils;
import com.shkj.wms.domain.BaseStorage;
@ -104,7 +106,11 @@ public class BaseStorageServiceImpl extends ServiceImpl<BaseStorageMapper, BaseS
@Override
@DataScopeConsignor(branchAlias = "bs")
public List<BaseStorageVo> queryBaseStorageList(BaseStorageQueryListBo bo) {
return this.getBaseMapper().queryBaseStorageList(bo);
List<BaseStorageVo> baseStorageVos = this.getBaseMapper().queryBaseStorageList(bo);
for (BaseStorageVo baseStorageVo : baseStorageVos) {
baseStorageVo.setStorageName(MessageUtils.message(baseStorageVo.getStorageName()));
}
return baseStorageVos;
}
public List<BaseStorage> queryBaseStorageByCodes(List<String> codes) {

Loading…
Cancel
Save