设置指导价修改时间
This commit is contained in:
+3
-6
@@ -112,10 +112,6 @@ public class BaseAvgImportServlet extends HttpServlet {
|
||||
long version = new Date().getTime();
|
||||
infoMap = checkUploadData(sheet, name, version, infoMap, realName);
|
||||
infoMap.put("version", version);
|
||||
// String info = map.get("info");
|
||||
// if(StringUtils.isNotBlank(info) && info.equals("success")){
|
||||
// new CookieContext("fangjia.com").saveCookie(response, "upload_version", version);
|
||||
// }
|
||||
String json = JSONObject.fromObject(infoMap).toString();
|
||||
if (infoMap.containsKey("success")) {
|
||||
response.getWriter().write(infoMap.get("success").toString());
|
||||
@@ -437,8 +433,7 @@ public class BaseAvgImportServlet extends HttpServlet {
|
||||
|
||||
if (avgBase.getIsGuidancePrice() == 1) {
|
||||
if(dis == null){
|
||||
DistrictKey districtKey = new DistrictKey(avgBase.getCity(), avgBase.getRegion(),
|
||||
avgBase.getDistrictName());
|
||||
DistrictKey districtKey = new DistrictKey(avgBase.getCity(), avgBase.getRegion(), avgBase.getDistrictName());
|
||||
dis = districtService.findOneByKey(districtKey, "district");
|
||||
}
|
||||
GuidingPrice price = guidingPriceService.findByBizKey(avgBase.getCity(), RegionData.formatRegion(avgBase.getCity(), avgBase.getRegion()),
|
||||
@@ -447,6 +442,7 @@ public class BaseAvgImportServlet extends HttpServlet {
|
||||
price.setGuidingPerson(avgBase.getUserName());
|
||||
price.setGuidingDate(avgBase.getCreationDate());
|
||||
price.setGuidingValue(avgBase.getPrice());
|
||||
price.setModifyDate(new Date());
|
||||
guidingPriceService.save(price);
|
||||
|
||||
} else {
|
||||
@@ -461,6 +457,7 @@ public class BaseAvgImportServlet extends HttpServlet {
|
||||
price.setGuidingValue(avgBase.getPrice());
|
||||
price.setEstateType(dis.getEstateType2().contains("别墅") ? "别墅" : "普通住宅");
|
||||
price.setCat("district");
|
||||
price.setModifyDate(new Date());
|
||||
guidingPriceService.save(price);
|
||||
HttpRequest request = new HttpRequest();
|
||||
HashMap<String, String> params = new HashMap<String, String>();
|
||||
|
||||
Reference in New Issue
Block a user