|
|
@ -25,6 +25,7 @@ import com.elink.esua.epdc.commons.tools.page.PageData; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; |
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
import com.elink.esua.epdc.dto.PersonTestingDTO; |
|
|
|
import com.elink.esua.epdc.dto.PersonTestingPageDTO; |
|
|
|
import com.elink.esua.epdc.dto.UploadFormDTO; |
|
|
|
import com.elink.esua.epdc.modules.epidemic.dao.PersonTestingDao; |
|
|
|
import com.elink.esua.epdc.modules.epidemic.entity.PersonTestingEntity; |
|
|
@ -59,14 +60,14 @@ public class PersonTestingServiceImpl extends BaseServiceImpl<PersonTestingDao, |
|
|
|
private OssFeignClient ossFeignClient; |
|
|
|
|
|
|
|
@Override |
|
|
|
public PageData<PersonTestingDTO> page(Map<String, Object> params) { |
|
|
|
public PageData<PersonTestingPageDTO> page(Map<String, Object> params) { |
|
|
|
// IPage<PersonTestingEntity> page = baseDao.selectPage(
|
|
|
|
// getPage(params, FieldConstant.CREATED_TIME, false),
|
|
|
|
// getWrapper(params)
|
|
|
|
// );
|
|
|
|
// return getPageData(page, PersonTestingDTO.class);
|
|
|
|
IPage<PersonTestingDTO> page = getPage(params); |
|
|
|
List<PersonTestingDTO> list = baseDao.getTestingPage(params); |
|
|
|
IPage<PersonTestingPageDTO> page = getPage(params); |
|
|
|
List<PersonTestingPageDTO> list = baseDao.getTestingPage(params); |
|
|
|
return new PageData<>(list, page.getTotal()); |
|
|
|
} |
|
|
|
|
|
|
@ -153,7 +154,7 @@ public class PersonTestingServiceImpl extends BaseServiceImpl<PersonTestingDao, |
|
|
|
@Override |
|
|
|
public Result saveScanningInfo(PersonTestingDTO dto) { |
|
|
|
UploadFormDTO form = new UploadFormDTO(); |
|
|
|
form.setBase64String(dto.getImgCode()); |
|
|
|
form.setBase64String("data:image/png;base64,"+dto.getImgCode()); |
|
|
|
PersonTestingEntity entity = ConvertUtils.sourceToTarget(dto, PersonTestingEntity.class); |
|
|
|
Result<String> uploadResult = ossFeignClient.uploadBase64(form); |
|
|
|
if(!uploadResult.success()){ |
|
|
|