|
@ -38,6 +38,7 @@ import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.util.StringUtils;
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
@ -150,6 +151,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
}
|
|
}
|
|
heapm.setSendName(one.getSendName());
|
|
heapm.setSendName(one.getSendName());
|
|
heapm.setSendCode(one.getDoctorCode());
|
|
heapm.setSendCode(one.getDoctorCode());
|
|
|
|
// SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
heapm.setCreateTime(DateUtil.dateToStrLong(one.getCreateTime()));
|
|
heapm.setCreateTime(DateUtil.dateToStrLong(one.getCreateTime()));
|
|
heapm.setArticleId(article.getString("articleId"));
|
|
heapm.setArticleId(article.getString("articleId"));
|
|
heapm.setAttachedTitle(article.getString("articleTitle"));
|
|
heapm.setAttachedTitle(article.getString("articleTitle"));
|
|
@ -212,7 +214,7 @@ public class JMJkEduArticleService extends BaseService {
|
|
public List<HealthEduArticleES> pushArticleListCount(String sendCode, String firstLevelCategoryId,String secondLevelCategoryId,Integer myArticle,Integer sendType,String currentUserRole,
|
|
public List<HealthEduArticleES> pushArticleListCount(String sendCode, String firstLevelCategoryId,String secondLevelCategoryId,Integer myArticle,Integer sendType,String currentUserRole,
|
|
String currentUserRoleLevel,String articleTitle,String sendTimeStart,String sendTimeEnd) throws Exception {
|
|
String currentUserRoleLevel,String articleTitle,String sendTimeStart,String sendTimeEnd) throws Exception {
|
|
|
|
|
|
StringBuffer sql2 = new StringBuffer("select from " + esType +
|
|
|
|
|
|
StringBuffer sql2 = new StringBuffer("select * from " + esType +
|
|
" where sendCode='" + sendCode + "' and userType = 2" );
|
|
" where sendCode='" + sendCode + "' and userType = 2" );
|
|
if(sendType==1){
|
|
if(sendType==1){
|
|
|
|
|