工机具管理-库管员配置;维修班配置

This commit is contained in:
sliang 2023-12-20 19:59:50 +08:00
parent d543013f30
commit f5d0deb4c8
1 changed files with 2 additions and 1 deletions

View File

@ -62,8 +62,9 @@ public class AgreementInfoServiceImpl implements AgreementInfoService {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
Date nowDate = DateUtils.getNowDate();
String format = dateFormat.format(nowDate);
String result = format.replace("-", "");
int num = agreementInfoMapper.selectNumByMonth(nowDate) + 1;
String code = "XY" + format + "-000" + num;
String code = "XY" + result + "000" + num;
return code;
}
}