parent
238da2c6e3
commit
180293558d
@ -1,61 +0,0 @@
|
|||||||
package com.ruoyi.szxc.service;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import com.ruoyi.szxc.domain.SzxcJmTag;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 居民标签关联Service接口
|
|
||||||
*
|
|
||||||
* @author hs
|
|
||||||
* @date 2024-03-16
|
|
||||||
*/
|
|
||||||
public interface ISzxcJmTagService
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* 查询居民标签关联
|
|
||||||
*
|
|
||||||
* @param jmId 居民标签关联主键
|
|
||||||
* @return 居民标签关联
|
|
||||||
*/
|
|
||||||
public SzxcJmTag selectSzxcJmTagByJmId(Long jmId);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询居民标签关联列表
|
|
||||||
*
|
|
||||||
* @param szxcJmTag 居民标签关联
|
|
||||||
* @return 居民标签关联集合
|
|
||||||
*/
|
|
||||||
public List<SzxcJmTag> selectSzxcJmTagList(SzxcJmTag szxcJmTag);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增居民标签关联
|
|
||||||
*
|
|
||||||
* @param szxcJmTag 居民标签关联
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int insertSzxcJmTag(SzxcJmTag szxcJmTag);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改居民标签关联
|
|
||||||
*
|
|
||||||
* @param szxcJmTag 居民标签关联
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int updateSzxcJmTag(SzxcJmTag szxcJmTag);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除居民标签关联
|
|
||||||
*
|
|
||||||
* @param jmIds 需要删除的居民标签关联主键集合
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteSzxcJmTagByJmIds(Long[] jmIds);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除居民标签关联信息
|
|
||||||
*
|
|
||||||
* @param jmId 居民标签关联主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
public int deleteSzxcJmTagByJmId(Long jmId);
|
|
||||||
}
|
|
||||||
@ -1,93 +0,0 @@
|
|||||||
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.SzxcJmTagMapper;
|
|
||||||
import com.ruoyi.szxc.domain.SzxcJmTag;
|
|
||||||
import com.ruoyi.szxc.service.ISzxcJmTagService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 居民标签关联Service业务层处理
|
|
||||||
*
|
|
||||||
* @author hs
|
|
||||||
* @date 2024-03-16
|
|
||||||
*/
|
|
||||||
@Service
|
|
||||||
public class SzxcJmTagServiceImpl implements ISzxcJmTagService
|
|
||||||
{
|
|
||||||
@Autowired
|
|
||||||
private SzxcJmTagMapper szxcJmTagMapper;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询居民标签关联
|
|
||||||
*
|
|
||||||
* @param jmId 居民标签关联主键
|
|
||||||
* @return 居民标签关联
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public SzxcJmTag selectSzxcJmTagByJmId(Long jmId)
|
|
||||||
{
|
|
||||||
return szxcJmTagMapper.selectSzxcJmTagByJmId(jmId);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询居民标签关联列表
|
|
||||||
*
|
|
||||||
* @param szxcJmTag 居民标签关联
|
|
||||||
* @return 居民标签关联
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public List<SzxcJmTag> selectSzxcJmTagList(SzxcJmTag szxcJmTag)
|
|
||||||
{
|
|
||||||
return szxcJmTagMapper.selectSzxcJmTagList(szxcJmTag);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新增居民标签关联
|
|
||||||
*
|
|
||||||
* @param szxcJmTag 居民标签关联
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int insertSzxcJmTag(SzxcJmTag szxcJmTag)
|
|
||||||
{
|
|
||||||
return szxcJmTagMapper.insertSzxcJmTag(szxcJmTag);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 修改居民标签关联
|
|
||||||
*
|
|
||||||
* @param szxcJmTag 居民标签关联
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int updateSzxcJmTag(SzxcJmTag szxcJmTag)
|
|
||||||
{
|
|
||||||
return szxcJmTagMapper.updateSzxcJmTag(szxcJmTag);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 批量删除居民标签关联
|
|
||||||
*
|
|
||||||
* @param jmIds 需要删除的居民标签关联主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int deleteSzxcJmTagByJmIds(Long[] jmIds)
|
|
||||||
{
|
|
||||||
return szxcJmTagMapper.deleteSzxcJmTagByJmIds(jmIds);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除居民标签关联信息
|
|
||||||
*
|
|
||||||
* @param jmId 居民标签关联主键
|
|
||||||
* @return 结果
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public int deleteSzxcJmTagByJmId(Long jmId)
|
|
||||||
{
|
|
||||||
return szxcJmTagMapper.deleteSzxcJmTagByJmId(jmId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -0,0 +1,57 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.szxc.mapper.SzxcJmTagMapper">
|
||||||
|
|
||||||
|
<resultMap type="SzxcJmTag" id="SzxcJmTagResult">
|
||||||
|
<result property="jmId" column="jm_id" />
|
||||||
|
<result property="tagId" column="tag_id" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectSzxcJmTagVo">
|
||||||
|
select jm_id, tag_id from szxc_jm_tag
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectSzxcJmTagList" parameterType="SzxcJmTag" resultMap="SzxcJmTagResult">
|
||||||
|
<include refid="selectSzxcJmTagVo"/>
|
||||||
|
<where>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectSzxcJmTagByJmId" parameterType="Long" resultMap="SzxcJmTagResult">
|
||||||
|
<include refid="selectSzxcJmTagVo"/>
|
||||||
|
where jm_id = #{jmId}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertSzxcJmTag" parameterType="SzxcJmTag">
|
||||||
|
insert into szxc_jm_tag
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="jmId != null">jm_id,</if>
|
||||||
|
<if test="tagId != null">tag_id,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="jmId != null">#{jmId},</if>
|
||||||
|
<if test="tagId != null">#{tagId},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateSzxcJmTag" parameterType="SzxcJmTag">
|
||||||
|
update szxc_jm_tag
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="tagId != null">tag_id = #{tagId},</if>
|
||||||
|
</trim>
|
||||||
|
where jm_id = #{jmId}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcJmTagByJmId" parameterType="Long">
|
||||||
|
delete from szxc_jm_tag where jm_id = #{jmId}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteSzxcJmTagByJmIds" parameterType="String">
|
||||||
|
delete from szxc_jm_tag where jm_id in
|
||||||
|
<foreach item="jmId" collection="array" open="(" separator="," close=")">
|
||||||
|
#{jmId}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in new issue