Browse Source

核注核放bug修改

wenjinbiao 8 months ago
parent
commit
bb5ed42334

+ 5 - 1
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qyrecordinfo/entity/BusinessIdGenerator.java

@@ -91,7 +91,11 @@ public class BusinessIdGenerator {
         }
 
         DefaultIdentifierGenerator defaultIdentifierGenerator = new DefaultIdentifierGenerator();
-        System.out.println(defaultIdentifierGenerator.nextId(null));
+        Long l = defaultIdentifierGenerator.nextId(null);
+
+        String s = String.valueOf(l);
+        s =  s.substring(5);
+        System.out.println(s);
     }
 
     /**

+ 5 - 2
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qysecondlinehfd/service/impl/QySecondlineHfdServiceImpl.java

@@ -215,8 +215,11 @@ public class QySecondlineHfdServiceImpl extends ServiceImpl<QySecondlineHfdMappe
         QySecondlineHfd qySecondlineHfd = BeanUtil.toBean(baseInfo, QySecondlineHfd.class);
         qySecondlineHfd.setSbsj(new Date());
         //生成预录入单号
-        String hfdRCode = BusinessIdGenerator.generateNumBerUUID(18);
-        qySecondlineHfd.setHfdrCode(hfdRCode);
+        StringBuilder stringBuilder = new StringBuilder(BusinessIdGenerator.generateNumBerUUID(18));
+        stringBuilder.setCharAt(13,'e');
+        stringBuilder.setCharAt(14,'c');
+
+        qySecondlineHfd.setHfdrCode(stringBuilder.toString());
         //生成核放单号(审核通过时)
         if(ObjectUtil.isNotEmpty(baseInfo.getStatus()) && "3".equals(baseInfo.getStatus())){
             qySecondlineHfd.setHfdCode(BusinessIdGenerator.generateNumBerUUID(18));

+ 2 - 1
snowy-plugin/snowy-plugin-biz/src/main/java/vip/xiaonuo/biz/modular/qysecondlinehzdtz/service/impl/QySecondlineHzdTzServiceImpl.java

@@ -147,7 +147,8 @@ public class QySecondlineHzdTzServiceImpl extends ServiceImpl<QySecondlineHzdTzM
             qySecondlineHzdTz.setSblx("basq");
         }
         //生成预录入单号
-        String hzdRCode = BusinessIdGenerator.generateNumBerUUID(18);
+        String hzdRCode = "DAI"+BusinessIdGenerator.generateNumBerUUID(18).substring(5);
+
         qySecondlineHzdTz.setHzdrCode(hzdRCode);
         //生成核注单号(审核通过时)
         if(ObjectUtil.isNotEmpty(baseInfo.getStatus()) && "3".equals(baseInfo.getStatus())){