Browse Source

fix:[表单管理]编号逻辑

master
15881625488@163.com 2 months ago
parent
commit
341ff9d402
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java
  2. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java
  3. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java
  4. +1
    -1
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormApplyServiceImpl.java View File

@ -670,7 +670,7 @@ public class StudyFormApplyServiceImpl extends ServiceImpl
throw new ServiceException("学科不存在或已删除"); throw new ServiceException("学科不存在或已删除");
} }
// MB+表单名缩写(底层模板名称)+版本号+试验编号+学科缩写+流水号 // MB+表单名缩写(底层模板名称)+版本号+试验编号+学科缩写+流水号
return "MB-" + template.getShowSn() +"-"+ study.getSn() +"-"+ dep.getAbbr() +"-"+ snGenService.getNewSn(SnTypeEnum.ybbd.getValue());
return template.getShowSn() +"-"+ study.getSn() +"-"+ dep.getAbbr() +"-"+ snGenService.getNewSn(SnTypeEnum.ybbd.getValue());
} }

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormFillServiceImpl.java View File

@ -734,7 +734,7 @@ public class StudyFormFillServiceImpl extends ServiceImpl
throw new ServiceException("学科不存在或已删除"); throw new ServiceException("学科不存在或已删除");
} }
// MB+表单名缩写(底层模板名称)+版本号+试验编号+学科缩写+流水号+流水号 // MB+表单名缩写(底层模板名称)+版本号+试验编号+学科缩写+流水号+流水号
return "MB-"+template.getShowSn()+"-"+study.getSn()+"-"+dep.getAbbr()+"-"+snGenService.getNewSn(SnTypeEnum.tbbd.getValue())+"-"+snGenService.getNewSn(SnTypeEnum.tbbd.getValue());
return template.getShowSn()+"-"+study.getSn()+"-"+dep.getAbbr()+"-"+snGenService.getNewSn(SnTypeEnum.tbbd.getValue())+"-"+snGenService.getNewSn(SnTypeEnum.tbbd.getValue());
} }

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPlanServiceImpl.java View File

@ -479,7 +479,7 @@ public class StudyFormPlanServiceImpl extends ServiceImpl
throw new ServiceException("学科不存在或已删除"); throw new ServiceException("学科不存在或已删除");
} }
// MB+表单名缩写(底层模板名称)+版本号+试验编号+学科缩写+流水号 // MB+表单名缩写(底层模板名称)+版本号+试验编号+学科缩写+流水号
return "MB-"+template.getShowSn()+"-"+study.getSn()+"-"+dep.getAbbr()+"-"+snGenService.getNewSn(SnTypeEnum.ybbd.getValue());
return template.getShowSn()+"-"+study.getSn()+"-"+dep.getAbbr()+"-"+snGenService.getNewSn(SnTypeEnum.ybbd.getValue());
} }

+ 1
- 1
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyFormPreServiceImpl.java View File

@ -598,7 +598,7 @@ public class StudyFormPreServiceImpl extends ServiceImpl
throw new ServiceException("学科不存在或已删除"); throw new ServiceException("学科不存在或已删除");
} }
// MB+表单名缩写(底层模板名称)+版本号+试验编号+学科缩写+流水号 // MB+表单名缩写(底层模板名称)+版本号+试验编号+学科缩写+流水号
return "MB-"+template.getShowSn()+"-"+study.getSn()+"-"+dep.getAbbr()+"-"+snGenService.getNewSn(SnTypeEnum.ybbd.getValue());
return template.getShowSn()+"-"+study.getSn()+"-"+dep.getAbbr()+"-"+snGenService.getNewSn(SnTypeEnum.ybbd.getValue());
} }
/** /**

Loading…
Cancel
Save