main
hansha 2 years ago
parent 5f2b20b716
commit d8a935c0f2

@ -1,31 +1,25 @@
package com.ruoyi.szxc.controller; package com.ruoyi.szxc.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcCsFw; import com.ruoyi.szxc.domain.SzxcCsFw;
import com.ruoyi.szxc.service.ISzxcCsFwService; import com.ruoyi.szxc.service.ISzxcCsFwService;
import com.ruoyi.common.utils.poi.ExcelUtil; import org.springframework.beans.factory.annotation.Autowired;
import com.ruoyi.common.core.page.TableDataInfo; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
* *
* @author hs * @author hs
* @date 2024-03-29 * @date 2024-03-30
*/ */
@RestController @RestController
@RequestMapping("/szxc/cs_fw") @RequestMapping("/szxc/cs_fw")
@ -63,10 +57,10 @@ public class SzxcCsFwController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('szxc:cs_fw:query')") @PreAuthorize("@ss.hasPermi('szxc:cs_fw:query')")
@GetMapping(value = "/{csId}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("csId") Long csId) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
return success(szxcCsFwService.selectSzxcCsFwByCsId(csId)); return success(szxcCsFwService.selectSzxcCsFwById(id));
} }
/** /**
@ -96,9 +90,9 @@ public class SzxcCsFwController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('szxc:cs_fw:remove')") @PreAuthorize("@ss.hasPermi('szxc:cs_fw:remove')")
@Log(title = "场所房屋关联", businessType = BusinessType.DELETE) @Log(title = "场所房屋关联", businessType = BusinessType.DELETE)
@DeleteMapping("/{csIds}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] csIds) public AjaxResult remove(@PathVariable Long[] ids)
{ {
return toAjax(szxcCsFwService.deleteSzxcCsFwByCsIds(csIds)); return toAjax(szxcCsFwService.deleteSzxcCsFwByIds(ids));
} }
} }

@ -0,0 +1,98 @@
package com.ruoyi.szxc.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcJmCar;
import com.ruoyi.szxc.service.ISzxcJmCarService;
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 hs
* @date 2024-03-30
*/
@RestController
@RequestMapping("/szxc/jmcar")
public class SzxcJmCarController extends BaseController
{
@Autowired
private ISzxcJmCarService szxcJmCarService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmcar:list')")
@GetMapping("/list")
public TableDataInfo list(SzxcJmCar szxcJmCar)
{
startPage();
List<SzxcJmCar> list = szxcJmCarService.selectSzxcJmCarList(szxcJmCar);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmcar:export')")
@Log(title = "居民车辆关联", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SzxcJmCar szxcJmCar)
{
List<SzxcJmCar> list = szxcJmCarService.selectSzxcJmCarList(szxcJmCar);
ExcelUtil<SzxcJmCar> util = new ExcelUtil<SzxcJmCar>(SzxcJmCar.class);
util.exportExcel(response, list, "居民车辆关联数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmcar:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(szxcJmCarService.selectSzxcJmCarById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmcar:add')")
@Log(title = "居民车辆关联", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SzxcJmCar szxcJmCar)
{
return toAjax(szxcJmCarService.insertSzxcJmCar(szxcJmCar));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmcar:edit')")
@Log(title = "居民车辆关联", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SzxcJmCar szxcJmCar)
{
return toAjax(szxcJmCarService.updateSzxcJmCar(szxcJmCar));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmcar:remove')")
@Log(title = "居民车辆关联", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(szxcJmCarService.deleteSzxcJmCarByIds(ids));
}
}

@ -0,0 +1,98 @@
package com.ruoyi.szxc.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcJmHouse;
import com.ruoyi.szxc.service.ISzxcJmHouseService;
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 hs
* @date 2024-03-30
*/
@RestController
@RequestMapping("/szxc/jmhouse")
public class SzxcJmHouseController extends BaseController
{
@Autowired
private ISzxcJmHouseService szxcJmHouseService;
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmhouse:list')")
@GetMapping("/list")
public TableDataInfo list(SzxcJmHouse szxcJmHouse)
{
startPage();
List<SzxcJmHouse> list = szxcJmHouseService.selectSzxcJmHouseList(szxcJmHouse);
return getDataTable(list);
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmhouse:export')")
@Log(title = "居民房屋关联", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SzxcJmHouse szxcJmHouse)
{
List<SzxcJmHouse> list = szxcJmHouseService.selectSzxcJmHouseList(szxcJmHouse);
ExcelUtil<SzxcJmHouse> util = new ExcelUtil<SzxcJmHouse>(SzxcJmHouse.class);
util.exportExcel(response, list, "居民房屋关联数据");
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmhouse:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(szxcJmHouseService.selectSzxcJmHouseById(id));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmhouse:add')")
@Log(title = "居民房屋关联", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SzxcJmHouse szxcJmHouse)
{
return toAjax(szxcJmHouseService.insertSzxcJmHouse(szxcJmHouse));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmhouse:edit')")
@Log(title = "居民房屋关联", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SzxcJmHouse szxcJmHouse)
{
return toAjax(szxcJmHouseService.updateSzxcJmHouse(szxcJmHouse));
}
/**
*
*/
@PreAuthorize("@ss.hasPermi('szxc:jmhouse:remove')")
@Log(title = "居民房屋关联", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(szxcJmHouseService.deleteSzxcJmHouseByIds(ids));
}
}

@ -20,7 +20,7 @@ import java.util.List;
* Controller * Controller
* *
* @author hs * @author hs
* @date 2024-03-21 * @date 2024-03-30
*/ */
@RestController @RestController
@RequestMapping("/szxc/jmtag") @RequestMapping("/szxc/jmtag")
@ -58,10 +58,10 @@ public class SzxcJmTagController extends BaseController
* *
*/ */
@PreAuthorize("@ss.hasPermi('szxc:jmtag:query')") @PreAuthorize("@ss.hasPermi('szxc:jmtag:query')")
@GetMapping(value = "/{jmId}") @GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("jmId") Long jmId) public AjaxResult getInfo(@PathVariable("id") Long id)
{ {
return success(szxcJmTagService.selectSzxcJmTagByJmId(jmId)); return success(szxcJmTagService.selectSzxcJmTagById(id));
} }
/** /**
@ -103,9 +103,9 @@ public class SzxcJmTagController extends BaseController
*/ */
@PreAuthorize("@ss.hasPermi('szxc:jmtag:remove')") @PreAuthorize("@ss.hasPermi('szxc:jmtag:remove')")
@Log(title = "居民标签关联", businessType = BusinessType.DELETE) @Log(title = "居民标签关联", businessType = BusinessType.DELETE)
@DeleteMapping("/{jmIds}") @DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] jmIds) public AjaxResult remove(@PathVariable Long[] ids)
{ {
return toAjax(szxcJmTagService.deleteSzxcJmTagByJmIds(jmIds)); return toAjax(szxcJmTagService.deleteSzxcJmTagByIds(ids));
} }
} }

@ -8,17 +8,17 @@ import java.util.List;
* Mapper * Mapper
* *
* @author hs * @author hs
* @date 2024-03-29 * @date 2024-03-30
*/ */
public interface SzxcCsFwMapper public interface SzxcCsFwMapper
{ {
/** /**
* *
* *
* @param csId * @param id
* @return * @return
*/ */
public SzxcCsFw selectSzxcCsFwByCsId(Long csId); public SzxcCsFw selectSzxcCsFwById(Long id);
/** /**
* *
@ -47,16 +47,16 @@ public interface SzxcCsFwMapper
/** /**
* *
* *
* @param csId * @param id
* @return * @return
*/ */
public int deleteSzxcCsFwByCsId(Long csId); public int deleteSzxcCsFwById(Long id);
/** /**
* *
* *
* @param csIds * @param ids
* @return * @return
*/ */
public int deleteSzxcCsFwByCsIds(Long[] csIds); public int deleteSzxcCsFwByIds(Long[] ids);
} }

@ -8,17 +8,17 @@ import java.util.List;
* Mapper * Mapper
* *
* @author hs * @author hs
* @date 2024-03-16 * @date 2024-03-30
*/ */
public interface SzxcJmCarMapper public interface SzxcJmCarMapper
{ {
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public SzxcJmCar selectSzxcJmCarByJmId(Long jmId); public SzxcJmCar selectSzxcJmCarById(Long id);
/** /**
* *
@ -47,16 +47,16 @@ public interface SzxcJmCarMapper
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public int deleteSzxcJmCarByJmId(Long jmId); public int deleteSzxcJmCarById(Long id);
/** /**
* *
* *
* @param jmIds * @param ids
* @return * @return
*/ */
public int deleteSzxcJmCarByJmIds(Long[] jmIds); public int deleteSzxcJmCarByIds(Long[] ids);
} }

@ -1,23 +1,24 @@
package com.ruoyi.szxc.mapper; package com.ruoyi.szxc.mapper;
import java.util.List;
import com.ruoyi.szxc.domain.SzxcJmHouse; import com.ruoyi.szxc.domain.SzxcJmHouse;
import java.util.List;
/** /**
* Mapper * Mapper
* *
* @author hs * @author hs
* @date 2024-03-16 * @date 2024-03-30
*/ */
public interface SzxcJmHouseMapper public interface SzxcJmHouseMapper
{ {
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public SzxcJmHouse selectSzxcJmHouseByJmId(Long jmId); public SzxcJmHouse selectSzxcJmHouseById(Long id);
/** /**
* *
@ -46,16 +47,16 @@ public interface SzxcJmHouseMapper
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public int deleteSzxcJmHouseByJmId(Long jmId); public int deleteSzxcJmHouseById(Long id);
/** /**
* *
* *
* @param jmIds * @param ids
* @return * @return
*/ */
public int deleteSzxcJmHouseByJmIds(Long[] jmIds); public int deleteSzxcJmHouseByIds(Long[] ids);
} }

@ -1,23 +1,24 @@
package com.ruoyi.szxc.mapper; package com.ruoyi.szxc.mapper;
import java.util.List;
import com.ruoyi.szxc.domain.SzxcJmTag; import com.ruoyi.szxc.domain.SzxcJmTag;
import java.util.List;
/** /**
* Mapper * Mapper
* *
* @author hs * @author hs
* @date 2024-03-16 * @date 2024-03-30
*/ */
public interface SzxcJmTagMapper public interface SzxcJmTagMapper
{ {
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public SzxcJmTag selectSzxcJmTagByJmId(Long jmId); public SzxcJmTag selectSzxcJmTagById(Long id);
/** /**
* *
@ -46,16 +47,23 @@ public interface SzxcJmTagMapper
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public int deleteSzxcJmTagByJmId(Long jmId); public int deleteSzxcJmTagById(Long id);
/** /**
* *
* *
* @param jmIds * @param ids
* @return * @return
*/ */
public int deleteSzxcJmTagByJmIds(Long[] jmIds); public int deleteSzxcJmTagByIds(Long[] ids);
/**
* jmid
* @param jmId
* @return
*/
public int deleteSzxcJmTagByJmId(Long jmId);
} }

@ -8,17 +8,17 @@ import java.util.List;
* Service * Service
* *
* @author hs * @author hs
* @date 2024-03-29 * @date 2024-03-30
*/ */
public interface ISzxcCsFwService public interface ISzxcCsFwService
{ {
/** /**
* *
* *
* @param csId * @param id
* @return * @return
*/ */
public SzxcCsFw selectSzxcCsFwByCsId(Long csId); public SzxcCsFw selectSzxcCsFwById(Long id);
/** /**
* *
@ -47,16 +47,16 @@ public interface ISzxcCsFwService
/** /**
* *
* *
* @param csIds * @param ids
* @return * @return
*/ */
public int deleteSzxcCsFwByCsIds(Long[] csIds); public int deleteSzxcCsFwByIds(Long[] ids);
/** /**
* *
* *
* @param csId * @param id
* @return * @return
*/ */
public int deleteSzxcCsFwByCsId(Long csId); public int deleteSzxcCsFwById(Long id);
} }

@ -8,17 +8,17 @@ import java.util.List;
* Service * Service
* *
* @author hs * @author hs
* @date 2024-03-16 * @date 2024-03-30
*/ */
public interface ISzxcJmCarService public interface ISzxcJmCarService
{ {
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public SzxcJmCar selectSzxcJmCarByJmId(Long jmId); public SzxcJmCar selectSzxcJmCarById(Long id);
/** /**
* *
@ -47,16 +47,16 @@ public interface ISzxcJmCarService
/** /**
* *
* *
* @param jmIds * @param ids
* @return * @return
*/ */
public int deleteSzxcJmCarByJmIds(Long[] jmIds); public int deleteSzxcJmCarByIds(Long[] ids);
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public int deleteSzxcJmCarByJmId(Long jmId); public int deleteSzxcJmCarById(Long id);
} }

@ -1,23 +1,24 @@
package com.ruoyi.szxc.service; package com.ruoyi.szxc.service;
import java.util.List;
import com.ruoyi.szxc.domain.SzxcJmHouse; import com.ruoyi.szxc.domain.SzxcJmHouse;
import java.util.List;
/** /**
* Service * Service
* *
* @author hs * @author hs
* @date 2024-03-16 * @date 2024-03-30
*/ */
public interface ISzxcJmHouseService public interface ISzxcJmHouseService
{ {
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public SzxcJmHouse selectSzxcJmHouseByJmId(Long jmId); public SzxcJmHouse selectSzxcJmHouseById(Long id);
/** /**
* *
@ -46,16 +47,16 @@ public interface ISzxcJmHouseService
/** /**
* *
* *
* @param jmIds * @param ids
* @return * @return
*/ */
public int deleteSzxcJmHouseByJmIds(Long[] jmIds); public int deleteSzxcJmHouseByIds(Long[] ids);
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public int deleteSzxcJmHouseByJmId(Long jmId); public int deleteSzxcJmHouseById(Long id);
} }

@ -8,17 +8,17 @@ import java.util.List;
* Service * Service
* *
* @author hs * @author hs
* @date 2024-03-21 * @date 2024-03-30
*/ */
public interface ISzxcJmTagService public interface ISzxcJmTagService
{ {
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public SzxcJmTag selectSzxcJmTagByJmId(Long jmId); public SzxcJmTag selectSzxcJmTagById(Long id);
/** /**
* *
@ -36,6 +36,13 @@ public interface ISzxcJmTagService
*/ */
public int insertSzxcJmTag(SzxcJmTag szxcJmTag); public int insertSzxcJmTag(SzxcJmTag szxcJmTag);
/**
*
* @param szxcJmTags
* @return
*/
public int insertSzxcJmTags(List<SzxcJmTag> szxcJmTags);
/** /**
* *
* *
@ -47,18 +54,16 @@ public interface ISzxcJmTagService
/** /**
* *
* *
* @param jmIds * @param ids
* @return * @return
*/ */
public int deleteSzxcJmTagByJmIds(Long[] jmIds); public int deleteSzxcJmTagByIds(Long[] ids);
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
public int deleteSzxcJmTagByJmId(Long jmId); public int deleteSzxcJmTagById(Long id);
int insertSzxcJmTags(List<SzxcJmTag> szxcJmTags);
} }

@ -12,7 +12,7 @@ import java.util.List;
* Service * Service
* *
* @author hs * @author hs
* @date 2024-03-29 * @date 2024-03-30
*/ */
@Service @Service
public class SzxcCsFwServiceImpl implements ISzxcCsFwService public class SzxcCsFwServiceImpl implements ISzxcCsFwService
@ -23,13 +23,13 @@ public class SzxcCsFwServiceImpl implements ISzxcCsFwService
/** /**
* *
* *
* @param csId * @param id
* @return * @return
*/ */
@Override @Override
public SzxcCsFw selectSzxcCsFwByCsId(Long csId) public SzxcCsFw selectSzxcCsFwById(Long id)
{ {
return szxcCsFwMapper.selectSzxcCsFwByCsId(csId); return szxcCsFwMapper.selectSzxcCsFwById(id);
} }
/** /**
@ -71,24 +71,24 @@ public class SzxcCsFwServiceImpl implements ISzxcCsFwService
/** /**
* *
* *
* @param csIds * @param ids
* @return * @return
*/ */
@Override @Override
public int deleteSzxcCsFwByCsIds(Long[] csIds) public int deleteSzxcCsFwByIds(Long[] ids)
{ {
return szxcCsFwMapper.deleteSzxcCsFwByCsIds(csIds); return szxcCsFwMapper.deleteSzxcCsFwByIds(ids);
} }
/** /**
* *
* *
* @param csId * @param id
* @return * @return
*/ */
@Override @Override
public int deleteSzxcCsFwByCsId(Long csId) public int deleteSzxcCsFwById(Long id)
{ {
return szxcCsFwMapper.deleteSzxcCsFwByCsId(csId); return szxcCsFwMapper.deleteSzxcCsFwById(id);
} }
} }

