|
@@ -81,7 +81,7 @@ public class AppSitePlaceController extends JeecgController<AppSitePlace, IAppSi
|
|
|
*/
|
|
|
@AutoLog(value = "商户无固定场所-添加")
|
|
|
@Operation(summary = "商户无固定场所-添加")
|
|
|
-// @RequiresPermissions("org.jeecg.modules.system.app:nm_site_place:add")
|
|
|
+ @RequiresPermissions("app:appSitePlace:addUnfixed")
|
|
|
@PostMapping(value = "/addUnfixed")
|
|
|
public Result<String> addUnfixed(@RequestBody
|
|
|
AppSitePlaceUnfixedDTO unfixedDTO) {
|
|
@@ -160,13 +160,14 @@ public class AppSitePlaceController extends JeecgController<AppSitePlace, IAppSi
|
|
|
* 根据orgCode查询site列表
|
|
|
*
|
|
|
* @param orgCode
|
|
|
+ * @param type
|
|
|
* @return
|
|
|
*/
|
|
|
@AutoLog(value = "根据orgCode查询商户信息列表")
|
|
|
@Operation(summary = "根据orgCode查询site列表")
|
|
|
- @GetMapping(value = "/queryByOrgCode/{orgCode}")
|
|
|
- public Result<List<AppSite>> queryByOrgCode(@PathVariable(name = "orgCode") String orgCode) {
|
|
|
- List<AppSite> appSites = appSitePlaceService.queryByOrgCode(orgCode);
|
|
|
+ @GetMapping(value = "/queryByOrgCode")
|
|
|
+ public Result<List<AppSite>> queryByOrgCode(@RequestParam(name = "orgCode", required = true) String orgCode,@RequestParam(name = "type") Integer type) {
|
|
|
+ List<AppSite> appSites = appSitePlaceService.queryByOrgCode(orgCode,type);
|
|
|
return Result.OK(appSites);
|
|
|
}
|
|
|
|
|
@@ -178,7 +179,7 @@ public class AppSitePlaceController extends JeecgController<AppSitePlace, IAppSi
|
|
|
*/
|
|
|
@AutoLog(value = "c-编辑")
|
|
|
@Operation(summary = "商户无固定场所-编辑")
|
|
|
-// @RequiresPermissions("org.jeecg.modules.system.app:nm_site_place:edit")
|
|
|
+ @RequiresPermissions("app:appSitePlace:updateUnfixed")
|
|
|
@RequestMapping(value = "/updateUnfixed", method = {RequestMethod.PUT, RequestMethod.POST})
|
|
|
public Result<String> updateUnfixed(@RequestBody AppSitePlaceUnfixedDTO unfixedDTO) {
|
|
|
Boolean b = appSitePlaceService.updateUnfixed(unfixedDTO);
|
|
@@ -208,7 +209,7 @@ public class AppSitePlaceController extends JeecgController<AppSitePlace, IAppSi
|
|
|
*/
|
|
|
@AutoLog(value = "商户无固定场所-通过id删除")
|
|
|
@Operation(summary = "商户无固定场所-通过id删除")
|
|
|
-// @RequiresPermissions("org.jeecg.modules.system.app:nm_site_place:delete")
|
|
|
+ @RequiresPermissions("app:appSitePlace:deleteUnfixed")
|
|
|
@DeleteMapping(value = "/deleteUnfixed")
|
|
|
public Result<String> deleteUnfixed(@RequestParam(name = "id", required = true) String id) {
|
|
|
appSitePlaceService.deleteUnfixed(id);
|