浏览代码

添加直播代理商token

zhaoxian 2 年之前
父节点
当前提交
cb46d13f7b

+ 1 - 1
module-common/src/main/java/cn/com/ctop/common/module/mapper/MaterialInfoMapper.java

@@ -50,7 +50,7 @@ public interface MaterialInfoMapper extends BaseMapper<MaterialInfo> {
 
     void updateByteDanceByCode(@Param("code") String code);
 
-    List<Long> getDuxiaomanMaterialInfoByStatus(@Param("status") Integer status);
+    List<String> getDuxiaomanMaterialInfoByStatus(@Param("status") Integer status);
 
     // List<MaterialInfo> getListByParams(String tagCode, String type, Integer status, String materialName, String code, String startDate, String endDate, List<Long> projectIds, String ascription, String clipId, String shotId, String planId, Integer offlineFlag);
 }

+ 1 - 1
module-common/src/main/java/cn/com/ctop/common/module/mapper/xml/MaterialInfoMapper.xml

@@ -206,7 +206,7 @@
 
     </select>
 
-    <select id="getDuxiaomanMaterialInfoByStatus" resultType="java.lang.Long">
+    <select id="getDuxiaomanMaterialInfoByStatus" resultType="java.lang.String">
         SELECT id FROM `ctop_duxiaoman_material_info`
         WHERE stat_date >= DATE_FORMAT(DATE_SUB(NOW(),INTERVAL 1 DAY),'%Y-%m-%d')
         AND stat_date &lt;= DATE_FORMAT(NOW(),'%Y-%m-%d')

+ 1 - 1
module-common/src/main/java/cn/com/ctop/common/module/service/IMaterialInfoService.java

@@ -95,5 +95,5 @@ public interface IMaterialInfoService extends IService<MaterialInfo> {
 
     void updateByteDanceByCode(String s);
 
-    List<Long> getDuxiaomanMaterialInfoByStatus(Integer status);
+    List<String> getDuxiaomanMaterialInfoByStatus(Integer status);
 }

+ 1 - 1
module-common/src/main/java/cn/com/ctop/common/module/service/impl/MaterialInfoServiceImpl.java

@@ -891,7 +891,7 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
     }
 
     @Override
-    public List<Long> getDuxiaomanMaterialInfoByStatus(Integer status) {
+    public List<String> getDuxiaomanMaterialInfoByStatus(Integer status) {
         return baseMapper.getDuxiaomanMaterialInfoByStatus(status);
     }
 

+ 6 - 6
module-job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/handler/DuxiaomanJob.java

@@ -31,11 +31,11 @@ public class DuxiaomanJob {
         String url = jobUrl + "/jeecg-boot/duxiaoman/materialInfo/uploadMaterial";
 
         //0-待审核,1-待上传,2-审批中,3-审核通过,4-审核不通过,5-预审核,6-预审核拒绝,7-上传成功,8-上传失败
-        List<Long> idList = materialInfoService.getDuxiaomanMaterialInfoByStatus(1);
+        List<String> idList = materialInfoService.getDuxiaomanMaterialInfoByStatus(1);
         if (Check.isNull(idList)) {
             return;
         }
-        for (Long id : idList) {
+        for (String id : idList) {
             Map<String, Object> requestMap = new HashMap<>();
             requestMap.put("id", id);
             HttpUtils2.httpGet(url, requestMap, null);
@@ -51,11 +51,11 @@ public class DuxiaomanJob {
         String url = jobUrl + "/jeecg-boot/duxiaoman/materialInfo/materialReport";
 
         //0-待审核,1-待上传,2-审批中,3-审核通过,4-审核不通过,5-预审核,6-预审核拒绝,7-上传成功,8-上传失败
-        List<Long> idList = materialInfoService.getDuxiaomanMaterialInfoByStatus(7);
+        List<String> idList = materialInfoService.getDuxiaomanMaterialInfoByStatus(7);
         if (Check.isNull(idList)) {
             return;
         }
-        for (Long id : idList) {
+        for (String id : idList) {
             Map<String, Object> requestMap = new HashMap<>();
             requestMap.put("id", id);
             HttpUtils2.httpGet(url, requestMap, null);
@@ -71,11 +71,11 @@ public class DuxiaomanJob {
         String url = jobUrl + "/jeecg-boot/duxiaoman/materialInfo/materialDetail";
 
         //0-待审核,1-待上传,2-审批中,3-审核通过,4-审核不通过,5-预审核,6-预审核拒绝,7-上传成功,8-上传失败
-        List<Long> idList = materialInfoService.getDuxiaomanMaterialInfoByStatus(2);
+        List<String> idList = materialInfoService.getDuxiaomanMaterialInfoByStatus(2);
         if (Check.isNull(idList)) {
             return;
         }
-        for (Long id : idList) {
+        for (String id : idList) {
             Map<String, Object> requestMap = new HashMap<>();
             requestMap.put("id", id);
             HttpUtils2.httpGet(url, requestMap, null);