@ -12,7 +12,7 @@ import java.util.List;
* Service * Service
* *
* @author hs * @author hs
* @date 2024-03-16 * @date 2024-03-30
*/ */
@Service @Service
public class SzxcJmCarServiceImpl implements ISzxcJmCarService public class SzxcJmCarServiceImpl implements ISzxcJmCarService
@ -23,13 +23,13 @@ public class SzxcJmCarServiceImpl implements ISzxcJmCarService
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
@Override @Override
public SzxcJmCar selectSzxcJmCarByJmId(Long jmId) public SzxcJmCar selectSzxcJmCarById(Long id)
{ {
return szxcJmCarMapper.selectSzxcJmCarByJmId(jmId); return szxcJmCarMapper.selectSzxcJmCarById(id);
} }
/** /**
@ -71,24 +71,24 @@ public class SzxcJmCarServiceImpl implements ISzxcJmCarService
/** /**
* *
* *
* @param jmIds * @param ids
* @return * @return
*/ */
@Override @Override
public int deleteSzxcJmCarByJmIds(Long[] jmIds) public int deleteSzxcJmCarByIds(Long[] ids)
{ {
return szxcJmCarMapper.deleteSzxcJmCarByJmIds(jmIds); return szxcJmCarMapper.deleteSzxcJmCarByIds(ids);
} }
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
@Override @Override
public int deleteSzxcJmCarByJmId(Long jmId) public int deleteSzxcJmCarById(Long id)
{ {
return szxcJmCarMapper.deleteSzxcJmCarByJmId(jmId); return szxcJmCarMapper.deleteSzxcJmCarById(id);
} }
} }

