工机具管理-库管员配置;维修班配置
This commit is contained in:
parent
d543013f30
commit
f5d0deb4c8
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue