Commit d4203913 by yao.xiao

解决冲突

parents 47fc6fd3 4dcbee43
......@@ -5,13 +5,26 @@ import com.yd.api.agms.vo.dashboard.*;
import com.yd.api.agms.vo.fortune.*;
import com.yd.api.agms.vo.hiring.*;
import com.yd.api.agms.vo.insurer.SealUploadResponseVO;
import com.alibaba.fastjson.JSON;
import com.yd.api.agms.service.*;
import com.yd.api.agms.service.AgmsDashboardService;
import com.yd.api.agms.service.AgmsFortuneService;
import com.yd.api.agms.service.AgmsHiringService;
import com.yd.api.agms.service.AgmsPractitionerService;
import com.yd.api.agms.vo.dashboard.*;
import com.yd.api.agms.vo.fortune.*;
import com.yd.api.agms.vo.hiring.*;
import com.yd.api.agms.vo.sharing.ControllerResponseVO;
import com.yd.api.agms.vo.practitioner.PractitionerFileSharingListRequestVO;
import com.yd.api.agms.vo.practitioner.PractitionerFileSharingListResponseVO;
import com.yd.api.agms.vo.practitioner.PractitionerFileSharingSaveRequestVO;
import com.yd.api.agms.vo.practitioner.PractitionerFileSharingSaveResponseVO;
import com.yd.api.agms.vo.statistics.FinancialStatisticsRequestVO;
import com.yd.api.agms.vo.statistics.FinancialStatisticsResponseVO;
import com.yd.api.agms.vo.statistics.LeadsStatisticsRequestVO;
import com.yd.api.agms.vo.statistics.LeadsStatisticsResponseVO;
import com.yd.api.practitioner.vo.hiring.HiringApproveRequestVO;
import com.yd.api.practitioner.vo.hiring.HiringApproveResponseVO;
import com.yd.api.result.JsonResult;
import com.yd.util.CommonUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
......@@ -33,6 +46,10 @@ public class AgmsController {
private AgmsHiringService agmsHiringService;
@Autowired
private AgmsInsurerService agmsInsurerService;
@Autowired
private AgmsSharingService agmsSharingService;
@Autowired
private AgmsPractitionerService agmsPractitionerService;
/**
* AGMS -- 财务管理报表
......@@ -305,4 +322,39 @@ public class AgmsController {
result.addResult(responseVO);
return result;
}
@RequestMapping(value="/controller")
public Object controller(@RequestParam String action, @RequestParam(required = false) String callback, @RequestParam(value = "upfile",required = false) MultipartFile upfile) {
ControllerResponseVO responseVO = agmsSharingService.controller(action, upfile);
if (!CommonUtil.isNullOrBlank(callback)) {
return callback +"(" + JSON.toJSONString(responseVO) + ")";
}
return responseVO;
}
/**
* AGMS -- 经纪人保存文章
* @param requestVO 请求数据
* @return 响应数据
*/
@RequestMapping(value="/practitionerFileSharingSave")
public Object practitionerFileSharingSave(@RequestBody PractitionerFileSharingSaveRequestVO requestVO) {
JsonResult result = new JsonResult();
PractitionerFileSharingSaveResponseVO responseVO = agmsPractitionerService.practitionerFileSharingSave(requestVO);
result.setData(responseVO);
result.addResult(responseVO);
return result;
}
/**
* AGMS -- 经纪人查询文章
* @param requestVO 请求数据
* @return 响应数据
*/
@RequestMapping(value="/practitionerFileSharingList")
public Object practitionerFileSharingList(@RequestBody PractitionerFileSharingListRequestVO requestVO) {
JsonResult result = new JsonResult();
PractitionerFileSharingListResponseVO responseVO = agmsPractitionerService.practitionerFileSharingList(requestVO);
result.setData(responseVO);
result.addResult(responseVO);
return result;
}
}
package com.yd.api.agms.service;
import com.yd.api.agms.vo.practitioner.PractitionerFileSharingListRequestVO;
import com.yd.api.agms.vo.practitioner.PractitionerFileSharingListResponseVO;
import com.yd.api.agms.vo.practitioner.PractitionerFileSharingSaveRequestVO;
import com.yd.api.agms.vo.practitioner.PractitionerFileSharingSaveResponseVO;
/**
* @author xxy
*/
public interface AgmsPractitionerService {
/**
* AGMS -- 经纪人保存文章
* @param requestVO 请求数据
* @return 响应数据
*/
PractitionerFileSharingSaveResponseVO practitionerFileSharingSave(PractitionerFileSharingSaveRequestVO requestVO);
/**
* AGMS -- 经纪人查询文章
* @param requestVO 请求数据
* @return 响应数据
*/
PractitionerFileSharingListResponseVO practitionerFileSharingList(PractitionerFileSharingListRequestVO requestVO);
}
package com.yd.api.agms.service;
import com.yd.api.agms.vo.sharing.ControllerResponseVO;
import org.springframework.web.multipart.MultipartFile;
/**
* @author xxy
*/
public interface AgmsSharingService {
/**
*
* @param action
* @param upfile
* @return
*/
ControllerResponseVO controller(String action, MultipartFile upfile);
}
package com.yd.api.agms.service.impl;
import com.github.pagehelper.PageInfo;
import com.yd.api.agms.service.AgmsPractitionerService;
import com.yd.api.agms.vo.practitioner.*;
import com.yd.api.result.CommonResult;
import com.yd.dal.entity.customer.AclPractitionerFileSharing;
import com.yd.dal.service.agms.AgmsPractitionerDALService;
import com.yd.dal.service.customer.AclPractitionerFileSharingDALService;
import com.yd.util.CommonUtil;
import com.yd.util.config.ZHBErrorConfig;
import org.apache.commons.beanutils.ConvertUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @author xxy
*/
@Service("agmsPractitionerService")
public class AgmsPractitionerServiceImpl implements AgmsPractitionerService {
@Autowired
private AclPractitionerFileSharingDALService aclPractitionerFileSharingDalService;
@Autowired
private AgmsPractitionerDALService agmsPractitionerDALService;
@Override
public PractitionerFileSharingSaveResponseVO practitionerFileSharingSave(PractitionerFileSharingSaveRequestVO requestVO) {
PractitionerFileSharingSaveResponseVO responseVO = new PractitionerFileSharingSaveResponseVO();
AclPractitionerFileSharing fileSharing = new AclPractitionerFileSharing();
BeanUtils.copyProperties(requestVO,fileSharing);
fileSharing.setUpdatedBy(requestVO.getLoginId());
Long id = aclPractitionerFileSharingDalService.saveOrUpdate(fileSharing);
responseVO.setId(id);
responseVO.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
return responseVO;
}
@Override
public PractitionerFileSharingListResponseVO practitionerFileSharingList(PractitionerFileSharingListRequestVO requestVO) {
PractitionerFileSharingListResponseVO responseVO = new PractitionerFileSharingListResponseVO();
Long[] mdDropOptionIds=null;
if (!CommonUtil.isNullOrBlank(requestVO.getMdDropOptionId())){
mdDropOptionIds=(Long[]) ConvertUtils.convert(requestVO.getMdDropOptionId().split(","),Long.class);
}
PageInfo<PractitionerFileSharing> practitionerFileShares = agmsPractitionerDALService.practitionerFileSharingList(mdDropOptionIds,
requestVO.getIsActive(),
requestVO.getPractitionerFileShares().getPageNum(),
requestVO.getPractitionerFileShares().getPageSize());
responseVO.setPractitionerFileShares(practitionerFileShares);
responseVO.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
return responseVO;
}
}
package com.yd.api.agms.service.impl;
import com.google.common.collect.Lists;
import com.itextpdf.tool.xml.html.head.Title;
import com.yd.api.agms.service.AgmsSharingService;
import com.yd.api.agms.vo.sharing.ControllerResponseVO;
import com.yd.rmi.ali.oss.service.OssService;
import com.yd.rmi.ali.oss.vo.OssOperateTypeEnum;
import com.yd.rmi.ali.oss.vo.OssRequestVO;
import com.yd.rmi.ali.oss.vo.OssResponseVO;
import com.yd.rmi.ali.ossinterf.service.AliOssInterfService;
import com.yd.rmi.cache.SystemConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
/**
* @author xxy
*/
@Service("agmsSharingService")
public class AgmsSharingServiceImpl implements AgmsSharingService {
@Autowired
private SystemConfigService systemConfigService;
@Autowired
private OssService ossService;
@Override
public ControllerResponseVO controller(String action, MultipartFile upfile) {
ControllerResponseVO responseVO = new ControllerResponseVO();
String[] imageAllowFiles = new String[]{".png", ".jpg", ".jpeg", ".gif", ".bmp"};
String[] videoAllowFiles = new String[]{".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid"};
String[] fileAllowFiles = new String[]{".png", ".jpg", ".jpeg", ".gif", ".bmp",
".flv", ".swf", ".mkv", ".avi", ".rm", ".rmvb", ".mpeg", ".mpg",
".ogg", ".ogv", ".mov", ".wmv", ".mp4", ".webm", ".mp3", ".wav", ".mid",
".rar", ".zip", ".tar", ".gz", ".7z", ".bz2", ".cab", ".iso",
".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".pdf", ".txt", ".md", ".xml"};
if ("config".equals(action)) {
String aliOssBucketName = " ";
responseVO.setImageActionName("uploadimage");
responseVO.setImageFieldName("upfile");
responseVO.setImageMaxSize(2048000);
responseVO.setImageAllowFiles(Arrays.asList(imageAllowFiles.clone()));
responseVO.setImageCompressEnable(true);
responseVO.setImageCompressBorder(1600);
responseVO.setImageInsertAlign("none");
responseVO.setImageUrlPrefix(aliOssBucketName);
responseVO.setImagePathFormat("/image/{time}{rand:6}");
responseVO.setScrawlActionName("uploadscrawl");
responseVO.setScrawlFieldName("upfile");
responseVO.setScrawlPathFormat("/image/{time}{rand:6}");
responseVO.setScrawlMaxSize(2048000);
responseVO.setScrawlUrlPrefix(aliOssBucketName);
responseVO.setScrawlInsertAlign("none");
responseVO.setSnapscreenActionName("uploadimage");
responseVO.setSnapscreenPathFormat("/image/{time}{rand:6}");
responseVO.setSnapscreenUrlPrefix(aliOssBucketName);
responseVO.setSnapscreenInsertAlign("none");
String[] catcherLocalDomain = new String[]{"127.0.0.1", "localhost", "img.baidu.com"};
responseVO.setCatcherLocalDomain(Arrays.asList(catcherLocalDomain));
responseVO.setCatcherActionName("catchimage");
responseVO.setCatcherFieldName("source");
responseVO.setCatcherPathFormat("/image/{time}{rand:6}");
responseVO.setCatcherUrlPrefix(aliOssBucketName);
responseVO.setCatcherMaxSize(2048000);
responseVO.setCatcherAllowFiles(Arrays.asList(imageAllowFiles));
responseVO.setVideoActionName("uploadvideo");
responseVO.setVideoFieldName("upfile");
responseVO.setVideoPathFormat("/video/{time}{rand:6}");
responseVO.setVideoUrlPrefix(aliOssBucketName);
responseVO.setVideoMaxSize(102400000);
responseVO.setVideoAllowFiles(Arrays.asList(videoAllowFiles));
responseVO.setFileActionName("uploadfile");
responseVO.setFileFieldName("upfile");
responseVO.setFilePathFormat("/file/{time}{rand:6}");
responseVO.setFileUrlPrefix(aliOssBucketName);
responseVO.setFileMaxSize(51200000);
responseVO.setFileAllowFiles(Arrays.asList(fileAllowFiles));
responseVO.setImageManagerActionName("listimage");
responseVO.setImageManagerListPath("/image/");
responseVO.setImageManagerListSize(20);
responseVO.setImageManagerUrlPrefix(aliOssBucketName);
responseVO.setImageManagerInsertAlign("none");
String[] imageManagerAllowFiles = new String[]{".png", ".jpg", ".jpeg", ".gif", ".bmp"};
responseVO.setImageManagerAllowFiles(Arrays.asList(imageManagerAllowFiles));
responseVO.setFileManagerActionName("listfile");
responseVO.setFileManagerListPath("/file/");
responseVO.setFileManagerUrlPrefix(aliOssBucketName);
responseVO.setFileManagerListSize(20);
responseVO.setFileManagerAllowFiles(Arrays.asList(fileAllowFiles));
} else if ("uploadimage".equals(action)){
try {
String type = upfile.getOriginalFilename().substring(upfile.getOriginalFilename().indexOf(".") );
byte[] bytes = upfile.getBytes();
InputStream in = new ByteArrayInputStream(bytes);
StringBuilder key = new StringBuilder("sharing/");
String title;
Date date = new Date();
SimpleDateFormat sd = new SimpleDateFormat("yyyyMMddHHmmssSSS");
String nowTime = sd.format(date);
if (Arrays.asList(imageAllowFiles).contains(type)){
title = nowTime + (int)(Math.random()*1000000);
key.append("image/").append(title);
}else if (Arrays.asList(videoAllowFiles).contains(type)){
title = nowTime + (int)(Math.random()*1000000);
key.append("video/").append(title);
}else {
title = nowTime + (int)(Math.random()*1000000);
key.append("file/").append(title);
}
String putFileToOss = ossService.putFileToOss(null, key.toString() + type, in);
responseVO.setState("SUCCESS");
responseVO.setUrl(putFileToOss);
responseVO.setTitle(title);
responseVO.setOriginal(upfile.getOriginalFilename());
responseVO.setType(type);
responseVO.setSize(upfile.getSize());
}catch (Exception e){
e.printStackTrace();
}
}
return responseVO;
}
}
package com.yd.api.agms.vo.practitioner;
import java.util.Date;
/**
* @author xxy
*/
public class PractitionerFileSharing {
/**
* serial id
*/
private Long id;
/**
* FK ag_md_drop_options_id文章分类
*/
private String mdDropOptionId;
/**
* 文章内容html
*/
private String fileContent;
/**
* 0=No, 1=Yes
*/
private Integer isActive;
/**
* 建置时间
*/
private String createdAt;
private Long createdBy;
private String createdName;
/**
* 更改时间
*/
private String updatedAt;
private Long updatedBy;
private String updatedName;
/**
* 标题
*/
private String title;
/**
* 摘要
*/
private String digest;
/**
* 作者
*/
private String author;
/**
* 封面地址
*/
private String coverUrl;
/**
* 获取 serial id
*
* @return the id serial id
*/
public Long getId() {
return this.id;
}
/**
* 设置 serial id
*
* @param id the serial id to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* 获取 FK ag_md_drop_options_id文章分类
*
* @return the mdDropOptionId FK ag_md_drop_options_id文章分类
*/
public String getMdDropOptionId() {
return this.mdDropOptionId;
}
/**
* 设置 FK ag_md_drop_options_id文章分类
*
* @param mdDropOptionId the FK ag_md_drop_options_id文章分类 to set
*/
public void setMdDropOptionId(String mdDropOptionId) {
this.mdDropOptionId = mdDropOptionId;
}
/**
* 获取 文章内容html
*
* @return the fileContent 文章内容html
*/
public String getFileContent() {
return this.fileContent;
}
/**
* 设置 文章内容html
*
* @param fileContent the 文章内容html to set
*/
public void setFileContent(String fileContent) {
this.fileContent = fileContent;
}
/**
* 获取 0=No 1=Yes
*
* @return the isActive 0=No 1=Yes
*/
public Integer getIsActive() {
return this.isActive;
}
/**
* 设置 0=No 1=Yes
*
* @param isActive the 0=No 1=Yes to set
*/
public void setIsActive(Integer isActive) {
this.isActive = isActive;
}
/**
* 获取 建置时间
*
* @return the createdAt 建置时间
*/
public String getCreatedAt() {
return this.createdAt;
}
/**
* 设置 建置时间
*
* @param createdAt the 建置时间 to set
*/
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
/**
* 获取
*
* @return the createdBy
*/
public Long getCreatedBy() {
return this.createdBy;
}
/**
* 设置
*
* @param createdBy the to set
*/
public void setCreatedBy(Long createdBy) {
this.createdBy = createdBy;
}
/**
* 获取
*
* @return the createdName
*/
public String getCreatedName() {
return this.createdName;
}
/**
* 设置
*
* @param createdName the to set
*/
public void setCreatedName(String createdName) {
this.createdName = createdName;
}
/**
* 获取 更改时间
*
* @return the updatedAt 更改时间
*/
public String getUpdatedAt() {
return this.updatedAt;
}
/**
* 设置 更改时间
*
* @param updatedAt the 更改时间 to set
*/
public void setUpdatedAt(String updatedAt) {
this.updatedAt = updatedAt;
}
/**
* 获取
*
* @return the updatedBy
*/
public Long getUpdatedBy() {
return this.updatedBy;
}
/**
* 设置
*
* @param updatedBy the to set
*/
public void setUpdatedBy(Long updatedBy) {
this.updatedBy = updatedBy;
}
/**
* 获取
*
* @return the updatedName
*/
public String getUpdatedName() {
return this.updatedName;
}
/**
* 设置
*
* @param updatedName the to set
*/
public void setUpdatedName(String updatedName) {
this.updatedName = updatedName;
}
/**
* 获取 标题
*
* @return the title 标题
*/
public String getTitle() {
return this.title;
}
/**
* 设置 标题
*
* @param title the 标题 to set
*/
public void setTitle(String title) {
this.title = title;
}
/**
* 获取 摘要
*
* @return the digest 摘要
*/
public String getDigest() {
return this.digest;
}
/**
* 设置 摘要
*
* @param digest the 摘要 to set
*/
public void setDigest(String digest) {
this.digest = digest;
}
/**
* 获取 作者
*
* @return the author 作者
*/
public String getAuthor() {
return this.author;
}
/**
* 设置 作者
*
* @param author the 作者 to set
*/
public void setAuthor(String author) {
this.author = author;
}
/**
* 获取 封面地址
*
* @return the coverUrl 封面地址
*/
public String getCoverUrl() {
return this.coverUrl;
}
/**
* 设置 封面地址
*
* @param coverUrl the 封面地址 to set
*/
public void setCoverUrl(String coverUrl) {
this.coverUrl = coverUrl;
}
@Override
public String toString() {
return "PractitionerFileSharing{" +
"id=" + id +
", mdDropOptionId=" + mdDropOptionId +
", fileContent='" + fileContent + '\'' +
", isActive=" + isActive +
", createdAt='" + createdAt + '\'' +
", createdBy=" + createdBy +
", createdName='" + createdName + '\'' +
", updatedAt='" + updatedAt + '\'' +
", updatedBy=" + updatedBy +
", updatedName='" + updatedName + '\'' +
", title='" + title + '\'' +
", digest='" + digest + '\'' +
", author='" + author + '\'' +
", coverUrl='" + coverUrl + '\'' +
'}';
}
}
package com.yd.api.agms.vo.practitioner;
import com.github.pagehelper.PageInfo;
/**
* @author xxy
*/
public class PractitionerFileSharingListRequestVO {
private String mdDropOptionId;
private Integer isActive;
private PageInfo<PractitionerFileSharing> practitionerFileShares;
/**
* 获取
*
* @return the mdDropOptionId
*/
public String getMdDropOptionId() {
return this.mdDropOptionId;
}
/**
* 设置
*
* @param mdDropOptionId the to set
*/
public void setMdDropOptionId(String mdDropOptionId) {
this.mdDropOptionId = mdDropOptionId;
}
/**
* 获取
*
* @return the isActive
*/
public Integer getIsActive() {
return this.isActive;
}
/**
* 设置
*
* @param isActive the to set
*/
public void setIsActive(Integer isActive) {
this.isActive = isActive;
}
/**
* 获取
*
* @return the practitionerFileShares
*/
public PageInfo<PractitionerFileSharing> getPractitionerFileShares() {
return this.practitionerFileShares;
}
/**
* 设置
*
* @param practitionerFileShares the to set
*/
public void setPractitionerFileShares(PageInfo<PractitionerFileSharing> practitionerFileShares) {
this.practitionerFileShares = practitionerFileShares;
}
@Override
public String toString() {
return "PractitionerFileSharingListRequestVO{" +
"mdDropOptionId=" + mdDropOptionId +
", isActive=" + isActive +
", practitionerFileShares=" + practitionerFileShares +
'}';
}
}
package com.yd.api.agms.vo.practitioner;
import com.github.pagehelper.PageInfo;
import com.yd.api.result.CommonResult;
import java.util.List;
/**
* @author xxy
*/
public class PractitionerFileSharingListResponseVO {
private PageInfo<PractitionerFileSharing> practitionerFileShares;
private CommonResult commonResult;
/**
* 获取
*
* @return the practitionerFileSharings
*/
public PageInfo<PractitionerFileSharing> getPractitionerFileShares() {
return this.practitionerFileShares;
}
/**
* 设置
*
* @param practitionerFileShares the to set
*/
public void setPractitionerFileShares(PageInfo<PractitionerFileSharing> practitionerFileShares) {
this.practitionerFileShares = practitionerFileShares;
}
/**
* 获取
*
* @return the commonResult
*/
public CommonResult getCommonResult() {
return this.commonResult;
}
/**
* 设置
*
* @param commonResult the to set
*/
public void setCommonResult(CommonResult commonResult) {
this.commonResult = commonResult;
}
@Override
public String toString() {
return "PractitionerFileSharingListResponseVO{" +
"practitionerFileShares=" + practitionerFileShares +
", commonResult=" + commonResult +
'}';
}
}
package com.yd.api.agms.vo.practitioner;
import java.util.Date;
/**
* @author xxy
*/
public class PractitionerFileSharingSaveRequestVO {
/**
* serial id
*/
private Long id;
/**
* FK ag_md_drop_options_id文章分类
*/
private String mdDropOptionId;
/**
* 文章内容html
*/
private String fileContent;
/**
* 0=No, 1=Yes
*/
private Integer isActive;
private Long loginId;
/**
* 标题
*/
private String title;
/**
* 摘要
*/
private String digest;
/**
* 作者
*/
private String author;
/**
* 封面地址
*/
private String coverUrl;
/**
* 获取 serial id
*
* @return the id serial id
*/
public Long getId() {
return this.id;
}
/**
* 设置 serial id
*
* @param id the serial id to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* 获取 FK ag_md_drop_options_id文章分类
*
* @return the mdDropOptionId FK ag_md_drop_options_id文章分类
*/
public String getMdDropOptionId() {
return this.mdDropOptionId;
}
/**
* 设置 FK ag_md_drop_options_id文章分类
*
* @param mdDropOptionId the FK ag_md_drop_options_id文章分类 to set
*/
public void setMdDropOptionId(String mdDropOptionId) {
this.mdDropOptionId = mdDropOptionId;
}
/**
* 获取 文章内容html
*
* @return the fileContent 文章内容html
*/
public String getFileContent() {
return this.fileContent;
}
/**
* 设置 文章内容html
*
* @param fileContent the 文章内容html to set
*/
public void setFileContent(String fileContent) {
this.fileContent = fileContent;
}
/**
* 获取 0=No 1=Yes
*
* @return the isActive 0=No 1=Yes
*/
public Integer getIsActive() {
return this.isActive;
}
/**
* 设置 0=No 1=Yes
*
* @param isActive the 0=No 1=Yes to set
*/
public void setIsActive(Integer isActive) {
this.isActive = isActive;
}
/**
* 获取
*
* @return the loginId
*/
public Long getLoginId() {
return this.loginId;
}
/**
* 设置
*
* @param loginId the to set
*/
public void setLoginId(Long loginId) {
this.loginId = loginId;
}
/**
* 获取 标题
*
* @return the title 标题
*/
public String getTitle() {
return this.title;
}
/**
* 设置 标题
*
* @param title the 标题 to set
*/
public void setTitle(String title) {
this.title = title;
}
/**
* 获取 摘要
*
* @return the digest 摘要
*/
public String getDigest() {
return this.digest;
}
/**
* 设置 摘要
*
* @param digest the 摘要 to set
*/
public void setDigest(String digest) {
this.digest = digest;
}
/**
* 获取 作者
*
* @return the author 作者
*/
public String getAuthor() {
return this.author;
}
/**
* 设置 作者
*
* @param author the 作者 to set
*/
public void setAuthor(String author) {
this.author = author;
}
/**
* 获取 封面地址
*
* @return the coverUrl 封面地址
*/
public String getCoverUrl() {
return this.coverUrl;
}
/**
* 设置 封面地址
*
* @param coverUrl the 封面地址 to set
*/
public void setCoverUrl(String coverUrl) {
this.coverUrl = coverUrl;
}
@Override
public String toString() {
return "PractitionerFileSharingSaveRequestVO{" +
"id=" + id +
", mdDropOptionId=" + mdDropOptionId +
", fileContent='" + fileContent + '\'' +
", isActive=" + isActive +
", loginId=" + loginId +
", title='" + title + '\'' +
", digest='" + digest + '\'' +
", author='" + author + '\'' +
", coverUrl='" + coverUrl + '\'' +
'}';
}
}
package com.yd.api.agms.vo.practitioner;
import com.yd.api.result.CommonResult;
/**
* @author xxy
*/
public class PractitionerFileSharingSaveResponseVO {
private Long id;
private CommonResult commonResult;
/**
* 获取
*
* @return the id
*/
public Long getId() {
return this.id;
}
/**
* 设置
*
* @param id the to set
*/
public void setId(Long id) {
this.id = id;
}
/**
* 获取
*
* @return the commonResult
*/
public CommonResult getCommonResult() {
return this.commonResult;
}
/**
* 设置
*
* @param commonResult the to set
*/
public void setCommonResult(CommonResult commonResult) {
this.commonResult = commonResult;
}
@Override
public String toString() {
return "PractitionerFileSharingSaveResponseVO{" +
"id=" + id +
", commonResult=" + commonResult +
'}';
}
}
package com.yd.api.agms.vo.sharing;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
/**
* @author xxy
*/
@JsonInclude(value= JsonInclude.Include.NON_DEFAULT )
public class ControllerResponseVO {
private String state;
private String url;
private String title;
private String original;
private String type;
private Long size;
/** 执行上传图片的action名称 */
private String imageActionName;
/** 提交的图片表单名称 */
private String imageFieldName;
/** 上传大小限制,单位B */
private int imageMaxSize;
/** 上传图片格式显示 */
private List<String> imageAllowFiles;
/** 是否压缩图片,默认是true */
private boolean imageCompressEnable;
/** 图片压缩最长边限制 */
private int imageCompressBorder;
/** 插入的图片浮动方式 */
private String imageInsertAlign;
/** 图片访问路径前缀 */
private String imageUrlPrefix;
/** 上传保存路径,可以自定义保存路径和文件名格式 */
private String imagePathFormat;
/** 执行上传涂鸦的action名称 */
private String scrawlActionName;
/** 提交的图片表单名称 */
private String scrawlFieldName;
/** 上传保存路径,可以自定义保存路径和文件名格式 */
private String scrawlPathFormat;
/** 上传大小限制,单位B */
private int scrawlMaxSize;
/** 图片访问路径前缀 */
private String scrawlUrlPrefix;
/** 执行上传截图的action名称 */
private String scrawlInsertAlign;
/** 上传保存路径,可以自定义保存路径和文件名格式 */
private String snapscreenActionName;
/** 图片访问路径前缀 */
private String snapscreenPathFormat;
/** 插入的图片浮动方式 */
private String snapscreenUrlPrefix;
private String snapscreenInsertAlign;
/** 抓取远程图片配置 */
private List<String> catcherLocalDomain;
/** 执行抓取远程图片的action名称 */
private String catcherActionName;
/** 提交的图片列表表单名称 */
private String catcherFieldName;
/** 上传保存路径,可以自定义保存路径和文件名格式 */
private String catcherPathFormat;
/** 图片访问路径前缀 */
private String catcherUrlPrefix;
/** 上传大小限制,单位B */
private int catcherMaxSize;
/** 抓取图片格式显示 */
private List<String> catcherAllowFiles;
/** 执行上传视频的action名称 */
private String videoActionName;
/** 提交的视频表单名称 */
private String videoFieldName;
private String videoPathFormat;
/** 视频访问路径前缀 */
private String videoUrlPrefix;
/** 上传大小限制,单位B,默认100MB */
private int videoMaxSize;
/** 上传视频格式显示 */
private List<String> videoAllowFiles;
/** controller里,执行上传视频的action名称 */
private String fileActionName;
/** 提交的文件表单名称 */
private String fileFieldName;
/** 上传保存路径,可以自定义保存路径和文件名格式 */
private String filePathFormat;
/** 文件访问路径前缀 */
private String fileUrlPrefix;
/** 上传大小限制,单位B,默认50MB */
private int fileMaxSize;
/** 上传文件格式显示 */
private List<String> fileAllowFiles;
/** 执行图片管理的action名称 */
private String imageManagerActionName;
/** 指定要列出图片的目录 */
private String imageManagerListPath;
/** 每次列出文件数量 */
private int imageManagerListSize;
/** 图片访问路径前缀 */
private String imageManagerUrlPrefix;
/** 插入的图片浮动方式 */
private String imageManagerInsertAlign;
/** 列出的文件类型 */
private List<String> imageManagerAllowFiles;
/** 执行文件管理的action名称 */
private String fileManagerActionName;
/** 指定要列出文件的目录 */
private String fileManagerListPath;
/** 文件访问路径前缀 */
private String fileManagerUrlPrefix;
/** 每次列出文件数量 */
private int fileManagerListSize;
/** 列出的文件类型 */
private List<String> fileManagerAllowFiles;
/**
* 获取
*
* @return the state
*/
public String getState() {
return this.state;
}
/**
* 设置
*
* @param state the to set
*/
public void setState(String state) {
this.state = state;
}
/**
* 获取
*
* @return the url
*/
public String getUrl() {
return this.url;
}
/**
* 设置
*
* @param url the to set
*/
public void setUrl(String url) {
this.url = url;
}
/**
* 获取
*
* @return the title
*/
public String getTitle() {
return this.title;
}
/**
* 设置
*
* @param title the to set
*/
public void setTitle(String title) {
this.title = title;
}
/**
* 获取
*
* @return the original
*/
public String getOriginal() {
return this.original;
}
/**
* 设置
*
* @param original the to set
*/
public void setOriginal(String original) {
this.original = original;
}
/**
* 获取
*
* @return the type
*/
public String getType() {
return this.type;
}
/**
* 设置
*
* @param type the to set
*/
public void setType(String type) {
this.type = type;
}
/**
* 获取
*
* @return the size
*/
public Long getSize() {
return this.size;
}
/**
* 设置
*
* @param size the to set
*/
public void setSize(Long size) {
this.size = size;
}
/**
* 获取 执行上传图片的action名称
*
* @return the imageActionName 执行上传图片的action名称
*/
public String getImageActionName() {
return this.imageActionName;
}
/**
* 设置 执行上传图片的action名称
*
* @param imageActionName the 执行上传图片的action名称 to set
*/
public void setImageActionName(String imageActionName) {
this.imageActionName = imageActionName;
}
/**
* 获取 提交的图片表单名称
*
* @return the imageFieldName 提交的图片表单名称
*/
public String getImageFieldName() {
return this.imageFieldName;
}
/**
* 设置 提交的图片表单名称
*
* @param imageFieldName the 提交的图片表单名称 to set
*/
public void setImageFieldName(String imageFieldName) {
this.imageFieldName = imageFieldName;
}
/**
* 获取 上传大小限制,单位B
*
* @return the imageMaxSize 上传大小限制,单位B
*/
public int getImageMaxSize() {
return this.imageMaxSize;
}
/**
* 设置 上传大小限制,单位B
*
* @param imageMaxSize the 上传大小限制,单位B to set
*/
public void setImageMaxSize(int imageMaxSize) {
this.imageMaxSize = imageMaxSize;
}
/**
* 获取 上传图片格式显示
*
* @return the imageAllowFiles 上传图片格式显示
*/
public List<String> getImageAllowFiles() {
return this.imageAllowFiles;
}
/**
* 设置 上传图片格式显示
*
* @param imageAllowFiles the 上传图片格式显示 to set
*/
public void setImageAllowFiles(List<String> imageAllowFiles) {
this.imageAllowFiles = imageAllowFiles;
}
/**
* 获取 是否压缩图片默认是true
*
* @return the imageCompressEnable 是否压缩图片默认是true
*/
public boolean isImageCompressEnable() {
return this.imageCompressEnable;
}
/**
* 设置 是否压缩图片默认是true
*
* @param imageCompressEnable the 是否压缩图片默认是true to set
*/
public void setImageCompressEnable(boolean imageCompressEnable) {
this.imageCompressEnable = imageCompressEnable;
}
/**
* 获取 图片压缩最长边限制
*
* @return the imageCompressBorder 图片压缩最长边限制
*/
public int getImageCompressBorder() {
return this.imageCompressBorder;
}
/**
* 设置 图片压缩最长边限制
*
* @param imageCompressBorder the 图片压缩最长边限制 to set
*/
public void setImageCompressBorder(int imageCompressBorder) {
this.imageCompressBorder = imageCompressBorder;
}
/**
* 获取 插入的图片浮动方式
*
* @return the imageInsertAlign 插入的图片浮动方式
*/
public String getImageInsertAlign() {
return this.imageInsertAlign;
}
/**
* 设置 插入的图片浮动方式
*
* @param imageInsertAlign the 插入的图片浮动方式 to set
*/
public void setImageInsertAlign(String imageInsertAlign) {
this.imageInsertAlign = imageInsertAlign;
}
/**
* 获取 图片访问路径前缀
*
* @return the imageUrlPrefix 图片访问路径前缀
*/
public String getImageUrlPrefix() {
return this.imageUrlPrefix;
}
/**
* 设置 图片访问路径前缀
*
* @param imageUrlPrefix the 图片访问路径前缀 to set
*/
public void setImageUrlPrefix(String imageUrlPrefix) {
this.imageUrlPrefix = imageUrlPrefix;
}
/**
* 获取 上传保存路径可以自定义保存路径和文件名格式
*
* @return the imagePathFormat 上传保存路径可以自定义保存路径和文件名格式
*/
public String getImagePathFormat() {
return this.imagePathFormat;
}
/**
* 设置 上传保存路径可以自定义保存路径和文件名格式
*
* @param imagePathFormat the 上传保存路径可以自定义保存路径和文件名格式 to set
*/
public void setImagePathFormat(String imagePathFormat) {
this.imagePathFormat = imagePathFormat;
}
/**
* 获取 执行上传涂鸦的action名称
*
* @return the scrawlActionName 执行上传涂鸦的action名称
*/
public String getScrawlActionName() {
return this.scrawlActionName;
}
/**
* 设置 执行上传涂鸦的action名称
*
* @param scrawlActionName the 执行上传涂鸦的action名称 to set
*/
public void setScrawlActionName(String scrawlActionName) {
this.scrawlActionName = scrawlActionName;
}
/**
* 获取 提交的图片表单名称
*
* @return the scrawlFieldName 提交的图片表单名称
*/
public String getScrawlFieldName() {
return this.scrawlFieldName;
}
/**
* 设置 提交的图片表单名称
*
* @param scrawlFieldName the 提交的图片表单名称 to set
*/
public void setScrawlFieldName(String scrawlFieldName) {
this.scrawlFieldName = scrawlFieldName;
}
/**
* 获取 上传保存路径可以自定义保存路径和文件名格式
*
* @return the scrawlPathFormat 上传保存路径可以自定义保存路径和文件名格式
*/
public String getScrawlPathFormat() {
return this.scrawlPathFormat;
}
/**
* 设置 上传保存路径可以自定义保存路径和文件名格式
*
* @param scrawlPathFormat the 上传保存路径可以自定义保存路径和文件名格式 to set
*/
public void setScrawlPathFormat(String scrawlPathFormat) {
this.scrawlPathFormat = scrawlPathFormat;
}
/**
* 获取 上传大小限制,单位B
*
* @return the scrawlMaxSize 上传大小限制,单位B
*/
public int getScrawlMaxSize() {
return this.scrawlMaxSize;
}
/**
* 设置 上传大小限制,单位B
*
* @param scrawlMaxSize the 上传大小限制,单位B to set
*/
public void setScrawlMaxSize(int scrawlMaxSize) {
this.scrawlMaxSize = scrawlMaxSize;
}
/**
* 获取 图片访问路径前缀
*
* @return the scrawlUrlPrefix 图片访问路径前缀
*/
public String getScrawlUrlPrefix() {
return this.scrawlUrlPrefix;
}
/**
* 设置 图片访问路径前缀
*
* @param scrawlUrlPrefix the 图片访问路径前缀 to set
*/
public void setScrawlUrlPrefix(String scrawlUrlPrefix) {
this.scrawlUrlPrefix = scrawlUrlPrefix;
}
/**
* 获取 执行上传截图的action名称
*
* @return the scrawlInsertAlign 执行上传截图的action名称
*/
public String getScrawlInsertAlign() {
return this.scrawlInsertAlign;
}
/**
* 设置 执行上传截图的action名称
*
* @param scrawlInsertAlign the 执行上传截图的action名称 to set
*/
public void setScrawlInsertAlign(String scrawlInsertAlign) {
this.scrawlInsertAlign = scrawlInsertAlign;
}
/**
* 获取 上传保存路径可以自定义保存路径和文件名格式
*
* @return the snapscreenActionName 上传保存路径可以自定义保存路径和文件名格式
*/
public String getSnapscreenActionName() {
return this.snapscreenActionName;
}
/**
* 设置 上传保存路径可以自定义保存路径和文件名格式
*
* @param snapscreenActionName the 上传保存路径可以自定义保存路径和文件名格式 to set
*/
public void setSnapscreenActionName(String snapscreenActionName) {
this.snapscreenActionName = snapscreenActionName;
}
/**
* 获取 图片访问路径前缀
*
* @return the snapscreenPathFormat 图片访问路径前缀
*/
public String getSnapscreenPathFormat() {
return this.snapscreenPathFormat;
}
/**
* 设置 图片访问路径前缀
*
* @param snapscreenPathFormat the 图片访问路径前缀 to set
*/
public void setSnapscreenPathFormat(String snapscreenPathFormat) {
this.snapscreenPathFormat = snapscreenPathFormat;
}
/**
* 获取 插入的图片浮动方式
*
* @return the snapscreenUrlPrefix 插入的图片浮动方式
*/
public String getSnapscreenUrlPrefix() {
return this.snapscreenUrlPrefix;
}
/**
* 设置 插入的图片浮动方式
*
* @param snapscreenUrlPrefix the 插入的图片浮动方式 to set
*/
public void setSnapscreenUrlPrefix(String snapscreenUrlPrefix) {
this.snapscreenUrlPrefix = snapscreenUrlPrefix;
}
/**
* 获取
*
* @return the snapscreenInsertAlign
*/
public String getSnapscreenInsertAlign() {
return this.snapscreenInsertAlign;
}
/**
* 设置
*
* @param snapscreenInsertAlign the to set
*/
public void setSnapscreenInsertAlign(String snapscreenInsertAlign) {
this.snapscreenInsertAlign = snapscreenInsertAlign;
}
/**
* 获取 抓取远程图片配置
*
* @return the catcherLocalDomain 抓取远程图片配置
*/
public List<String> getCatcherLocalDomain() {
return this.catcherLocalDomain;
}
/**
* 设置 抓取远程图片配置
*
* @param catcherLocalDomain the 抓取远程图片配置 to set
*/
public void setCatcherLocalDomain(List<String> catcherLocalDomain) {
this.catcherLocalDomain = catcherLocalDomain;
}
/**
* 获取 执行抓取远程图片的action名称
*
* @return the catcherActionName 执行抓取远程图片的action名称
*/
public String getCatcherActionName() {
return this.catcherActionName;
}
/**
* 设置 执行抓取远程图片的action名称
*
* @param catcherActionName the 执行抓取远程图片的action名称 to set
*/
public void setCatcherActionName(String catcherActionName) {
this.catcherActionName = catcherActionName;
}
/**
* 获取 提交的图片列表表单名称
*
* @return the catcherFieldName 提交的图片列表表单名称
*/
public String getCatcherFieldName() {
return this.catcherFieldName;
}
/**
* 设置 提交的图片列表表单名称
*
* @param catcherFieldName the 提交的图片列表表单名称 to set
*/
public void setCatcherFieldName(String catcherFieldName) {
this.catcherFieldName = catcherFieldName;
}
/**
* 获取 上传保存路径可以自定义保存路径和文件名格式
*
* @return the catcherPathFormat 上传保存路径可以自定义保存路径和文件名格式
*/
public String getCatcherPathFormat() {
return this.catcherPathFormat;
}
/**
* 设置 上传保存路径可以自定义保存路径和文件名格式
*
* @param catcherPathFormat the 上传保存路径可以自定义保存路径和文件名格式 to set
*/
public void setCatcherPathFormat(String catcherPathFormat) {
this.catcherPathFormat = catcherPathFormat;
}
/**
* 获取 图片访问路径前缀
*
* @return the catcherUrlPrefix 图片访问路径前缀
*/
public String getCatcherUrlPrefix() {
return this.catcherUrlPrefix;
}
/**
* 设置 图片访问路径前缀
*
* @param catcherUrlPrefix the 图片访问路径前缀 to set
*/
public void setCatcherUrlPrefix(String catcherUrlPrefix) {
this.catcherUrlPrefix = catcherUrlPrefix;
}
/**
* 获取 上传大小限制,单位B
*
* @return the catcherMaxSize 上传大小限制,单位B
*/
public int getCatcherMaxSize() {
return this.catcherMaxSize;
}
/**
* 设置 上传大小限制,单位B
*
* @param catcherMaxSize the 上传大小限制,单位B to set
*/
public void setCatcherMaxSize(int catcherMaxSize) {
this.catcherMaxSize = catcherMaxSize;
}
/**
* 获取 抓取图片格式显示
*
* @return the catcherAllowFiles 抓取图片格式显示
*/
public List<String> getCatcherAllowFiles() {
return this.catcherAllowFiles;
}
/**
* 设置 抓取图片格式显示
*
* @param catcherAllowFiles the 抓取图片格式显示 to set
*/
public void setCatcherAllowFiles(List<String> catcherAllowFiles) {
this.catcherAllowFiles = catcherAllowFiles;
}
/**
* 获取 执行上传视频的action名称
*
* @return the videoActionName 执行上传视频的action名称
*/
public String getVideoActionName() {
return this.videoActionName;
}
/**
* 设置 执行上传视频的action名称
*
* @param videoActionName the 执行上传视频的action名称 to set
*/
public void setVideoActionName(String videoActionName) {
this.videoActionName = videoActionName;
}
/**
* 获取 提交的视频表单名称
*
* @return the videoFieldName 提交的视频表单名称
*/
public String getVideoFieldName() {
return this.videoFieldName;
}
/**
* 设置 提交的视频表单名称
*
* @param videoFieldName the 提交的视频表单名称 to set
*/
public void setVideoFieldName(String videoFieldName) {
this.videoFieldName = videoFieldName;
}
/**
* 获取
*
* @return the videoPathFormat
*/
public String getVideoPathFormat() {
return this.videoPathFormat;
}
/**
* 设置
*
* @param videoPathFormat the to set
*/
public void setVideoPathFormat(String videoPathFormat) {
this.videoPathFormat = videoPathFormat;
}
/**
* 获取 视频访问路径前缀
*
* @return the videoUrlPrefix 视频访问路径前缀
*/
public String getVideoUrlPrefix() {
return this.videoUrlPrefix;
}
/**
* 设置 视频访问路径前缀
*
* @param videoUrlPrefix the 视频访问路径前缀 to set
*/
public void setVideoUrlPrefix(String videoUrlPrefix) {
this.videoUrlPrefix = videoUrlPrefix;
}
/**
* 获取 上传大小限制,单位B,默认100MB
*
* @return the videoMaxSize 上传大小限制,单位B,默认100MB
*/
public int getVideoMaxSize() {
return this.videoMaxSize;
}
/**
* 设置 上传大小限制,单位B,默认100MB
*
* @param videoMaxSize the 上传大小限制,单位B,默认100MB to set
*/
public void setVideoMaxSize(int videoMaxSize) {
this.videoMaxSize = videoMaxSize;
}
/**
* 获取 上传视频格式显示
*
* @return the videoAllowFiles 上传视频格式显示
*/
public List<String> getVideoAllowFiles() {
return this.videoAllowFiles;
}
/**
* 设置 上传视频格式显示
*
* @param videoAllowFiles the 上传视频格式显示 to set
*/
public void setVideoAllowFiles(List<String> videoAllowFiles) {
this.videoAllowFiles = videoAllowFiles;
}
/**
* 获取 controller里执行上传视频的action名称
*
* @return the fileActionName controller里执行上传视频的action名称
*/
public String getFileActionName() {
return this.fileActionName;
}
/**
* 设置 controller里执行上传视频的action名称
*
* @param fileActionName the controller里执行上传视频的action名称 to set
*/
public void setFileActionName(String fileActionName) {
this.fileActionName = fileActionName;
}
/**
* 获取 提交的文件表单名称
*
* @return the fileFieldName 提交的文件表单名称
*/
public String getFileFieldName() {
return this.fileFieldName;
}
/**
* 设置 提交的文件表单名称
*
* @param fileFieldName the 提交的文件表单名称 to set
*/
public void setFileFieldName(String fileFieldName) {
this.fileFieldName = fileFieldName;
}
/**
* 获取 上传保存路径可以自定义保存路径和文件名格式
*
* @return the filePathFormat 上传保存路径可以自定义保存路径和文件名格式
*/
public String getFilePathFormat() {
return this.filePathFormat;
}
/**
* 设置 上传保存路径可以自定义保存路径和文件名格式
*
* @param filePathFormat the 上传保存路径可以自定义保存路径和文件名格式 to set
*/
public void setFilePathFormat(String filePathFormat) {
this.filePathFormat = filePathFormat;
}
/**
* 获取 文件访问路径前缀
*
* @return the fileUrlPrefix 文件访问路径前缀
*/
public String getFileUrlPrefix() {
return this.fileUrlPrefix;
}
/**
* 设置 文件访问路径前缀
*
* @param fileUrlPrefix the 文件访问路径前缀 to set
*/
public void setFileUrlPrefix(String fileUrlPrefix) {
this.fileUrlPrefix = fileUrlPrefix;
}
/**
* 获取 上传大小限制,单位B,默认50MB
*
* @return the fileMaxSize 上传大小限制,单位B,默认50MB
*/
public int getFileMaxSize() {
return this.fileMaxSize;
}
/**
* 设置 上传大小限制,单位B,默认50MB
*
* @param fileMaxSize the 上传大小限制,单位B,默认50MB to set
*/
public void setFileMaxSize(int fileMaxSize) {
this.fileMaxSize = fileMaxSize;
}
/**
* 获取 上传文件格式显示
*
* @return the fileAllowFiles 上传文件格式显示
*/
public List<String> getFileAllowFiles() {
return this.fileAllowFiles;
}
/**
* 设置 上传文件格式显示
*
* @param fileAllowFiles the 上传文件格式显示 to set
*/
public void setFileAllowFiles(List<String> fileAllowFiles) {
this.fileAllowFiles = fileAllowFiles;
}
/**
* 获取 执行图片管理的action名称
*
* @return the imageManagerActionName 执行图片管理的action名称
*/
public String getImageManagerActionName() {
return this.imageManagerActionName;
}
/**
* 设置 执行图片管理的action名称
*
* @param imageManagerActionName the 执行图片管理的action名称 to set
*/
public void setImageManagerActionName(String imageManagerActionName) {
this.imageManagerActionName = imageManagerActionName;
}
/**
* 获取 指定要列出图片的目录
*
* @return the imageManagerListPath 指定要列出图片的目录
*/
public String getImageManagerListPath() {
return this.imageManagerListPath;
}
/**
* 设置 指定要列出图片的目录
*
* @param imageManagerListPath the 指定要列出图片的目录 to set
*/
public void setImageManagerListPath(String imageManagerListPath) {
this.imageManagerListPath = imageManagerListPath;
}
/**
* 获取 每次列出文件数量
*
* @return the imageManagerListSize 每次列出文件数量
*/
public int getImageManagerListSize() {
return this.imageManagerListSize;
}
/**
* 设置 每次列出文件数量
*
* @param imageManagerListSize the 每次列出文件数量 to set
*/
public void setImageManagerListSize(int imageManagerListSize) {
this.imageManagerListSize = imageManagerListSize;
}
/**
* 获取 图片访问路径前缀
*
* @return the imageManagerUrlPrefix 图片访问路径前缀
*/
public String getImageManagerUrlPrefix() {
return this.imageManagerUrlPrefix;
}
/**
* 设置 图片访问路径前缀
*
* @param imageManagerUrlPrefix the 图片访问路径前缀 to set
*/
public void setImageManagerUrlPrefix(String imageManagerUrlPrefix) {
this.imageManagerUrlPrefix = imageManagerUrlPrefix;
}
/**
* 获取 插入的图片浮动方式
*
* @return the imageManagerInsertAlign 插入的图片浮动方式
*/
public String getImageManagerInsertAlign() {
return this.imageManagerInsertAlign;
}
/**
* 设置 插入的图片浮动方式
*
* @param imageManagerInsertAlign the 插入的图片浮动方式 to set
*/
public void setImageManagerInsertAlign(String imageManagerInsertAlign) {
this.imageManagerInsertAlign = imageManagerInsertAlign;
}
/**
* 获取 列出的文件类型
*
* @return the imageManagerAllowFiles 列出的文件类型
*/
public List<String> getImageManagerAllowFiles() {
return this.imageManagerAllowFiles;
}
/**
* 设置 列出的文件类型
*
* @param imageManagerAllowFiles the 列出的文件类型 to set
*/
public void setImageManagerAllowFiles(List<String> imageManagerAllowFiles) {
this.imageManagerAllowFiles = imageManagerAllowFiles;
}
/**
* 获取 执行文件管理的action名称
*
* @return the fileManagerActionName 执行文件管理的action名称
*/
public String getFileManagerActionName() {
return this.fileManagerActionName;
}
/**
* 设置 执行文件管理的action名称
*
* @param fileManagerActionName the 执行文件管理的action名称 to set
*/
public void setFileManagerActionName(String fileManagerActionName) {
this.fileManagerActionName = fileManagerActionName;
}
/**
* 获取 指定要列出文件的目录
*
* @return the fileManagerListPath 指定要列出文件的目录
*/
public String getFileManagerListPath() {
return this.fileManagerListPath;
}
/**
* 设置 指定要列出文件的目录
*
* @param fileManagerListPath the 指定要列出文件的目录 to set
*/
public void setFileManagerListPath(String fileManagerListPath) {
this.fileManagerListPath = fileManagerListPath;
}
/**
* 获取 文件访问路径前缀
*
* @return the fileManagerUrlPrefix 文件访问路径前缀
*/
public String getFileManagerUrlPrefix() {
return this.fileManagerUrlPrefix;
}
/**
* 设置 文件访问路径前缀
*
* @param fileManagerUrlPrefix the 文件访问路径前缀 to set
*/
public void setFileManagerUrlPrefix(String fileManagerUrlPrefix) {
this.fileManagerUrlPrefix = fileManagerUrlPrefix;
}
/**
* 获取 每次列出文件数量
*
* @return the fileManagerListSize 每次列出文件数量
*/
public int getFileManagerListSize() {
return this.fileManagerListSize;
}
/**
* 设置 每次列出文件数量
*
* @param fileManagerListSize the 每次列出文件数量 to set
*/
public void setFileManagerListSize(int fileManagerListSize) {
this.fileManagerListSize = fileManagerListSize;
}
/**
* 获取 列出的文件类型
*
* @return the fileManagerAllowFiles 列出的文件类型
*/
public List<String> getFileManagerAllowFiles() {
return this.fileManagerAllowFiles;
}
/**
* 设置 列出的文件类型
*
* @param fileManagerAllowFiles the 列出的文件类型 to set
*/
public void setFileManagerAllowFiles(List<String> fileManagerAllowFiles) {
this.fileManagerAllowFiles = fileManagerAllowFiles;
}
}
package com.yd.dal.entity.customer;
import java.util.Date;
import lombok.Data;
/**
* 经纪人分享文章表
*/
@Data
public class AclPractitionerFileSharing {
/**
* serial id
*/
private Long id;
/**
* FK ag_md_drop_options_id文章分类
*/
private String mdDropOptionId;
/**
* 文章内容html
*/
private String fileContent;
/**
* 0=No, 1=Yes
*/
private Integer isActive;
/**
* 建置时间
*/
private Date createdAt;
private Long createdBy;
/**
* 更改时间
*/
private Date updatedAt;
private Long updatedBy;
/**
* 标题
*/
private String title;
/**
* 摘要
*/
private String digest;
/**
* 作者
*/
private String author;
/**
* 封面地址
*/
private String coverUrl;
}
\ No newline at end of file
package com.yd.dal.mapper.agms;
import com.github.pagehelper.Page;
import com.yd.api.agms.vo.practitioner.PractitionerFileSharing;
import org.apache.ibatis.annotations.Param;
/**
* @author xxy
*/
public interface AgmsPractitionerMapper {
/**
*
* @param mdDropOptionIds 文章类型
* @param isActive 是否启用
* @return
*/
Page<PractitionerFileSharing> practitionerFileSharingList(@Param("mdDropOptionIds") Long[] mdDropOptionIds ,@Param("isActive") Integer isActive);
}
package com.yd.dal.mapper.customer;
import com.yd.dal.entity.customer.AclPractitionerFileSharing;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface AclPractitionerFileSharingMapper {
int deleteByPrimaryKey(Long id);
int insert(AclPractitionerFileSharing record);
int insertSelective(AclPractitionerFileSharing record);
AclPractitionerFileSharing selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(AclPractitionerFileSharing record);
int updateByPrimaryKey(AclPractitionerFileSharing record);
int updateBatch(List<AclPractitionerFileSharing> list);
int updateBatchSelective(List<AclPractitionerFileSharing> list);
int batchInsert(@Param("list") List<AclPractitionerFileSharing> list);
}
\ No newline at end of file
package com.yd.dal.service.agms;
import com.github.pagehelper.PageInfo;
import com.yd.api.agms.vo.practitioner.PractitionerFileSharing;
/**
* @author xxy
*/
public interface AgmsPractitionerDALService {
/**
*
* @param mdDropOptionId 文章类型id
* @param pageNum 当前页
* @param size 每页的数量
* @return 查询结果
*/
PageInfo<PractitionerFileSharing> practitionerFileSharingList(Long[] mdDropOptionId, Integer isActive, int pageNum, int size);
}
package com.yd.dal.service.agms.impl;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yd.api.agms.vo.practitioner.PractitionerFileSharing;
import com.yd.dal.mapper.agms.AgmsPractitionerMapper;
import com.yd.dal.service.agms.AgmsPractitionerDALService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @author xxy
*/
@Service("agmsPractitionerDALService")
public class AgmsPractitionerDALServiceImpl implements AgmsPractitionerDALService {
@Autowired
private AgmsPractitionerMapper mapper;
@Override
public PageInfo<PractitionerFileSharing> practitionerFileSharingList(Long[] mdDropOptionIds, Integer isActive, int pageNum, int size) {
PageHelper.startPage(pageNum, size);
Page<PractitionerFileSharing> practitionerFileShares = mapper.practitionerFileSharingList(mdDropOptionIds,isActive);
PageInfo<PractitionerFileSharing> pageInfo = new PageInfo<>(practitionerFileShares);
return pageInfo;
}
}
package com.yd.dal.service.customer;
import com.yd.dal.entity.customer.AclPractitionerFileSharing;
/**
* @author xxy
*/
public interface AclPractitionerFileSharingDALService {
/**
* 修改或保存
* @param fileSharing 修改保存的数据
* @return id
*/
Long saveOrUpdate(AclPractitionerFileSharing fileSharing);
}
package com.yd.dal.service.customer.impl;
import com.yd.dal.entity.customer.AclPractitionerFileSharing;
import com.yd.dal.mapper.customer.AclPractitionerFileSharingMapper;
import com.yd.dal.service.customer.AclPractitionerFileSharingDALService;
import com.yd.util.CommonUtil;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
/**
* @author xxy
*/
@Service("aclPractitionerFileSharingDALService")
public class AclPractitionerFileSharingDALServiceImpl implements AclPractitionerFileSharingDALService {
@Resource
private AclPractitionerFileSharingMapper mapper;
@Override
public Long saveOrUpdate(AclPractitionerFileSharing fileSharing) {
if (CommonUtil.isNullOrZero(fileSharing.getId())){
//没有id做保存
fileSharing.setCreatedAt(new Date());
fileSharing.setUpdatedAt(new Date());
fileSharing.setCreatedBy(fileSharing.getUpdatedBy());
mapper.insert(fileSharing);
}else {
//有id,做更新
fileSharing.setUpdatedAt(new Date());
mapper.updateByPrimaryKeySelective(fileSharing);
}
return fileSharing.getId();
}
}
......@@ -273,7 +273,8 @@ public class AliOssInterfServiceImpl implements AliOssInterfService {
* @param key 对象名
* @return
*/
public String generateUrl(String bucketName,String key){
@Override
public String generateUrl(String bucketName, String key){
OSSClient ossClient = new OSSClient(endpoint, accessKeyId, accessKeySecret);
String url = null;
try{
......
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.yd.dal.mapper.agms.AgmsPractitionerMapper">
<select id="practitionerFileSharingList" resultType="com.yd.api.agms.vo.practitioner.PractitionerFileSharing">
select s.id id,
s.md_drop_option_id mdDropOptionId,
s.file_content fileContent,
s.is_active isActive,
s.created_at createdAt,
s.created_by createdBy,
uc.name createdName,
s.updated_at updatedAt,
s.updated_by updatedBy,
uu.name updatedName,
s.title title,
s.digest digest,
s.author author,
s.cover_url coverUrl
from ag_acl_practitioner_file_sharing s
left join ag_md_drop_options o on o.id = s.md_drop_option_id
left join ag_acl_user uc on uc.id = s.created_by
left join ag_acl_user uu on uu.id = s.created_by
<where>
<if test="mdDropOptionIds != null">
<foreach collection="mdDropOptionIds" item="mdDropOptionId" index="index" separator="or">
find_in_set (#{mdDropOptionId,jdbcType=BIGINT},s.md_drop_option_id)
</foreach>
</if>
<if test="isActive != null">
and s.is_active = #{isActive,jdbcType=INTEGER}
</if>
</where>
ORDER BY s.id desc
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yd.dal.mapper.customer.AclPractitionerFileSharingMapper">
<resultMap id="BaseResultMap" type="com.yd.dal.entity.customer.AclPractitionerFileSharing">
<!--@mbg.generated-->
<!--@Table ag_acl_practitioner_file_sharing-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="md_drop_option_id" jdbcType="VARCHAR" property="mdDropOptionId" />
<result column="file_content" jdbcType="LONGVARCHAR" property="fileContent" />
<result column="is_active" jdbcType="INTEGER" property="isActive" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="digest" jdbcType="VARCHAR" property="digest" />
<result column="author" jdbcType="VARCHAR" property="author" />
<result column="cover_url" jdbcType="VARCHAR" property="coverUrl" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, md_drop_option_id, file_content, is_active, created_at, created_by, updated_at,
updated_by, title, digest, author, cover_url
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from ag_acl_practitioner_file_sharing
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<!--@mbg.generated-->
delete from ag_acl_practitioner_file_sharing
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yd.dal.entity.customer.AclPractitionerFileSharing" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into ag_acl_practitioner_file_sharing (md_drop_option_id, file_content,
is_active, created_at, created_by,
updated_at, updated_by, title,
digest, author, cover_url
)
values (#{mdDropOptionId,jdbcType=VARCHAR}, #{fileContent,jdbcType=LONGVARCHAR},
#{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT},
#{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR},
#{digest,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR}, #{coverUrl,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yd.dal.entity.customer.AclPractitionerFileSharing" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into ag_acl_practitioner_file_sharing
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="mdDropOptionId != null">
md_drop_option_id,
</if>
<if test="fileContent != null">
file_content,
</if>
<if test="isActive != null">
is_active,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="createdBy != null">
created_by,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="updatedBy != null">
updated_by,
</if>
<if test="title != null">
title,
</if>
<if test="digest != null">
digest,
</if>
<if test="author != null">
author,
</if>
<if test="coverUrl != null">
cover_url,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="mdDropOptionId != null">
#{mdDropOptionId,jdbcType=VARCHAR},
</if>
<if test="fileContent != null">
#{fileContent,jdbcType=LONGVARCHAR},
</if>
<if test="isActive != null">
#{isActive,jdbcType=INTEGER},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="createdBy != null">
#{createdBy,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
#{updatedBy,jdbcType=BIGINT},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="digest != null">
#{digest,jdbcType=VARCHAR},
</if>
<if test="author != null">
#{author,jdbcType=VARCHAR},
</if>
<if test="coverUrl != null">
#{coverUrl,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yd.dal.entity.customer.AclPractitionerFileSharing">
<!--@mbg.generated-->
update ag_acl_practitioner_file_sharing
<set>
<if test="mdDropOptionId != null">
md_drop_option_id = #{mdDropOptionId,jdbcType=VARCHAR},
</if>
<if test="fileContent != null">
file_content = #{fileContent,jdbcType=LONGVARCHAR},
</if>
<if test="isActive != null">
is_active = #{isActive,jdbcType=INTEGER},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="createdBy != null">
created_by = #{createdBy,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
updated_by = #{updatedBy,jdbcType=BIGINT},
</if>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="digest != null">
digest = #{digest,jdbcType=VARCHAR},
</if>
<if test="author != null">
author = #{author,jdbcType=VARCHAR},
</if>
<if test="coverUrl != null">
cover_url = #{coverUrl,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.yd.dal.entity.customer.AclPractitionerFileSharing">
<!--@mbg.generated-->
update ag_acl_practitioner_file_sharing
set md_drop_option_id = #{mdDropOptionId,jdbcType=VARCHAR},
file_content = #{fileContent,jdbcType=LONGVARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
updated_by = #{updatedBy,jdbcType=BIGINT},
title = #{title,jdbcType=VARCHAR},
digest = #{digest,jdbcType=VARCHAR},
author = #{author,jdbcType=VARCHAR},
cover_url = #{coverUrl,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update ag_acl_practitioner_file_sharing
<trim prefix="set" suffixOverrides=",">
<trim prefix="md_drop_option_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="file_content = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.fileContent,jdbcType=LONGVARCHAR}
</foreach>
</trim>
<trim prefix="is_active = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="created_at = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="created_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="updated_at = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="updated_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="title = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.title,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="digest = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.digest,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="author = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.author,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="cover_url = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.coverUrl,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update ag_acl_practitioner_file_sharing
<trim prefix="set" suffixOverrides=",">
<trim prefix="md_drop_option_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.mdDropOptionId != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="file_content = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.fileContent != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.fileContent,jdbcType=LONGVARCHAR}
</if>
</foreach>
</trim>
<trim prefix="is_active = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.isActive != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="created_at = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createdAt != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.createdAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="created_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createdBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.createdBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="updated_at = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updatedAt != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedAt,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="updated_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updatedBy != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.updatedBy,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="title = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.title != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.title,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="digest = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.digest != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.digest,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="author = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.author != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.author,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="cover_url = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.coverUrl != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.coverUrl,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=BIGINT}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into ag_acl_practitioner_file_sharing
(md_drop_option_id, file_content, is_active, created_at, created_by, updated_at,
updated_by, title, digest, author, cover_url)
values
<foreach collection="list" item="item" separator=",">
(#{item.mdDropOptionId,jdbcType=VARCHAR}, #{item.fileContent,jdbcType=LONGVARCHAR},
#{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT},
#{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT}, #{item.title,jdbcType=VARCHAR},
#{item.digest,jdbcType=VARCHAR}, #{item.author,jdbcType=VARCHAR}, #{item.coverUrl,jdbcType=VARCHAR}
)
</foreach>
</insert>
</mapper>
\ No newline at end of file
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