傅行帆 3 years ago
parent
commit
31e9da8907

+ 1
- 0
src/main/java/com/yunzhi/marketing/controller/ExtendContentController.java View File

@@ -186,6 +186,7 @@ public class ExtendContentController extends BaseController {
186 186
             extendContent.setContentType("nothing");
187 187
         }
188 188
         extendContent.setCreateUser(getUserId(request));
189
+        extendContent.setInstitutionId(getInstitutionId(request));
189 190
         responseBean = iExtendContentService.extendContentAdd(extendContent);
190 191
         responseBean.addSuccess(extendContent);
191 192
         return responseBean;

+ 1
- 0
src/main/java/com/yunzhi/marketing/controller/TaChannelController.java View File

@@ -134,6 +134,7 @@ public class TaChannelController extends BaseController {
134 134
             int channelCode= taChannelMapper.channelCode();
135 135
             channel.setChannelCode(String.valueOf(channelCode));
136 136
             channel.setOrgId(orgId);
137
+            channel.setInstitutionId(getInstitutionId(request));
137 138
             if (taChannelService.save(channel)){
138 139
                 responseBean.addSuccess(channel);
139 140
             }else {

+ 5
- 0
src/main/java/com/yunzhi/marketing/entity/ExtendContent.java View File

@@ -111,4 +111,9 @@ public class ExtendContent implements Serializable {
111 111
      */
112 112
     @TableField(strategy = FieldStrategy.IGNORED)
113 113
     private Integer orderNo;
114
+
115
+    /**
116
+     * 组织机构code
117
+     */
118
+    private String institutionId;
114 119
 }

+ 1
- 0
src/main/java/com/yunzhi/marketing/xlk/controller/CurriculumController.java View File

@@ -115,6 +115,7 @@ public class CurriculumController extends BaseController {
115 115
             curriculum.setCreatedTime(LocalDateTime.now());
116 116
             curriculum.setCreatedBy(getUserId(request));
117 117
             curriculum.setOrgId(getOrgId(request));
118
+            curriculum.setInstitutionId(getInstitutionId(request));
118 119
             if (iCurriculumService.save(curriculum)){
119 120
                 responseBean.addSuccess(curriculum);
120 121
             }else {

+ 5
- 0
src/main/java/com/yunzhi/marketing/xlk/entity/Curriculum.java View File

@@ -118,4 +118,9 @@ public class Curriculum implements java.io.Serializable {
118 118
      */
119 119
     @TableField(exist = false)
120 120
     private Boolean isSaved;
121
+
122
+    /**
123
+     * 组织机构code
124
+     */
125
+    private String institutionId;
121 126
 }

+ 1
- 1
src/main/resources/mapper/xlk/PcStatisticsMapper.xml View File

@@ -41,7 +41,7 @@
41 41
         FROM
42 42
         ta_person tp
43 43
         where tp.org_id = #{params.orgId}
44
-        and tp.person_type = 'estate agent'
44
+        and tp.person_type in ('estate agent','channel agent')
45 45
     </select>
46 46
     <select id="getUserOriginStatistics" resultType="com.yunzhi.marketing.xlk.vo.PcStatisticsVO">
47 47
         SELECT