@ -1,17 +1,18 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.szxc.mapper.SzxcJmHouseMapper;
import com.ruoyi.szxc.domain.SzxcJmHouse; import com.ruoyi.szxc.domain.SzxcJmHouse;
import com.ruoyi.szxc.mapper.SzxcJmHouseMapper;
import com.ruoyi.szxc.service.ISzxcJmHouseService; import com.ruoyi.szxc.service.ISzxcJmHouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
* *
* @author hs * @author hs
* @date 2024-03-16 * @date 2024-03-30
*/ */
@Service @Service
public class SzxcJmHouseServiceImpl implements ISzxcJmHouseService public class SzxcJmHouseServiceImpl implements ISzxcJmHouseService
@ -22,13 +23,13 @@ public class SzxcJmHouseServiceImpl implements ISzxcJmHouseService
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
@Override @Override
public SzxcJmHouse selectSzxcJmHouseByJmId(Long jmId) public SzxcJmHouse selectSzxcJmHouseById(Long id)
{ {
return szxcJmHouseMapper.selectSzxcJmHouseByJmId(jmId); return szxcJmHouseMapper.selectSzxcJmHouseById(id);
} }
/** /**
@ -70,24 +71,24 @@ public class SzxcJmHouseServiceImpl implements ISzxcJmHouseService
/** /**
* *
* *
* @param jmIds * @param ids
* @return * @return
*/ */
@Override @Override
public int deleteSzxcJmHouseByJmIds(Long[] jmIds) public int deleteSzxcJmHouseByIds(Long[] ids)
{ {
return szxcJmHouseMapper.deleteSzxcJmHouseByJmIds(jmIds); return szxcJmHouseMapper.deleteSzxcJmHouseByIds(ids);
} }
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
@Override @Override
public int deleteSzxcJmHouseByJmId(Long jmId) public int deleteSzxcJmHouseById(Long id)
{ {
return szxcJmHouseMapper.deleteSzxcJmHouseByJmId(jmId); return szxcJmHouseMapper.deleteSzxcJmHouseById(id);
} }
} }

