|
@@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -21,6 +22,9 @@ import java.util.List;
|
|
|
*/
|
|
|
@Service
|
|
|
public class BytedanceVideoSlogenInfoServiceImpl extends ServiceImpl<BytedanceVideoSlogenInfoMapper, BytedanceVideoSlogenInfo> implements IBytedanceVideoSlogenInfoService {
|
|
|
+ @Resource
|
|
|
+ BytedanceVideoSlogenInfoMapper bytedanceVideoSlogenInfoMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public void insertSlogans(Long projectId, String videoCode, JSONArray slogans,String userId){
|
|
|
if(null==slogans||slogans.isEmpty()){
|
|
@@ -36,6 +40,12 @@ public class BytedanceVideoSlogenInfoServiceImpl extends ServiceImpl<BytedanceVi
|
|
|
this.save(slogenInfo);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void deleteAllSlogens(Long projectId, String videoCode, String userId){
|
|
|
+ bytedanceVideoSlogenInfoMapper.updateStatusToZero(projectId, videoCode, userId);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<BytedanceVideoSlogenInfo> listByParams(String code, Integer status) {
|
|
|
QueryWrapper<BytedanceVideoSlogenInfo>queryWrapper =new QueryWrapper<>();
|