JiangChongBo 2 năm trước cách đây
mục cha
commit
db7d2e5684

+ 10 - 0
src/main/java/com/caimei/modules/baike/entity/CmBaikeProduct.java

@@ -52,6 +52,16 @@ public class CmBaikeProduct extends DataEntity<CmBaikeProduct> {
 	private Integer emptyNum;	//空数据条数
 	private Date addTime;		// 添加时间
 
+	private String  referenceImgUrl;
+
+	public String getReferenceImgUrl() {
+		return referenceImgUrl;
+	}
+
+	public void setReferenceImgUrl(String referenceImgUrl) {
+		this.referenceImgUrl = referenceImgUrl;
+	}
+
 	private String  referenceList;
 
 	public String getReferenceList() {

+ 1 - 0
src/main/java/com/caimei/modules/baike/service/CmBaikeProductService.java

@@ -406,6 +406,7 @@ public class CmBaikeProductService extends CrudService<CmBaikeProductDao, CmBaik
 			productFile.setFileTitle(fileTitle);
 			productFile.setFileName(fileName);
 			productFile.setOssName(filePath);
+			productFile.setOssUrl(url);
 			cmBaikeProductDao.insertProductFile(productFile);
 			productFile.setOssUrl(url);
 			map.put("success", true);

+ 2 - 2
src/main/resources/mappings/modules/baike/CmBaikeProductMapper.xml

@@ -261,8 +261,8 @@
 	</insert>
 
 	<insert id="insertProductFile" keyColumn="id" keyProperty="id" useGeneratedKeys="true">
-		insert into cm_baike_product_file(fileTitle, fileName, ossName)
-		values (#{fileTitle}, #{fileName}, #{ossName})
+		insert into cm_baike_product_file(fileTitle, fileName, ossName,ossUrl)
+		values (#{fileTitle}, #{fileName}, #{ossName},#{ossUrl})
 	</insert>
 
 	<update id="update">

+ 0 - 1
src/main/webapp/WEB-INF/views/modules/baikePage/auditBaikeProductPage.jsp

@@ -18,7 +18,6 @@
 			z-index: 10;
 		}
 		.content-edit .bk-input{
-			height: 20px;
 			padding: 4px 6px;
 			font-size: 14px;
 			line-height: 20px;

+ 0 - 1
src/main/webapp/WEB-INF/views/modules/baikePage/checkBaikePage.jsp

@@ -18,7 +18,6 @@
 			z-index: 10;
 		}
 		.content-edit .bk-input{
-			height: 20px;
 			padding: 4px 6px;
 			font-size: 14px;
 			line-height: 20px;

+ 2 - 2
src/main/webapp/WEB-INF/views/modules/baikePage/cmBaikeProductForm.jsp

@@ -18,7 +18,6 @@
 			z-index: 10;
 		}
 		.content-edit .bk-input{
-			height: 20px;
 			padding: 4px 6px;
 			font-size: 14px;
 			line-height: 20px;
@@ -1509,6 +1508,7 @@
 	// 初始化正文内容
 	function initTextInfoList(){
 		var te='${cmBaikeProduct.textInfolist}'
+		console.log('-------------------------------'+te)
 		if(''==te ||null==te ||te=='[]'){
 			var textInfoList = [{type:1},{type:2},{type:3}]
 			textInfoList.forEach(function(item,index){
@@ -1528,7 +1528,7 @@
 			var textInfoIem = createTextInfoItem(index,  ${videoFile.dictionaryType})
 			$('#textInfolist .controls').append(textInfoIem)
 			console.log('${videoFile.dictionaryContent}')
-			if(${videoFile.dictionaryType}==3){
+			if('${videoFile.dictionaryType}'=='3'){
 				createContentEdit('#' + inputId,'${videoFile.dictionaryContent}')
 			}else{
 				$('#textInfo-' + index).val('${videoFile.dictionaryContent}')