main
hansha 2 years ago
parent 5f2b20b716
commit d8a935c0f2

@ -1,31 +1,25 @@
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.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.SzxcCsFw;
import com.ruoyi.szxc.service.ISzxcCsFwService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
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-29
* @date 2024-03-30
*/
@RestController
@RequestMapping("/szxc/cs_fw")
@ -63,10 +57,10 @@ public class SzxcCsFwController extends BaseController
*
*/
@PreAuthorize("@ss.hasPermi('szxc:cs_fw:query')")
@GetMapping(value = "/{csId}")
public AjaxResult getInfo(@PathVariable("csId") Long csId)
@GetMapping(value = "/{id}")
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')")
@Log(title = "场所房屋关联", businessType = BusinessType.DELETE)
@DeleteMapping("/{csIds}")
public AjaxResult remove(@PathVariable Long[] csIds)
@DeleteMapping("/{ids}")
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));
}
}

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

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

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

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

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

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

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

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

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

@ -10,31 +10,31 @@ import java.util.List;
/**
* Service
*
*
* @author hs
* @date 2024-03-29
* @date 2024-03-30
*/
@Service
public class SzxcCsFwServiceImpl implements ISzxcCsFwService
public class SzxcCsFwServiceImpl implements ISzxcCsFwService
{
@Autowired
private SzxcCsFwMapper szxcCsFwMapper;
/**
*
*
* @param csId
*
* @param id
* @return
*/
@Override
public SzxcCsFw selectSzxcCsFwByCsId(Long csId)
public SzxcCsFw selectSzxcCsFwById(Long id)
{
return szxcCsFwMapper.selectSzxcCsFwByCsId(csId);
return szxcCsFwMapper.selectSzxcCsFwById(id);
}
/**
*
*
*
* @param szxcCsFw
* @return
*/
@ -46,7 +46,7 @@ public class SzxcCsFwServiceImpl implements ISzxcCsFwService
/**
*
*
*
* @param szxcCsFw
* @return
*/
@ -58,7 +58,7 @@ public class SzxcCsFwServiceImpl implements ISzxcCsFwService
/**
*
*
*
* @param szxcCsFw
* @return
*/
@ -70,25 +70,25 @@ public class SzxcCsFwServiceImpl implements ISzxcCsFwService
/**
*
*
* @param csIds
*
* @param ids
* @return
*/
@Override
public int deleteSzxcCsFwByCsIds(Long[] csIds)
public int deleteSzxcCsFwByIds(Long[] ids)
{
return szxcCsFwMapper.deleteSzxcCsFwByCsIds(csIds);
return szxcCsFwMapper.deleteSzxcCsFwByIds(ids);
}
/**
*
*
* @param csId
*
* @param id
* @return
*/
@Override
public int deleteSzxcCsFwByCsId(Long csId)
public int deleteSzxcCsFwById(Long id)
{
return szxcCsFwMapper.deleteSzxcCsFwByCsId(csId);
return szxcCsFwMapper.deleteSzxcCsFwById(id);
}
}

@ -10,31 +10,31 @@ import java.util.List;
/**
* Service
*
*
* @author hs
* @date 2024-03-16
* @date 2024-03-30
*/
@Service
public class SzxcJmCarServiceImpl implements ISzxcJmCarService
public class SzxcJmCarServiceImpl implements ISzxcJmCarService
{
@Autowired
private SzxcJmCarMapper szxcJmCarMapper;
/**
*
*
* @param jmId
*
* @param id
* @return
*/
@Override
public SzxcJmCar selectSzxcJmCarByJmId(Long jmId)
public SzxcJmCar selectSzxcJmCarById(Long id)
{
return szxcJmCarMapper.selectSzxcJmCarByJmId(jmId);
return szxcJmCarMapper.selectSzxcJmCarById(id);
}
/**
*
*
*
* @param szxcJmCar
* @return
*/
@ -46,7 +46,7 @@ public class SzxcJmCarServiceImpl implements ISzxcJmCarService
/**
*
*
*
* @param szxcJmCar
* @return
*/
@ -58,7 +58,7 @@ public class SzxcJmCarServiceImpl implements ISzxcJmCarService
/**
*
*
*
* @param szxcJmCar
* @return
*/
@ -70,25 +70,25 @@ public class SzxcJmCarServiceImpl implements ISzxcJmCarService
/**
*
*
* @param jmIds
*
* @param ids
* @return
*/
@Override
public int deleteSzxcJmCarByJmIds(Long[] jmIds)
public int deleteSzxcJmCarByIds(Long[] ids)
{
return szxcJmCarMapper.deleteSzxcJmCarByJmIds(jmIds);
return szxcJmCarMapper.deleteSzxcJmCarByIds(ids);
}
/**
*
*
* @param jmId
*
* @param id
* @return
*/
@Override
public int deleteSzxcJmCarByJmId(Long jmId)
public int deleteSzxcJmCarById(Long id)
{
return szxcJmCarMapper.deleteSzxcJmCarByJmId(jmId);
return szxcJmCarMapper.deleteSzxcJmCarById(id);
}
}

