Commit 92deedcd by huangZW

111

parent b640e9fa
...@@ -8,6 +8,8 @@ import java.util.List; ...@@ -8,6 +8,8 @@ import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
...@@ -39,6 +41,8 @@ import com.github.pagehelper.PageHelper; ...@@ -39,6 +41,8 @@ import com.github.pagehelper.PageHelper;
*/ */
@Service @Service
public class AuditApiServiceImpl implements AuditApiService{ public class AuditApiServiceImpl implements AuditApiService{
private static Logger logger = LoggerFactory.getLogger(AuditApiServiceImpl.class);
@Autowired @Autowired
private TabHaobanAuditMapper auditMapper; private TabHaobanAuditMapper auditMapper;
@Autowired @Autowired
...@@ -162,6 +166,7 @@ public class AuditApiServiceImpl implements AuditApiService{ ...@@ -162,6 +166,7 @@ public class AuditApiServiceImpl implements AuditApiService{
StoreAddressDTO obj = JSONObject.parseObject(newValue,StoreAddressDTO.class); StoreAddressDTO obj = JSONObject.parseObject(newValue,StoreAddressDTO.class);
String areaId = obj.getAreaId(); String areaId = obj.getAreaId();
String storeAddress = obj.getStoreAddress(); String storeAddress = obj.getStoreAddress();
logger.info("==========================>areaId={},storeAddress={}",areaId,storeAddress);
String arr[] = storeAddress.split(" "); String arr[] = storeAddress.split(" ");
store.setAreaId(areaId); store.setAreaId(areaId);
store.setFullArea(arr[0]); store.setFullArea(arr[0]);
......
...@@ -229,7 +229,7 @@ public class StoreController extends WebBaseController{ ...@@ -229,7 +229,7 @@ public class StoreController extends WebBaseController{
} }
//修改门店数据 //修改门店数据
@RequestMapping("/change-store-detail") @RequestMapping("/change-store-detail")
public HaobanResponse saleDate(String wxEnterpriseId,String storeId,String staffId,String changeField,String oldValue,String newValue) { public HaobanResponse changeStoreDetail(String wxEnterpriseId,String storeId,String staffId,String changeField,String oldValue,String newValue) {
if(StringUtils.isAnyBlank(wxEnterpriseId,storeId,changeField,oldValue,newValue)){ if(StringUtils.isAnyBlank(wxEnterpriseId,storeId,changeField,oldValue,newValue)){
return resultResponse(HaoBanErrCode.ERR_2); return resultResponse(HaoBanErrCode.ERR_2);
} }
......
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