解决发现的问题

This commit is contained in:
猫猫guowen
2025-08-18 08:50:49 +08:00
parent 7cfce89687
commit cd09975b85
8 changed files with 244 additions and 120 deletions

View File

@@ -64,6 +64,10 @@ public class BasTraycodeFormatServiceImpl implements IBasTraycodeFormatService
public int insertBasTraycodeFormat(BasTraycodeFormat basTraycodeFormat)
{
basTraycodeFormat.setCreateTime(DateUtils.getNowDate());
// 设置流水号默认值为0
if (basTraycodeFormat.getSerialRule() == null || basTraycodeFormat.getSerialRule().trim().isEmpty()) {
basTraycodeFormat.setSerialRule("0");
}
return basTraycodeFormatMapper.insertBasTraycodeFormat(basTraycodeFormat);
}