fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user