体测导入修改
This commit is contained in:
@@ -7,6 +7,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.srs.common.annotation.Excel;
|
||||
import com.srs.common.core.domain.AjaxResult;
|
||||
import com.srs.common.core.domain.BaseEntity;
|
||||
@@ -38,7 +39,7 @@ import static org.apache.commons.lang3.SystemUtils.getUserName;
|
||||
* @date 2023-06-28
|
||||
*/
|
||||
@Service
|
||||
public class SrsSportTestServiceImpl implements ISrsSportTestService
|
||||
public class SrsSportTestServiceImpl extends ServiceImpl<SrsSportTestMapper,SrsSportTest> implements ISrsSportTestService
|
||||
{
|
||||
@Autowired
|
||||
private SrsSportTestMapper srsSportTestMapper;
|
||||
@@ -274,10 +275,12 @@ public class SrsSportTestServiceImpl implements ISrsSportTestService
|
||||
}
|
||||
//修改体能测试
|
||||
if (needUpdateQuery.size() != 0) {
|
||||
//单条
|
||||
for (SrsSportTest srsSportTest:needUpdateQuery){
|
||||
srsSportTestMapper.updateSrsSportTest(srsSportTest);
|
||||
}
|
||||
this.updateBatchById(needUpdateQuery);
|
||||
// //单条
|
||||
// for (SrsSportTest srsSportTest:needUpdateQuery){
|
||||
//
|
||||
// srsSportTestMapper.updateSrsSportTest(srsSportTest);
|
||||
// }
|
||||
//切片批量
|
||||
// int userListSize=needUpdateQuery.size();
|
||||
// int sum=userListSize/1000;
|
||||
|
Reference in New Issue
Block a user