Commit b3bd9174 by 王祖波

导入媒体增加factoryCode

parent d18511b5
......@@ -139,6 +139,8 @@ public class ContentAIController {
@ResponseBody
public RestResponse<String> importMaterial(@RequestBody CmeImportMaterialQO materialQO){
CmeImportMaterial cmeImportMaterial = EntityUtil.changeEntityNew(CmeImportMaterial.class, materialQO);
EnterpriseDTO enterpriseDTO = enterpriseService.getEnterpriseById(materialQO.getEnterpriseId());
cmeImportMaterial.setFactoryCode(enterpriseDTO.getFactoryCode());
try {
String materialId = CmeUtil.importMaterial(cmeImportMaterial);
return RestResponse.successResult(materialId);
......
......@@ -15,6 +15,11 @@ public class CmeImportMaterialQO {
*/
private String mediaKey;
/**
* 企业id
*/
private String enterpriseId;
public String getName() {
return name;
}
......@@ -30,4 +35,12 @@ public class CmeImportMaterialQO {
public void setMediaKey(String mediaKey) {
this.mediaKey = mediaKey;
}
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
}
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