|
@@ -44,8 +44,9 @@ public class GhDetailServiceImpl implements GhDetailService {
|
|
|
page.setCurrentPage(pageNum);
|
|
|
page.setPageSize(pageSize);
|
|
|
GhDetailExample example = new GhDetailExample();
|
|
|
+ GhDetailExample.Criteria criteria = example.createCriteria().andIsDeleteEqualTo(0);
|
|
|
if (StringUtils.isNotEmpty(accountId)) {
|
|
|
- example.createCriteria().andGhIdEqualTo(accountId);
|
|
|
+ criteria.andGhIdEqualTo(accountId);
|
|
|
}
|
|
|
example.setPage(page);
|
|
|
long total = ghDetailMapper.countByExample(example);
|
|
@@ -121,6 +122,15 @@ public class GhDetailServiceImpl implements GhDetailService {
|
|
|
return CommonResponse.success();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public CommonResponse<Void> deleteDetail(Long id) {
|
|
|
+ GhDetail ghDetail = new GhDetail();
|
|
|
+ ghDetail.setId(id);
|
|
|
+ ghDetail.setIsDelete(1);
|
|
|
+ ghDetailMapper.updateByPrimaryKeySelective(ghDetail);
|
|
|
+ return CommonResponse.success();
|
|
|
+ }
|
|
|
+
|
|
|
public void getGhDetail(GhDetail ghDetail) {
|
|
|
String baseUrl = "http://aigc-api.cybertogether.net";
|
|
|
WebClient webClient = WebClient.builder()
|