|
@@ -104,16 +104,18 @@ public class AuditRejectedResubmitServiceImpl implements AuditRejectedResubmitSe
|
|
}
|
|
}
|
|
//更换文案
|
|
//更换文案
|
|
List<Map<String, String>> documentByAccountId = documentLibraryMapper.getDocumentByAccountId(String.valueOf(obj.getAccountId()), obj.getCopyWriterId());
|
|
List<Map<String, String>> documentByAccountId = documentLibraryMapper.getDocumentByAccountId(String.valueOf(obj.getAccountId()), obj.getCopyWriterId());
|
|
- if (!documentByAccountId.isEmpty()) {
|
|
|
|
|
|
+ if (!documentByAccountId.isEmpty() && documentByAccountId.size() > 0) {
|
|
updateJson.put("description", documentByAccountId.get(0).get("copyWriter"));
|
|
updateJson.put("description", documentByAccountId.get(0).get("copyWriter"));
|
|
}
|
|
}
|
|
Map<String, Object> creativeMap = updateService.updateCreative(oauthToken.getAccessToken(), obj.getAccountId(), updateJson);
|
|
Map<String, Object> creativeMap = updateService.updateCreative(oauthToken.getAccessToken(), obj.getAccountId(), updateJson);
|
|
Integer code = (Integer) creativeMap.get("code");
|
|
Integer code = (Integer) creativeMap.get("code");
|
|
if (code == 0) {
|
|
if (code == 0) {
|
|
//修改重提次数和文案id
|
|
//修改重提次数和文案id
|
|
- auditRejectedResubmitMapper.updateCreativeResubmitSize(obj.getCreativeId(), documentByAccountId.get(0).get("copyWriterId"));
|
|
|
|
|
|
+ auditRejectedResubmitMapper.updateCreativeResubmitSize(obj.getCreativeId(), documentByAccountId != null && documentByAccountId.size() > 0 ? documentByAccountId.get(0).get("copyWriterId") : null);
|
|
//插入文案关联创意表信息
|
|
//插入文案关联创意表信息
|
|
- auditRejectedResubmitMapper.saveCopyWriterCenter(documentByAccountId.get(0).get("copyWriterId"), String.valueOf(obj.getCreativeId()), new Date());
|
|
|
|
|
|
+ if (!documentByAccountId.isEmpty() && documentByAccountId.size() > 0) {
|
|
|
|
+ auditRejectedResubmitMapper.saveCopyWriterCenter(documentByAccountId.get(0).get("copyWriterId"), String.valueOf(obj.getCreativeId()), new Date());
|
|
|
|
+ }
|
|
log.info("拒审重提成功,accountId:{},creativeId:{}", obj.getAccountId(), obj.getCreativeId());
|
|
log.info("拒审重提成功,accountId:{},creativeId:{}", obj.getAccountId(), obj.getCreativeId());
|
|
} else {
|
|
} else {
|
|
log.info("拒审重提失败,accountId:{},creativeId:{}", obj.getAccountId(), obj.getCreativeId());
|
|
log.info("拒审重提失败,accountId:{},creativeId:{}", obj.getAccountId(), obj.getCreativeId());
|