Quellcode durchsuchen

feat:用户渠道绑定功能开发,渠道展示权限控制

chenjianhua vor 3 Wochen
Ursprung
Commit
be7d1e60e4

+ 17 - 0
service-base/src/main/java/com/simuwang/base/mapper/daq/UserChannelMappingMapper.java

@@ -0,0 +1,17 @@
+package com.simuwang.base.mapper.daq;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.simuwang.base.pojo.dos.UserChannelMappingDO;
+import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+@Mapper
+public interface UserChannelMappingMapper extends BaseMapper<UserChannelMappingDO> {
+
+    UserChannelMappingDO selectUserChannelMappingDO(UserChannelMappingDO userChannelMappingDO);
+
+    void removeUserChannel(@Param("userId") Integer userId, @Param("loginUserId")Integer loginUserId);
+
+    List<Integer> getUserChannelId(Integer userId);
+}

+ 36 - 0
service-base/src/main/java/com/simuwang/base/pojo/dos/UserChannelMappingDO.java

@@ -0,0 +1,36 @@
+package com.simuwang.base.pojo.dos;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+
+import java.util.Date;
+@Data
+@TableName("user_channel_mapping")
+public class UserChannelMappingDO {
+    @TableId("id")
+    private Integer id;
+    @TableField("user_id")
+    private Integer userId;
+
+    @TableField("channel_id")
+    private Integer channelId;
+
+    @TableField("isvalid")
+    private Integer isvalid;
+
+    @TableField("createtime")
+    private Date createtime;
+
+    @TableField("updatetime")
+    private Date updatetime;
+
+    @TableField("creatorid")
+    private Integer creatorid;
+
+    @TableField("updaterid")
+    private Integer updaterid;
+
+
+}

+ 1 - 1
service-base/src/main/resources/mapper/daq/CompanySendStatusMapper.xml

@@ -17,7 +17,7 @@
   </sql>
     <select id="getCompanySendStatusByCompanyId" resultMap="BaseResultMap">
         select  <include refid="Base_Column_List"/>
-        from company_send_status where isvalid=1 and company_id=#{companyId}
+        from company_send_status where isvalid=1 and company_id=#{companyId} limit 1
     </select>
 
 </mapper>