Commit 0259ba52 authored by Quxl's avatar Quxl

x

parent 3e436e08
...@@ -10,7 +10,6 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -10,7 +10,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.egolm.common.StringUtil; import com.egolm.common.StringUtil;
import com.egolm.common.Util;
import com.egolm.common.bean.Rjx; import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.JdbcTemplate; import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.common.jdbc.Page; import com.egolm.common.jdbc.Page;
...@@ -235,22 +234,22 @@ public class AddressServiceImpl implements AddressService { ...@@ -235,22 +234,22 @@ public class AddressServiceImpl implements AddressService {
public Map<String, Object> getDefaultAddress(String custNo, String shopNo) { public Map<String, Object> getDefaultAddress(String custNo, String shopNo) {
String sql = "" String sql = ""
+ "select " + "select "
+ "addrID=t.sAddrID, " + "addrID=sAddrID, "
+ "addrName=t.sAddrName, " + "addrName=sAddrName, "
+ "contacts=t.sContacts, " + "contacts=sContacts, "
+ "mobile=t.sMobile, " + "mobile=sMobile, "
+ "tel=t.sTel, " + "tel=sTel, "
+ "province=t.sProvince, " + "province=sProvince, "
+ "city=t.sCity, " + "city=sCity, "
+ "districtID=t.sDistrictID, " + "districtID=sDistrictID, "
+ "provinceID=t.sProvinceID, " + "provinceID=sProvinceID, "
+ "cityID=t.sCityID, " + "cityID=sCityID, "
+ "district=t.sDistrict, " + "district=sDistrict, "
+ "address=t.sAddress, " + "address=sAddress, "
+ "street=t.sStreet, " + "street=sStreet, "
+ "postalcode=t.sPostalcode, " + "postalcode=sPostalcode, "
+ "tag=t.nTag, " + "tag=nTag, "
+ "lastUpdateTime = t.dLastUpdateTime " + "lastUpdateTime = dLastUpdateTime "
+ " from tCustAddress where nTag&1 = 0 and sCustNO = ? and (sShopNO = ? or sShopNO is null or sShopNO = '') order by nTag desc"; + " from tCustAddress where nTag&1 = 0 and sCustNO = ? and (sShopNO = ? or sShopNO is null or sShopNO = '') order by nTag desc";
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql, custNo, shopNo); List<Map<String, Object>> list = jdbcTemplate.queryForList(sql, custNo, shopNo);
Map<String, Object> defMap = null; Map<String, Object> defMap = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment