|
|
@ -114,8 +114,8 @@ public class CaPingfangServiceImpl extends BaseServiceImpl<CaPingfangDao, CaPing |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public void preserPingFangVation(PreserVationFormDTO dto) { |
|
|
|
baseDao.deleteAll(); |
|
|
|
|
|
|
|
int i = baseDao.deleteAll(); |
|
|
|
if (i >= 0) { |
|
|
|
dto.setPageNo(NumConstant.ONE); |
|
|
|
dto.setPageSize(NumConstant.FIFTY); |
|
|
|
dto.setTableSchema(CaWghDataConstant.TABLESCHEMA_UNICOM); |
|
|
@ -139,6 +139,8 @@ public class CaPingfangServiceImpl extends BaseServiceImpl<CaPingfangDao, CaPing |
|
|
|
} while (total > (pageNo * NumConstant.FIFTY)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
public CaPingFangDetailsResultDTO getPingFangDetails(CaPingFangDetailsFormDTO dto) { |
|
|
@ -149,7 +151,7 @@ public class CaPingfangServiceImpl extends BaseServiceImpl<CaPingfangDao, CaPing |
|
|
|
private int listPingFang(PreserVationFormDTO dto) throws Exception { |
|
|
|
String aes = AesUtils.encryptByAES(JSONObject.toJSONString(dto), CaWghDataConstant.AESKEY); |
|
|
|
JSONObject obj = new JSONObject(); |
|
|
|
obj.put(CaWghDataConstant.UNICOM_CONDITION,aes); |
|
|
|
obj.put(CaWghDataConstant.UNICOM_CONDITION, aes); |
|
|
|
String data = HttpClientManager.getInstance().sendPostByJSON(CaWghDataConstant.DATA_URL_UNICON, obj.toJSONString()).getData(); |
|
|
|
JSONObject toResult = JSON.parseObject(data); |
|
|
|
Result result = ConvertUtils.mapToEntity(toResult, Result.class); |
|
|
|