企业编号 最大值 加1
This commit is contained in:
+6
@@ -511,5 +511,11 @@ public class SarBussionessStandController extends BaseController<SarBussionessSt
|
||||
org.apache.poi.util.IOUtils.closeQuietly(excelOS);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "最大顺序号查询")
|
||||
@GetMapping("/selectMaxStandnSn")
|
||||
public ResponseMessage selectMaxStandnSn (){
|
||||
return sarBussionessStandEOService.selectMaxStandnSn();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
@@ -129,5 +129,7 @@ public interface SarBussionessStandDao extends BaseMapper<SarBussionessStand> {
|
||||
|
||||
@Select("select * from sar")
|
||||
String setDtqbbhbuss(String dtqbbhbuss);
|
||||
|
||||
String selectMaxStandnSn();
|
||||
}
|
||||
|
||||
|
||||
+2
@@ -63,5 +63,7 @@ public interface ISarBussionessStandService extends IService<SarBussionessStand>
|
||||
ResponseMessage repetitionFile();
|
||||
|
||||
ResponseMessage newRpetitionFile();
|
||||
|
||||
ResponseMessage selectMaxStandnSn();
|
||||
}
|
||||
|
||||
|
||||
+13
@@ -4311,6 +4311,19 @@ public class SarBussionessStandServiceImpl extends ServiceImpl<SarBussionessStan
|
||||
return Result.success(objects);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResponseMessage selectMaxStandnSn() {
|
||||
String max = baseMapper.selectMaxStandnSn();
|
||||
int maxIOnfo = 0;
|
||||
if(StringUtils.isNotBlank(max)){
|
||||
int i = Integer.parseInt(max);
|
||||
maxIOnfo = i+1;
|
||||
|
||||
}
|
||||
String s = maxIOnfo + "";
|
||||
return Result.success(s);
|
||||
}
|
||||
|
||||
public String updateInfo(List<String> asList,String standId,String attfId) {
|
||||
//重复的集合
|
||||
List<AttFileEO> chongfu = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user