Commit 4a6dcf58 authored by LiuLin's avatar LiuLin

fix(tcm):申请单编码生成代码开发

parent 2b8dc876
......@@ -5,10 +5,13 @@ import java.util.List;
public interface ICreateCodeService {
/**
* 生成申请单编号
* 生成申请单编号(13位,GZ20231214000)
* @param type 枚举类型
* @param num 生成个数
* @param batchSize 生成个数
* @return List
*/
List<String> createApplicationFormCode(String type, int num);
List<String> createApplicationFormCode(String type, int batchSize);
String createDeviceRegistrationCode();
}
......@@ -35,6 +35,11 @@ public class CreateCodeServiceImpl implements ICreateCodeService {
return this.generateBatchSequence(type, batchSize);
}
@Override
public String createDeviceRegistrationCode() {
return null;
}
public boolean isValueInEnum(String value) {
return EnumSet.allOf(ApplicationFormTypeEnum.class)
.stream()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment