|
@@ -4,6 +4,7 @@ import cn.com.ctop.toutiao.modules.material.entity.BytedanceImageInfo;
|
|
|
import cn.com.ctop.toutiao.modules.material.mapper.BytedanceImageInfoMapper;
|
|
|
import cn.com.ctop.toutiao.modules.material.service.IBytedanceImageInfoService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -17,6 +18,7 @@ import java.util.List;
|
|
|
* @version V1.0
|
|
|
*/
|
|
|
@Service
|
|
|
+@Slf4j
|
|
|
public class BytedanceImageInfoServiceImpl extends ServiceImpl<BytedanceImageInfoMapper, BytedanceImageInfo> implements IBytedanceImageInfoService {
|
|
|
@Resource
|
|
|
private BytedanceImageInfoMapper imageInfoMapper;
|
|
@@ -26,13 +28,14 @@ public class BytedanceImageInfoServiceImpl extends ServiceImpl<BytedanceImageInf
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void updateType() {
|
|
|
+ public void updateType(Long accountId) {
|
|
|
//大图竖图 -2
|
|
|
- imageInfoMapper.updateImageVerticalType();
|
|
|
+ imageInfoMapper.updateImageVerticalType(accountId);
|
|
|
//大图横图 -1
|
|
|
- imageInfoMapper.updateImageHorizonType();
|
|
|
+ imageInfoMapper.updateImageHorizonType(accountId);
|
|
|
//开屏-3
|
|
|
- imageInfoMapper.updateImageUnionType();
|
|
|
+ imageInfoMapper.updateImageUnionType(accountId);
|
|
|
+ log.info("清洗图片类型成功=====>>>>>accountId:{}",accountId);
|
|
|
//开屏 或者 竖图 -4
|
|
|
//imageInfoMapper.updateImageUnionIOrVerticalType();
|
|
|
}
|