|
@ -13,14 +13,13 @@ import com.epmet.commons.tools.constant.FieldConstant; |
|
|
import com.epmet.commons.tools.utils.HttpClientManager; |
|
|
import com.epmet.commons.tools.utils.HttpClientManager; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.opendata.dao.CaRentalDao; |
|
|
import com.epmet.opendata.dao.CaRentalDao; |
|
|
import com.epmet.opendata.dto.CaRentalDTO; |
|
|
import com.epmet.opendata.dto.ca.CaRentalDTO; |
|
|
|
|
|
import com.epmet.opendata.dto.constant.CaWghDataConstant; |
|
|
import com.epmet.opendata.dto.form.CaRentalDetailsFormDTO; |
|
|
import com.epmet.opendata.dto.form.CaRentalDetailsFormDTO; |
|
|
import com.epmet.opendata.dto.form.CaRentalFormtDTO; |
|
|
import com.epmet.opendata.dto.form.CaRentalFormtDTO; |
|
|
import com.epmet.opendata.dto.form.PreserVationFormDTO; |
|
|
import com.epmet.opendata.dto.form.PreserVationFormDTO; |
|
|
import com.epmet.opendata.dto.result.CaLoudongResultDTO; |
|
|
|
|
|
import com.epmet.opendata.dto.result.CaRentalDetailsResultDTO; |
|
|
import com.epmet.opendata.dto.result.CaRentalDetailsResultDTO; |
|
|
import com.epmet.opendata.dto.result.CaRentalResultDTO; |
|
|
import com.epmet.opendata.dto.result.CaRentalResultDTO; |
|
|
import com.epmet.opendata.entity.CaLoudongEntity; |
|
|
|
|
|
import com.epmet.opendata.entity.CaRentalEntity; |
|
|
import com.epmet.opendata.entity.CaRentalEntity; |
|
|
import com.epmet.opendata.redis.CaRentalRedis; |
|
|
import com.epmet.opendata.redis.CaRentalRedis; |
|
|
import com.epmet.opendata.service.CaRentalService; |
|
|
import com.epmet.opendata.service.CaRentalService; |
|
@ -124,8 +123,8 @@ public class CaRentalServiceImpl extends BaseServiceImpl<CaRentalDao, CaRentalEn |
|
|
|
|
|
|
|
|
dto.setPageNo(NumConstant.ONE); |
|
|
dto.setPageNo(NumConstant.ONE); |
|
|
dto.setPageSize(NumConstant.FIFTY); |
|
|
dto.setPageSize(NumConstant.FIFTY); |
|
|
dto.setTableSchema(rentalEnum.CZF.name); |
|
|
dto.setTableSchema(CaWghDataConstant.TABLESCHEMA_UNICOM); |
|
|
dto.setTableName(rentalEnum.CZF.code); |
|
|
dto.setTableName(CaWghDataConstant.UNICOM_RENTAL); |
|
|
|
|
|
|
|
|
dto.setWhereCase("delete_flag = 'normal'"); |
|
|
dto.setWhereCase("delete_flag = 'normal'"); |
|
|
dto.setOrderBy("grid_id,update_date desc"); |
|
|
dto.setOrderBy("grid_id,update_date desc"); |
|
@ -152,25 +151,8 @@ public class CaRentalServiceImpl extends BaseServiceImpl<CaRentalDao, CaRentalEn |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
enum rentalEnum { |
|
|
|
|
|
|
|
|
|
|
|
CZF("unicom", "ca_rental"), |
|
|
|
|
|
AES("key", "hriajrutnbghajsd") |
|
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
|
|
private String name; |
|
|
|
|
|
private String code; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rentalEnum(String name, String code) { |
|
|
|
|
|
this.name = name; |
|
|
|
|
|
this.code = code; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private int listRental(PreserVationFormDTO dto) throws Exception { |
|
|
private int listRental(PreserVationFormDTO dto) throws Exception { |
|
|
String aes = AesUtils.encryptByAES(JSONObject.toJSONString(dto), rentalEnum.AES.code); |
|
|
String aes = AesUtils.encryptByAES(JSONObject.toJSONString(dto), CaWghDataConstant.AESKEY); |
|
|
JSONObject obj = new JSONObject(); |
|
|
JSONObject obj = new JSONObject(); |
|
|
obj.put("unicomCondition", aes); |
|
|
obj.put("unicomCondition", aes); |
|
|
String data = HttpClientManager.getInstance().sendPostByJSON("http://120.221.72.83:9090/bridge/unicom/page", obj.toJSONString()).getData(); |
|
|
String data = HttpClientManager.getInstance().sendPostByJSON("http://120.221.72.83:9090/bridge/unicom/page", obj.toJSONString()).getData(); |
|
|