Commit a39744bd by guojuxing

门店修改添加逻辑:同步微盟

parent 0cc8d33d
......@@ -58,4 +58,15 @@ public interface WmStoreSyncLogApiService {
* @return com.gic.api.base.commons.ServiceResponse<java.lang.Void>


*/
ServiceResponse<Void> deleteLogic(Integer storeId, Integer wmMallStoreId);
/**
* 查询所有店铺
* @Title: listByStoreId

* @Description:

* @author guojuxing
* @param storeId
* @param enterpriseId

* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.enterprise.dto.wm.WmStoreSyncLogDTO>>


*/
ServiceResponse<List<WmStoreSyncLogDTO>> listByStoreId(Integer storeId, Integer enterpriseId);
}
......@@ -60,4 +60,6 @@ public interface TabWmStoreSyncLogMapper {
List<TabWmStoreSyncLog> getStoreList(@Param("typeList") List<Integer> type, @Param("wmMallStoreId") Integer wmMallStoreId);
int deleteLogic(@Param("storeId") Integer storeId, @Param("wmMallStoreId") Integer wmMallStoreId);
List<TabWmStoreSyncLog> listByStoreId(@Param("storeId") Integer storeId, @Param("enterpriseId") Integer enterpriseId);
}
\ No newline at end of file
......@@ -17,4 +17,6 @@ public interface WmStoreSyncLogService {
List<TabWmStoreSyncLog> getStoreList(List<Integer> type, Integer wmMallStoreId);
int deleteLogic(Integer storeId, Integer wmMallStoreId);
List<TabWmStoreSyncLog> listByStoreId(Integer storeId, Integer enterpriseId);
}
......@@ -51,4 +51,9 @@ public class WmStoreSyncLogServiceImpl implements WmStoreSyncLogService {
public int deleteLogic(Integer storeId, Integer wmMallStoreId) {
return tabWmStoreSyncLogMapper.deleteLogic(storeId, wmMallStoreId);
}
@Override
public List<TabWmStoreSyncLog> listByStoreId(Integer storeId, Integer enterpriseId) {
return tabWmStoreSyncLogMapper.listByStoreId(storeId, enterpriseId);
}
}
......@@ -71,4 +71,13 @@ public class WmStoreSyncLogApiServiceImpl implements WmStoreSyncLogApiService {
wmStoreSyncLogService.deleteLogic(storeId, wmMallStoreId);
return ServiceResponse.success();
}
@Override
public ServiceResponse<List<WmStoreSyncLogDTO>> listByStoreId(Integer storeId, Integer enterpriseId) {
List<TabWmStoreSyncLog> list = wmStoreSyncLogService.listByStoreId(storeId, enterpriseId);
if (CollectionUtils.isEmpty(list)) {
return ServiceResponse.success(Collections.emptyList());
}
return ServiceResponse.success(EntityUtil.changeEntityListNew(WmStoreSyncLogDTO.class, list));
}
}
......@@ -184,4 +184,13 @@
and wm_mall_store_id = #{wmMallStoreId}
and store_id = #{storeId}
</update>
<select id="listByStoreId" resultMap="BaseResultMap">
select <include refid="Base_Column_List"></include>
from tab_wm_store_sync_log
where status = 1
and store_id = #{storeId}
and enterprise_id = #{enterpriseId}
group by wm_mall_store_id
</select>
</mapper>
\ No newline at end of file
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