@ -3,34 +3,34 @@ package com.ruoyi.szxc.service.impl;
import com.ruoyi.szxc.domain.SzxcJmTag; import com.ruoyi.szxc.domain.SzxcJmTag;
import com.ruoyi.szxc.mapper.SzxcJmTagMapper; import com.ruoyi.szxc.mapper.SzxcJmTagMapper;
import com.ruoyi.szxc.service.ISzxcJmTagService; import com.ruoyi.szxc.service.ISzxcJmTagService;
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;
import javax.annotation.Resource;
import java.util.List; import java.util.List;
/** /**
* Service * Service
* *
* @author hs * @author hs
* @date 2024-03-21 * @date 2024-03-30
*/ */
@Service @Service
public class SzxcJmTagServiceImpl implements ISzxcJmTagService public class SzxcJmTagServiceImpl implements ISzxcJmTagService
{ {
@Resource @Autowired
private SzxcJmTagMapper szxcJmTagMapper; private SzxcJmTagMapper szxcJmTagMapper;
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
@Override @Override
public SzxcJmTag selectSzxcJmTagByJmId(Long jmId) public SzxcJmTag selectSzxcJmTagById(Long id)
{ {
return szxcJmTagMapper.selectSzxcJmTagByJmId(jmId); return szxcJmTagMapper.selectSzxcJmTagById(id);
} }
/** /**
@ -98,26 +98,24 @@ public class SzxcJmTagServiceImpl implements ISzxcJmTagService
/** /**
* *
* *
* @param jmIds * @param ids
* @return * @return
*/ */
@Override @Override
public int deleteSzxcJmTagByJmIds(Long[] jmIds) public int deleteSzxcJmTagByIds(Long[] ids)
{ {
return szxcJmTagMapper.deleteSzxcJmTagByJmIds(jmIds); return szxcJmTagMapper.deleteSzxcJmTagByIds(ids);
} }
/** /**
* *
* *
* @param jmId * @param id
* @return * @return
*/ */
@Override @Override
public int deleteSzxcJmTagByJmId(Long jmId) public int deleteSzxcJmTagById(Long id)
{ {
return szxcJmTagMapper.deleteSzxcJmTagByJmId(jmId); return szxcJmTagMapper.deleteSzxcJmTagById(id);
} }
} }

@ -53,6 +53,11 @@
where id = #{id} where id = #{id}
</update> </update>
<!--删除所有jmid对应的数据 -->
<delete id="deleteSzxcJmTagByJmId" parameterType="Long">
delete from szxc_jm_tag where jm_id = #{jmId}
</delete>
<delete id="deleteSzxcJmTagById" parameterType="Long"> <delete id="deleteSzxcJmTagById" parameterType="Long">
delete from szxc_jm_tag where id = #{id} delete from szxc_jm_tag where id = #{id}
</delete> </delete>

Loading…
Cancel
Save