Huanyi 2 долоо хоног өмнө
parent
commit
db2e9bc680

+ 1 - 1
ruoyi-api/yingpaipay-api-order/src/main/java/org/dromara/order/api/enums/OrderLogFulfillerStepEnum.java

@@ -8,7 +8,7 @@ import lombok.Getter;
 @AllArgsConstructor(access = AccessLevel.PRIVATE)
 public enum OrderLogFulfillerStepEnum {
 
-    REJECT(-1, "已拒绝", "履约者 %s 已确认接单,准备前往服务地点"),
+    REJECT(-1, "已拒绝", "履约者 %s 拒绝接单,订单已取消"),
     RECIEVED(0, "已接单", "履约者 %s 已确认接单,准备前往服务地点"),
     COMPLETED(99, "订单完成", "用户/商家已确认,服务圆满结束"),
     ;

+ 4 - 1
ruoyi-common/ruoyi-common-core/src/main/java/org/dromara/common/core/utils/MessageUtils.java

@@ -6,6 +6,8 @@ import org.springframework.context.MessageSource;
 import org.springframework.context.NoSuchMessageException;
 import org.springframework.context.i18n.LocaleContextHolder;
 
+import java.util.Locale;
+
 /**
  * 获取i18n资源文件
  *
@@ -25,7 +27,8 @@ public class MessageUtils {
      */
     public static String message(String code, Object... args) {
         try {
-            return MESSAGE_SOURCE.getMessage(code, args, LocaleContextHolder.getLocale());
+//            return MESSAGE_SOURCE.getMessage(code, args, LocaleContextHolder.getLocale());
+            return MESSAGE_SOURCE.getMessage(code, args, Locale.CHINA);
         } catch (NoSuchMessageException e) {
             return code;
         }

+ 6 - 0
ruoyi-modules/yingpaipay-fulfiller/src/main/java/org/dromara/fulfiller/service/impl/FlfFulfillerServiceImpl.java

@@ -151,6 +151,12 @@ public class FlfFulfillerServiceImpl implements IFlfFulfillerService {
     @Override
     @Transactional(rollbackFor = Exception.class)
     public Boolean insertByBo(FlfFulfillerBo bo) {
+
+        boolean exists = baseMapper.exists(Wrappers.lambdaQuery(FlfFulfiller.class).eq(FlfFulfiller::getPhone, bo.getPhone()));
+        if (exists) {
+            throw new ServiceException("手机号 " + bo.getPhone() + " 已存在");
+        }
+
         // 创建 flf_fulfiller 记录(不再创建 sys_user) @author steelwei
         // 密码需要BCrypt加密
         String encryptedPwd = StringUtils.isNotBlank(bo.getPassword())

+ 0 - 1
ruoyi-modules/yingpaipay-service/src/main/java/org/dromara/service/service/impl/SysServiceServiceImpl.java

@@ -52,7 +52,6 @@ public class SysServiceServiceImpl implements ISysServiceService {
      * @param id 主键
      * @return 服务列表
      */
-    @Cacheable(cacheNames = CacheNames.SYS_SERVICE, key = "'all'")
     @Override
     public SysServiceVo queryById(Long id){
         return baseMapper.selectVoById(id);