md
This commit is contained in:
parent
790231f8ab
commit
8bc143bdd9
@ -0,0 +1,77 @@
|
|||||||
|
|
||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisSiteController.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2023-12-14 13:02:46
|
||||||
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 网点 控制器 </p>
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.xdadan.erp.oms.web;
|
||||||
|
|
||||||
|
import com.xdadan.erp.oms.common.annotation.filter.jackson.JacksonFilter;
|
||||||
|
import com.xdadan.erp.oms.common.core.controller.BaseController;
|
||||||
|
import com.xdadan.erp.oms.common.core.page.TableDataInfo;
|
||||||
|
import com.xdadan.erp.oms.domain.EmisSite;
|
||||||
|
import com.xdadan.erp.oms.service.IEmisSiteService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 网点Controller
|
||||||
|
*
|
||||||
|
* @author linfso
|
||||||
|
* @date 2023-12-14 13:02:46
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/oms2c/emisSite")
|
||||||
|
public class Oms2cSiteController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IEmisSiteService emisSiteService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询网点列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisSite:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(EmisSite emisSite)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<EmisSite> list = emisSiteService.selectEmisSiteList(emisSite);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询网点-精简
|
||||||
|
*/
|
||||||
|
// @PreAuthorize("@ss.hasPermi('emis:emisSite:list')")
|
||||||
|
@JacksonFilter(include= {
|
||||||
|
"siteName",
|
||||||
|
"principal",
|
||||||
|
"managerPhone",
|
||||||
|
"address",
|
||||||
|
"incrementService",
|
||||||
|
"dispatchRange",
|
||||||
|
|
||||||
|
},value=EmisSite.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
|
||||||
|
@GetMapping("/listSimple")
|
||||||
|
public TableDataInfo listSimple(EmisSite emisSite)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
|
||||||
|
emisSite.setBlWeb("1");
|
||||||
|
List<EmisSite> list = emisSiteService.selectEmisSiteList(emisSite);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user