微调
This commit is contained in:
@@ -615,6 +615,12 @@ public class PqDevServiceImpl extends ServiceImpl<PqDevMapper, PqDev> implements
|
|||||||
if (split.length == 2) {
|
if (split.length == 2) {
|
||||||
long start = Long.parseLong(split[0]);
|
long start = Long.parseLong(split[0]);
|
||||||
long end = Long.parseLong(split[1]);
|
long end = Long.parseLong(split[1]);
|
||||||
|
// 避免起始大于结束
|
||||||
|
if(start > end){
|
||||||
|
long temp = start;
|
||||||
|
start = end;
|
||||||
|
end = temp;
|
||||||
|
}
|
||||||
for (long i = start; i <= end; i++) {
|
for (long i = start; i <= end; i++) {
|
||||||
PqDev dev = new PqDev();
|
PqDev dev = new PqDev();
|
||||||
BeanUtil.copyProperties(pqDev, dev);
|
BeanUtil.copyProperties(pqDev, dev);
|
||||||
|
|||||||
Reference in New Issue
Block a user