This commit is contained in:
shuo.wang
2025-05-15 19:00:55 +08:00
parent e344acc7de
commit 3c2f97d2f6
5 changed files with 39 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
/**
@@ -26,4 +27,11 @@ public class SignFranchiseDAO {
}
return signFranchiseMapper.updateSpecific(list);
}
public List<SignFranchiseDO> getSignType(List<Long> shopIds){
if (CollectionUtils.isEmpty(shopIds)){
return new ArrayList<>();
}
return signFranchiseMapper.getSignType(shopIds);
}
}

View File

@@ -23,4 +23,6 @@ public interface SignFranchiseMapper extends Mapper<SignFranchiseDO> {
* @description:数据处理用修改特定字段
*/
Integer updateSpecific(@Param("list") List<SignFranchiseDO> list);
List<SignFranchiseDO> getSignType(@Param("list") List<Long> shopIds);
}

View File

@@ -75,4 +75,12 @@
#{item}
</foreach>
</select>
<select id="getSignType" resultType="com.cool.store.entity.SignFranchiseDO">
select shop_id as shopId, sign_type as signType from xfsg_sign_franchise
where
shop_id in
<foreach collection="list" separator="," item="item" index="index" open="(" close=")">
#{item}
</foreach>
</select>
</mapper>