@ -1,39 +1,40 @@
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.mapper.SzxcJmHouseMapper;
import com.ruoyi.szxc.service.ISzxcJmHouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
*
* @author hs
* @date 2024-03-16
* @date 2024-03-30
*/
@Service
public class SzxcJmHouseServiceImpl implements ISzxcJmHouseService
public class SzxcJmHouseServiceImpl implements ISzxcJmHouseService
{
@Autowired
private SzxcJmHouseMapper szxcJmHouseMapper;
/**
*
*
* @param jmId
*
* @param id
* @return
*/
@Override
public SzxcJmHouse selectSzxcJmHouseByJmId(Long jmId)
public SzxcJmHouse selectSzxcJmHouseById(Long id)
{
return szxcJmHouseMapper.selectSzxcJmHouseByJmId(jmId);
return szxcJmHouseMapper.selectSzxcJmHouseById(id);
}
/**
*
*
*
* @param szxcJmHouse
* @return
*/
@ -45,7 +46,7 @@ public class SzxcJmHouseServiceImpl implements ISzxcJmHouseService
/**
*
*
*
* @param szxcJmHouse
* @return
*/
@ -57,7 +58,7 @@ public class SzxcJmHouseServiceImpl implements ISzxcJmHouseService
/**
*
*
*
* @param szxcJmHouse
* @return
*/
@ -69,25 +70,25 @@ public class SzxcJmHouseServiceImpl implements ISzxcJmHouseService
/**
*
*
* @param jmIds
*
* @param ids
* @return
*/
@Override
public int deleteSzxcJmHouseByJmIds(Long[] jmIds)
public int deleteSzxcJmHouseByIds(Long[] ids)
{
return szxcJmHouseMapper.deleteSzxcJmHouseByJmIds(jmIds);
return szxcJmHouseMapper.deleteSzxcJmHouseByIds(ids);
}
/**
*
*
* @param jmId
*
* @param id
* @return
*/
@Override
public int deleteSzxcJmHouseByJmId(Long jmId)
public int deleteSzxcJmHouseById(Long id)
{
return szxcJmHouseMapper.deleteSzxcJmHouseByJmId(jmId);
return szxcJmHouseMapper.deleteSzxcJmHouseById(id);
}
}

@ -3,39 +3,39 @@ package com.ruoyi.szxc.service.impl;
import com.ruoyi.szxc.domain.SzxcJmTag;
import com.ruoyi.szxc.mapper.SzxcJmTagMapper;
import com.ruoyi.szxc.service.ISzxcJmTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.List;
/**
* Service
*
*
* @author hs
* @date 2024-03-21
* @date 2024-03-30
*/
@Service
public class SzxcJmTagServiceImpl implements ISzxcJmTagService
public class SzxcJmTagServiceImpl implements ISzxcJmTagService
{
@Resource
@Autowired
private SzxcJmTagMapper szxcJmTagMapper;
/**
*
*
* @param jmId
*
* @param id
* @return
*/
@Override
public SzxcJmTag selectSzxcJmTagByJmId(Long jmId)
public SzxcJmTag selectSzxcJmTagById(Long id)
{
return szxcJmTagMapper.selectSzxcJmTagByJmId(jmId);
return szxcJmTagMapper.selectSzxcJmTagById(id);
}
/**
*
*
*
* @param szxcJmTag
* @return
*/
@ -47,7 +47,7 @@ public class SzxcJmTagServiceImpl implements ISzxcJmTagService
/**
*
*
*
* @param szxcJmTag
* @return
*/
@ -85,7 +85,7 @@ public class SzxcJmTagServiceImpl implements ISzxcJmTagService
/**
*
*
*
* @param szxcJmTag
* @return
*/
@ -97,27 +97,25 @@ public class SzxcJmTagServiceImpl implements ISzxcJmTagService
/**
*
*
* @param jmIds
*
* @param ids
* @return
*/
@Override
public int deleteSzxcJmTagByJmIds(Long[] jmIds)
public int deleteSzxcJmTagByIds(Long[] ids)
{
return szxcJmTagMapper.deleteSzxcJmTagByJmIds(jmIds);
return szxcJmTagMapper.deleteSzxcJmTagByIds(ids);
}
/**
*
*
* @param jmId
*
* @param id
* @return
*/
@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}
</update>
<!--删除所有jmid对应的数据 -->
<delete id="deleteSzxcJmTagByJmId" parameterType="Long">
delete from szxc_jm_tag where jm_id = #{jmId}
</delete>
<delete id="deleteSzxcJmTagById" parameterType="Long">
delete from szxc_jm_tag where id = #{id}
</delete>

Loading…
Cancel
Save