|
@ -11,6 +11,7 @@ import com.yihu.jk.vo.OrgArticleVo;
|
|
|
import net.sf.json.JSONArray;
|
|
|
import net.sf.json.JSONObject;
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.log4j.Logger;
|
|
|
|
|
|
import com.common.json.JSONException;
|
|
@ -232,7 +233,7 @@ public class ArticleApi {
|
|
|
jsonObj.put("deptName", StringUtil.getJSONValue(vbo.getDeptName()));
|
|
|
jsonObj.put("titleLevel", StringUtil.getJSONValue(vbo.getTitleLevel()));
|
|
|
jsonObj.put("operatorImg", StringUtil.getJSONValue(vbo.getOperatorImg()));
|
|
|
|
|
|
jsonObj.put("userScope", StringUtil.getJSONValue(vbo.getUserScope()));
|
|
|
if (StringUtil.isNotEmpty(userId)) {
|
|
|
vo.setUserId(userId);
|
|
|
int pointNumberCount = dao.pointNumberCount(vo);
|
|
@ -481,7 +482,7 @@ public class ArticleApi {
|
|
|
|
|
|
/************************************************* new ************************************************************/
|
|
|
/**
|
|
|
* 添加文章
|
|
|
* 添加、编辑文章
|
|
|
* @param im
|
|
|
* @return
|
|
|
* @throws JSONException
|
|
@ -490,76 +491,73 @@ public class ArticleApi {
|
|
|
|
|
|
JSONObject json = JSONObject.fromObject(im.getParam());
|
|
|
String articleId = StringUtil.isEmpty(json.get("articleId")) ? null : json.getString("articleId");
|
|
|
String userCode = StringUtil.isEmpty(json.get("userCode")) ? null : json.getString("userCode");
|
|
|
if (StringUtil.isEmpty(userCode)) {
|
|
|
return ApiUtil.getRespJSON(-10000, "userCode 必传").toString();
|
|
|
String firstLevelCategoryId = StringUtil.isEmpty(json.get("firstLevelCategoryId")) ? null : json.getString("firstLevelCategoryId");//一级分类id
|
|
|
String firstLevelCategoryName = StringUtil.isEmpty(json.get("firstLevelCategoryName")) ? null : json.getString("firstLevelCategoryName");// 一级分类名称
|
|
|
String secondLevelCategoryId = StringUtil.isEmpty(json.get("secondLevelCategoryId")) ? null : json.getString("secondLevelCategoryId");//二级分类id
|
|
|
String secondLevelCategoryName = StringUtil.isEmpty(json.get("secondLevelCategoryName")) ? null : json.getString("secondLevelCategoryName");// 二级分类名称
|
|
|
String content = StringUtil.isEmpty(json.get("content")) ? null : json.getString("content");//内容
|
|
|
String articleTitle = StringUtil.isEmpty(json.get("articleTitle")) ? null : json.getString("articleTitle");//标题
|
|
|
Integer articlelevel = StringUtil.isEmpty(json.get("articlelevel")) ? null : json.getInt("articlelevel");//文章级别
|
|
|
Integer userScope = StringUtil.isEmpty(json.get("userScope")) ? null : json.getInt("userScope");//使用范围(1、全市使用,2、全区使用,3、全社区使用)
|
|
|
String newUrl = StringUtil.isEmpty(json.get("newUrl")) ? null : json.getString("newUrl");//封面图片地址
|
|
|
|
|
|
}
|
|
|
String orgName = StringUtil.isEmpty(json.get("orgName")) ? null : json.getString("orgName");//组织名称
|
|
|
String deptName = StringUtil.isEmpty(json.get("deptName")) ? null : json.getString("deptName");//科室名称
|
|
|
String levelName = StringUtil.isEmpty(json.get("levelName")) ? null : json.getString("levelName");//职称
|
|
|
String photo = StringUtil.isEmpty(json.get("photo")) ? null : json.getString("photo");//头像
|
|
|
String orgId = StringUtil.isEmpty(json.get("orgId")) ? null : json.getString("orgId");//组织
|
|
|
String userName = StringUtil.isEmpty(json.get("userName")) ? null : json.getString("userName");//登录名称
|
|
|
String articleTitle = StringUtil.isEmpty(json.get("articleTitle")) ? null : json.getString("articleTitle");//标题
|
|
|
String articleType = StringUtil.isEmpty(json.get("articleType")) ? null : json.getString("articleType");//类型
|
|
|
Integer articlelevel = StringUtil.isEmpty(json.get("articlelevel")) ? null : json.getInt("articlelevel");//文章级别
|
|
|
String secondLevelCategoryId = StringUtil.isEmpty(json.get("secondLevelCategoryId")) ? null : json.getString("secondLevelCategoryId");//二级分类id
|
|
|
String secondLevelCategoryName = StringUtil.isEmpty(json.get("secondLevelCategoryName")) ? null : json.getString("secondLevelCategoryName");// 二级分类名称
|
|
|
String firstLevelCategoryId = StringUtil.isEmpty(json.get("firstLevelCategoryId")) ? null : json.getString("firstLevelCategoryId");//一级分类id
|
|
|
String firstLevelCategoryName = StringUtil.isEmpty(json.get("firstLevelCategoryName")) ? null : json.getString("firstLevelCategoryName");// 一级分类名称
|
|
|
String content = StringUtil.isEmpty(json.get("content")) ? null : json.getString("content");//内容
|
|
|
String newUrl = StringUtil.isEmpty(json.get("newUrl")) ? null : json.getString("newUrl");//封面图片地址
|
|
|
String operatorRoleCode = StringUtil.isEmpty(json.get("operatorRoleCode")) ? null : json.getString("operatorRoleCode");//操作人角色code
|
|
|
String opertorRoleLevel = StringUtil.isEmpty(json.get("opertorRoleLevel")) ? null : json.getString("opertorRoleLevel");//操作人角色级别
|
|
|
Integer userScope = StringUtil.isEmpty(json.get("userScope")) ? null : json.getInt("userScope");//使用范围(1、全市使用,2、全区使用,3、全社区使用)
|
|
|
Integer isAuthentication = StringUtil.isEmpty(json.get("isAuthentication")) ? null : json.getInt("isAuthentication");//是否认证
|
|
|
String authentication = StringUtil.isEmpty(json.get("authentication")) ? null : json.getString("authentication");//认证单位
|
|
|
String authenticationId = StringUtil.isEmpty(json.get("authenticationId")) ? null : json.getString("authenticationId");//认证单位ID
|
|
|
Timestamp nowTime = DateOper.getNowDateTime();//插入和更新时间一样
|
|
|
OrgArticleVo orgArticleVo = new OrgArticleVo();
|
|
|
orgArticleVo.setArticleId(articleId);
|
|
|
com.common.json.JSONObject jsonObject = articlePcDao.queryArticlePcId(orgArticleVo);
|
|
|
// json = JSONObject.parseObject(str);
|
|
|
// if(){
|
|
|
//
|
|
|
// }
|
|
|
articleId=StringUtil.createUUID();
|
|
|
orgArticleVo.setArticleId(articleId);
|
|
|
orgArticleVo.setArticleOrder(99);
|
|
|
orgArticleVo.setArticleType(articleType);
|
|
|
orgArticleVo.setArticleTitle(articleTitle);
|
|
|
orgArticleVo.setArticleContent(content);
|
|
|
orgArticleVo.setInsertTime(nowTime);
|
|
|
orgArticleVo.setUpdateTime(nowTime);
|
|
|
orgArticleVo.setArticleState(1);
|
|
|
orgArticleVo.setArticlelevel(articlelevel);
|
|
|
orgArticleVo.setSecondLevelCategoryId(secondLevelCategoryId);
|
|
|
orgArticleVo.setUserScope(userScope);
|
|
|
orgArticleVo.setFirstLevelCategoryId(firstLevelCategoryId);
|
|
|
orgArticleVo.setFirstLevelCategoryName(firstLevelCategoryName);
|
|
|
orgArticleVo.setSecondLevelCategoryId(secondLevelCategoryId);
|
|
|
orgArticleVo.setSecondLevelCategoryName(secondLevelCategoryName);
|
|
|
orgArticleVo.setArticleCover(newUrl);
|
|
|
orgArticleVo.setDeptName(deptName);
|
|
|
orgArticleVo.setTitleLevel(levelName);
|
|
|
orgArticleVo.setOperatorImg(photo);
|
|
|
orgArticleVo.setOrgId(orgId);
|
|
|
orgArticleVo.setOperatorName(userName);
|
|
|
orgArticleVo.setOperatorId(userCode);
|
|
|
orgArticleVo.setLastOperatorId(userCode);
|
|
|
orgArticleVo.setLastOperatorName(userName);
|
|
|
orgArticleVo.setOperatorRoleCode(operatorRoleCode);
|
|
|
orgArticleVo.setOperatorRoleLevel(opertorRoleLevel);
|
|
|
orgArticleVo.setUserScope(userScope);
|
|
|
orgArticleVo.setIsAuthentication(isAuthentication);
|
|
|
orgArticleVo.setAuthentication(authentication);
|
|
|
orgArticleVo.setAuthenticationId(authenticationId);
|
|
|
if ("".equals(orgName)&&orgName==null){
|
|
|
orgName = "无";
|
|
|
Timestamp nowTime = DateOper.getNowDateTime();//插入和更新时间一样
|
|
|
orgArticleVo.setUpdateTime(nowTime);
|
|
|
|
|
|
if(StringUtil.isEmpty(articleId)) {
|
|
|
String userCode = StringUtil.isEmpty(json.get("userCode")) ? null : json.getString("userCode");
|
|
|
String orgName = StringUtil.isEmpty(json.get("orgName")) ? null : json.getString("orgName");//组织名称
|
|
|
String deptName = StringUtil.isEmpty(json.get("deptName")) ? null : json.getString("deptName");//科室名称
|
|
|
String levelName = StringUtil.isEmpty(json.get("levelName")) ? null : json.getString("levelName");//职称
|
|
|
String photo = StringUtil.isEmpty(json.get("photo")) ? null : json.getString("photo");//头像
|
|
|
String orgId = StringUtil.isEmpty(json.get("orgId")) ? null : json.getString("orgId");//组织
|
|
|
String userName = StringUtil.isEmpty(json.get("userName")) ? null : json.getString("userName");//登录名称
|
|
|
String articleType = StringUtil.isEmpty(json.get("articleType")) ? null : json.getString("articleType");//类型
|
|
|
String operatorRoleCode = StringUtil.isEmpty(json.get("operatorRoleCode")) ? null : json.getString("operatorRoleCode");//操作人角色code
|
|
|
String opertorRoleLevel = StringUtil.isEmpty(json.get("opertorRoleLevel")) ? null : json.getString("opertorRoleLevel");//操作人角色级别
|
|
|
Integer isAuthentication = StringUtil.isEmpty(json.get("isAuthentication")) ? null : json.getInt("isAuthentication");//是否认证
|
|
|
String authentication = StringUtil.isEmpty(json.get("authentication")) ? null : json.getString("authentication");//认证单位
|
|
|
String authenticationId = StringUtil.isEmpty(json.get("authenticationId")) ? null : json.getString("authenticationId");//认证单位ID
|
|
|
orgArticleVo.setArticleId(articleId);
|
|
|
articleId = StringUtil.createUUID();
|
|
|
orgArticleVo.setArticleId(articleId);
|
|
|
orgArticleVo.setArticleOrder(99);
|
|
|
orgArticleVo.setArticleType(articleType);
|
|
|
orgArticleVo.setInsertTime(nowTime);
|
|
|
orgArticleVo.setArticleState(1);
|
|
|
orgArticleVo.setDeptName(deptName);
|
|
|
orgArticleVo.setTitleLevel(levelName);
|
|
|
orgArticleVo.setOperatorImg(photo);
|
|
|
orgArticleVo.setOrgId(orgId);
|
|
|
orgArticleVo.setOperatorName(userName);
|
|
|
orgArticleVo.setOperatorId(userCode);
|
|
|
orgArticleVo.setLastOperatorId(userCode);
|
|
|
orgArticleVo.setLastOperatorName(userName);
|
|
|
orgArticleVo.setOperatorRoleCode(operatorRoleCode);
|
|
|
orgArticleVo.setOperatorRoleLevel(opertorRoleLevel);
|
|
|
orgArticleVo.setIsAuthentication(isAuthentication);
|
|
|
orgArticleVo.setAuthentication(authentication);
|
|
|
orgArticleVo.setAuthenticationId(authenticationId);
|
|
|
if ("".equals(orgName) && orgName == null) {
|
|
|
orgName = "无";
|
|
|
}
|
|
|
orgArticleVo.setOrgName(orgName);
|
|
|
orgArticleVo.setArticleSource(orgName);
|
|
|
return dao.saveArticle(orgArticleVo).toString();
|
|
|
}else{
|
|
|
orgArticleVo.setArticleId(articleId);
|
|
|
return dao.updateArticle(orgArticleVo).toString();
|
|
|
}
|
|
|
orgArticleVo.setOrgName(orgName);
|
|
|
orgArticleVo.setArticleSource(orgName);
|
|
|
orgArticleVo.setFirstLevelCategoryName(firstLevelCategoryName);
|
|
|
orgArticleVo.setSecondLevelCategoryName(secondLevelCategoryName);
|
|
|
return dao.saveArticle(orgArticleVo).toString();
|
|
|
}
|
|
|
/************************************************ PC *************************************************************/
|
|
|
|
|
@ -576,16 +574,14 @@ public class ArticleApi {
|
|
|
Integer isAuthentication = StringUtil.isEmpty(json.get("isAuthentication")) ? null : json.getInt("isAuthentication");//是否有权限
|
|
|
String currentUserRole = StringUtil.isEmpty(json.get("currentUserRole")) ? null : json.getString("currentUserRole");//当前登录的角色
|
|
|
String currentUserRoleLevel = StringUtil.isEmpty(json.get("currentUserRoleLevel")) ? null : json.getString("currentUserRoleLevel");//当前登录的角色级别
|
|
|
Integer page = 0;
|
|
|
Integer pageSize = 0;
|
|
|
if(!StringUtil.isEmpty(json.get("page"))){
|
|
|
page = json.getInt("page");
|
|
|
}else{
|
|
|
Integer page = StringUtil.isEmpty(json.get("page")) ? null : json.getInt("page");
|
|
|
Integer pageSize = StringUtil.isEmpty(json.get("pageSize")) ? null : json.getInt("pageSize");
|
|
|
Integer sEcho = StringUtil.isEmpty(json.get("sEcho")) ? 0 : json.getInt("sEcho");
|
|
|
if(page==null){
|
|
|
return ApiUtil.getRespJSON(-10000, "page 必传").toString();
|
|
|
}
|
|
|
if(!StringUtil.isEmpty(json.get("pageSize"))){
|
|
|
pageSize = json.getInt("pageSize");
|
|
|
}else{
|
|
|
if(pageSize==null){
|
|
|
|
|
|
return ApiUtil.getRespJSON(-10000, "pageSize 必传").toString();
|
|
|
}
|
|
|
|
|
@ -603,17 +599,22 @@ public class ArticleApi {
|
|
|
JSONArray array = new JSONArray();
|
|
|
try {
|
|
|
JSONObject rv = ApiUtil.getRespJSON(10000, "成功");
|
|
|
List<Article> list = dao.queryArticlePcList(vo, page, pageSize);
|
|
|
array.addAll(list);
|
|
|
Integer count = dao.queryArticlePcListCount(vo);
|
|
|
rv.put("Result", array);
|
|
|
rv.put("Count", count);
|
|
|
com.common.json.JSONObject result = dao.queryArticlePcList(vo, page, pageSize);
|
|
|
// array.addAll(list);
|
|
|
// int count = dao.queryArticlePcListCount(vo);
|
|
|
// rv.put("Result", array);
|
|
|
// rv.put("Count", count);
|
|
|
rv.put("aaData", result.get("result").toString());
|
|
|
rv.put("iTotalDisplayRecords", result.get("totalProperty"));
|
|
|
rv.put("iTotalRecords", result.get("totalProperty"));
|
|
|
rv.put("sEcho", sEcho);
|
|
|
// System.out.printf("article:"+rv.toString());
|
|
|
return rv.toString();
|
|
|
}catch (SQLException e) {
|
|
|
e.printStackTrace();
|
|
|
return ApiUtil.getRespJSON(-14444, "获取数据异常:" + e.getMessage()).toString();
|
|
|
|
|
|
}
|
|
|
return array.toString();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@ -622,44 +623,44 @@ public class ArticleApi {
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public String editArticle(InterfaceMessage im) throws Exception {
|
|
|
|
|
|
JSONObject json = JSONObject.fromObject(im.getParam());
|
|
|
String articleid = StringUtil.isEmpty(json.get("articleid")) ? null : json.getString("articleid");//文章id
|
|
|
String articleTitle = StringUtil.isEmpty(json.get("articleTitle")) ? null : json.getString("articleTitle");//文章id
|
|
|
|
|
|
String articleType = StringUtil.isEmpty(json.get("articleType")) ? null : json.getString("articleType");//文章id
|
|
|
String remark = StringUtil.isEmpty(json.get("remark")) ? null : json.getString("remark");//文章id
|
|
|
Integer articleState = StringUtil.isEmpty(json.get("articleState")) ? null : json.getInt("articleState");//文章id
|
|
|
Integer articlelevel = StringUtil.isEmpty(json.get("articlelevel")) ? null : json.getInt("articlelevel");//文章id
|
|
|
String firstLevelCategoryId = StringUtil.isEmpty(json.get("firstLevelCategoryId")) ? null : json.getString("firstLevelCategoryId");//文章id
|
|
|
String secondLevelCategoryId = StringUtil.isEmpty(json.get("secondLevelCategoryId")) ? null : json.getString("secondLevelCategoryId");//文章id
|
|
|
String newUrl = StringUtil.isEmpty(json.get("newUrl")) ? null : json.getString("newUrl");//文章id
|
|
|
String userName = StringUtil.isEmpty(json.get("userName")) ? null : json.getString("userName");//文章id
|
|
|
String userid = StringUtil.isEmpty(json.get("userid")) ? null : json.getString("userid");//文章id
|
|
|
String firstLevelCategoryName = StringUtil.isEmpty(json.get("firstLevelCategoryName")) ? null : json.getString("firstLevelCategoryName");//文章id
|
|
|
String secondLevelCategoryName = StringUtil.isEmpty(json.get("secondLevelCategoryName")) ? null : json.getString("secondLevelCategoryName");//文章id
|
|
|
|
|
|
Timestamp nowTime = DateOper.getNowDateTime();
|
|
|
OrgArticleVo orgArticleVo = new OrgArticleVo();
|
|
|
orgArticleVo.setArticleId(articleid);
|
|
|
orgArticleVo.setArticleType(articleType);
|
|
|
orgArticleVo.setArticleTitle(articleTitle);
|
|
|
orgArticleVo.setArticleContent(remark);
|
|
|
orgArticleVo.setUpdateTime(nowTime);
|
|
|
orgArticleVo.setArticleState(articleState);
|
|
|
orgArticleVo.setArticlelevel(articlelevel);
|
|
|
orgArticleVo.setSecondLevelCategoryId(secondLevelCategoryId);
|
|
|
orgArticleVo.setFirstLevelCategoryId(firstLevelCategoryId);
|
|
|
orgArticleVo.setArticleCover(newUrl);
|
|
|
orgArticleVo.setOperatorName(userName);
|
|
|
orgArticleVo.setOperatorId(userid);
|
|
|
orgArticleVo.setFirstLevelCategoryName(firstLevelCategoryName);
|
|
|
orgArticleVo.setSecondLevelCategoryName(secondLevelCategoryName);
|
|
|
orgArticleVo.setLastOperatorId(userid);
|
|
|
orgArticleVo.setLastOperatorName(userName);
|
|
|
return null;
|
|
|
}
|
|
|
// public String editArticle(InterfaceMessage im) throws Exception {
|
|
|
//
|
|
|
// JSONObject json = JSONObject.fromObject(im.getParam());
|
|
|
// String articleid = StringUtil.isEmpty(json.get("articleid")) ? null : json.getString("articleid");//文章id
|
|
|
// String articleTitle = StringUtil.isEmpty(json.get("articleTitle")) ? null : json.getString("articleTitle");//文章id
|
|
|
//
|
|
|
// String articleType = StringUtil.isEmpty(json.get("articleType")) ? null : json.getString("articleType");//文章id
|
|
|
// String remark = StringUtil.isEmpty(json.get("remark")) ? null : json.getString("remark");//文章id
|
|
|
// Integer articleState = StringUtil.isEmpty(json.get("articleState")) ? null : json.getInt("articleState");//文章id
|
|
|
// Integer articlelevel = StringUtil.isEmpty(json.get("articlelevel")) ? null : json.getInt("articlelevel");//文章id
|
|
|
// String firstLevelCategoryId = StringUtil.isEmpty(json.get("firstLevelCategoryId")) ? null : json.getString("firstLevelCategoryId");//文章id
|
|
|
// String secondLevelCategoryId = StringUtil.isEmpty(json.get("secondLevelCategoryId")) ? null : json.getString("secondLevelCategoryId");//文章id
|
|
|
// String newUrl = StringUtil.isEmpty(json.get("newUrl")) ? null : json.getString("newUrl");//文章id
|
|
|
// String userName = StringUtil.isEmpty(json.get("userName")) ? null : json.getString("userName");//文章id
|
|
|
// String userid = StringUtil.isEmpty(json.get("userid")) ? null : json.getString("userid");//文章id
|
|
|
// String firstLevelCategoryName = StringUtil.isEmpty(json.get("firstLevelCategoryName")) ? null : json.getString("firstLevelCategoryName");//文章id
|
|
|
// String secondLevelCategoryName = StringUtil.isEmpty(json.get("secondLevelCategoryName")) ? null : json.getString("secondLevelCategoryName");//文章id
|
|
|
//
|
|
|
// Timestamp nowTime = DateOper.getNowDateTime();
|
|
|
// OrgArticleVo orgArticleVo = new OrgArticleVo();
|
|
|
// orgArticleVo.setArticleId(articleid);
|
|
|
// orgArticleVo.setArticleType(articleType);
|
|
|
// orgArticleVo.setArticleTitle(articleTitle);
|
|
|
// orgArticleVo.setArticleContent(remark);
|
|
|
// orgArticleVo.setUpdateTime(nowTime);
|
|
|
// orgArticleVo.setArticleState(articleState);
|
|
|
// orgArticleVo.setArticlelevel(articlelevel);
|
|
|
// orgArticleVo.setSecondLevelCategoryId(secondLevelCategoryId);
|
|
|
// orgArticleVo.setFirstLevelCategoryId(firstLevelCategoryId);
|
|
|
// orgArticleVo.setArticleCover(newUrl);
|
|
|
// orgArticleVo.setOperatorName(userName);
|
|
|
// orgArticleVo.setOperatorId(userid);
|
|
|
// orgArticleVo.setFirstLevelCategoryName(firstLevelCategoryName);
|
|
|
// orgArticleVo.setSecondLevelCategoryName(secondLevelCategoryName);
|
|
|
// orgArticleVo.setLastOperatorId(userid);
|
|
|
// orgArticleVo.setLastOperatorName(userName);
|
|
|
// return null;
|
|
|
// }
|
|
|
|
|
|
|
|
|
/**
|
|
@ -694,4 +695,38 @@ public class ArticleApi {
|
|
|
net.sf.json.JSONObject jsonObject = articlePcDao.editArticle(orgArticleVo);
|
|
|
return jsonObject.toString();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 删除文章
|
|
|
* @param im
|
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
public String removeArticle(InterfaceMessage im) throws Exception {
|
|
|
|
|
|
JSONObject json = JSONObject.fromObject(im.getParam());
|
|
|
String ids = StringUtil.isEmpty(json.get("ids")) ? null : json.getString("ids");//文章id
|
|
|
if(!StringUtils.isNotEmpty(ids)){
|
|
|
return ApiUtil.getRespJSON(-14444, "ids必传").toString();
|
|
|
}
|
|
|
Timestamp nowTime = DateOper.getNowDateTime();
|
|
|
String[] idsArr = ids.split(",");
|
|
|
Integer code = null;
|
|
|
for (int i = 0; i < idsArr.length; i++) {
|
|
|
try {
|
|
|
// 参数赋值
|
|
|
OrgArticleVo orgArticleVo = new OrgArticleVo();
|
|
|
orgArticleVo.setArticleId(idsArr[i]);
|
|
|
orgArticleVo.setArticleState(0);
|
|
|
orgArticleVo.setUpdateTime(nowTime);
|
|
|
// 修改
|
|
|
articlePcDao.removeArticle(orgArticleVo);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return ApiUtil.getRespJSON(-14444, "获取数据异常:" + e.getMessage()).toString();
|
|
|
|
|
|
}
|
|
|
}
|
|
|
return ApiUtil.getRespJSON(10000, "删除成功").toString();
|
|
|
}
|
|
|
}
|