Commit e362a1cc by 王祖波

增加素材业务来源字段

parent a6ff41fb
......@@ -90,6 +90,7 @@ public class ContentCreativeController {
if (clerk == null) {
return RestResponse.failure("-1", "导购不存在");
}
Long clerkTaskPlanId = saveQO.getClerkTaskPlanId() ;
//组装导购发布人信息
ContentProducerClerkRandomQDTO producerQDTO = new ContentProducerClerkRandomQDTO();
producerQDTO.setProducerType(MaterialProducerTypeEnum.CLERK.value);
......@@ -112,11 +113,11 @@ public class ContentCreativeController {
contentMaterialQDTO.setMaterialPurpose(MaterialPurposeEnum.AUDIT.code);
contentMaterialQDTO.setPublishType(MaterialPublishTypeEnum.NONE.value);
contentMaterialQDTO.setShelfStatus(Constant.FLAG_TRUE);
contentMaterialQDTO.setMaterialBusiSource(clerkTaskPlanId != null ? MaterialBusiSourceEnum.CLERK_TASK.code : MaterialBusiSourceEnum.ACTIVE.code);
ServiceResponse<ContentMaterialDTO> response = contentMaterialApiService.saveMaterial(contentMaterialQDTO);
if (!response.isSuccess()) {
return RestResponse.failure(response.getCode(), response.getMessage());
}
Long clerkTaskPlanId = saveQO.getClerkTaskPlanId() ;
if(null != clerkTaskPlanId) {
ClerkTaskContentLogDTO dto = new ClerkTaskContentLogDTO() ;
dto.setPlanId(clerkTaskPlanId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment