代码codeview
This commit is contained in:
parent
2c14888e0d
commit
86dc06dd54
|
|
@ -88,14 +88,14 @@ public class BackApplyServiceImpl implements BackApplyService {
|
|||
Date nowDate = DateUtils.getNowDate();
|
||||
String format = dateFormat.format(nowDate);
|
||||
String taskNum = backApplyMapper.selectTaskNumByMonth(nowDate, 36);
|
||||
if (StringHelper.isNotEmpty(taskNum)){
|
||||
if (StringHelper.isNotEmpty(taskNum)) {
|
||||
// 将字符串转换为整数
|
||||
int num = Integer.parseInt(taskNum);
|
||||
// 执行加一操作
|
||||
num++;
|
||||
// 将结果转换回字符串格式,并确保结果是四位数,不足四位则在前面补0
|
||||
taskNum = String.format("%04d", num);
|
||||
}else {
|
||||
} else {
|
||||
taskNum = "0001";
|
||||
}
|
||||
String code = "T" + format + "-" + taskNum;
|
||||
|
|
@ -137,13 +137,9 @@ public class BackApplyServiceImpl implements BackApplyService {
|
|||
}
|
||||
if (companyId != null) {
|
||||
bean.setCompanyId(companyId.toString());
|
||||
List<BackApplyInfo> view = backApplyMapper.getView(bean);
|
||||
return getMaTypeDetails(view);
|
||||
} else {
|
||||
List<BackApplyInfo> view = backApplyMapper.getView(bean);
|
||||
return getMaTypeDetails(view);
|
||||
}
|
||||
|
||||
List<BackApplyInfo> view = backApplyMapper.getView(bean);
|
||||
return getMaTypeDetails(view);
|
||||
}
|
||||
|
||||
private List<BackApplyInfo> getMaTypeDetails(List<BackApplyInfo> view) {
|
||||
|
|
@ -411,6 +407,7 @@ public class BackApplyServiceImpl implements BackApplyService {
|
|||
|
||||
/**
|
||||
* 退料批量审核-审核(web)
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue