huangwenjie 7 lat temu
rodzic
commit
cd1fdd672d

BIN
edu-article/JkEdu/WebRoot/WEB-INF/classes/com/yihu/jk/api/ConfigDicShoApiTest.class


+ 1 - 1
edu-article/JkEdu/WebRoot/WEB-INF/classes/configDictionary.sql.xml

@ -3,7 +3,7 @@
	<Sqls> 
		 <Sql name='loadAllConfigDictionary'>
		 <![CDATA[
				select * from Config_Dictionary where TypeName is not null order by TypeName,Code   
				select * from Config_Dictionary where TypeName is not null order by TypeName,Code
			]]>
		</Sql>
	

+ 1 - 0
edu-article/JkEdu/src/com/yihu/jk/api/ConfigDicShoApiTest.java

@ -28,6 +28,7 @@ public class ConfigDicShoApiTest {
		InterfaceMessage im = new InterfaceMessage();
		JSONObject obj = new JSONObject();
		obj.put("typeName","prio");
		obj.put("code","1");
		im.setParam(obj.toString());
		initDB();
		System.out.println(api.getConfigDicShoList(im));

+ 2 - 3
edu-article/JkEdu/src/com/yihu/jk/vo/ConfigDictionary.java

@ -12,7 +12,7 @@ public class ConfigDictionary {
	private String OperatorId;
	private String DictionaryText;
	private String URL;
	
	
	public String getURL() {
		return URL;
@ -68,6 +68,5 @@ public class ConfigDictionary {
	public void setDictionaryText(String dictionaryText) {
		DictionaryText = dictionaryText;
	}
	
	
}

+ 2 - 4
edu-article/JkEdu/src/com/yihu/jk/vo/ConfigDictionaryShort.java

@ -8,7 +8,7 @@ public class ConfigDictionaryShort {
	private String CodeName;
	private String TypeName;
	private String URL;
	
	
	public String getURL() {
		return URL;
@ -34,7 +34,5 @@ public class ConfigDictionaryShort {
	public void setCodeName(String codeName) {
		CodeName = codeName;
	}
	
	
	
}

+ 1 - 1
edu-article/JkEdu/src/configDictionary.sql.xml

@ -3,7 +3,7 @@
	<Sqls> 
		 <Sql name='loadAllConfigDictionary'>
		 <![CDATA[
				select * from Config_Dictionary where TypeName is not null order by TypeName,Code   
				select * from Config_Dictionary where TypeName is not null order by TypeName,Code
			]]>
		</Sql>
	

+ 1 - 0
patient-co/patient-co-wlyy-job/src/main/java/com/yihu/wlyy/service/app/prenatalInspector/PrenatalInspectorPreCardService.java

@ -249,6 +249,7 @@ public class PrenatalInspectorPreCardService extends BaseService {
            message.setTitle("孕检提醒");
            message.setContent(content);
            message.setType(13);
            message.setDel("1");
            messageDao.save(message);
            // 推送消息给医生
            pushMsgTask.put(doctor, "13", "孕检提醒", content, "");

+ 1 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/repository/message/MessageDao.java

@ -62,7 +62,7 @@ public interface MessageDao extends PagingAndSortingRepository<Message, Long>, J
    @Query("select a from Message a where a.receiver = ?1 and a.prescriptionStatus=?2 and a.type in (6,7) order by a.createTime desc")
    List<Message> getSysTemMessageByPrescription(String doctor, String prescriptionStatus);
    @Query("select a from Message a where a.receiver = ?1 and a.type not in (1,2,6,7,12)")
    @Query("select a from Message a where a.receiver = ?1 and a.type not in (1,2,6,7,12) and (a.del = '1' or a.del is null) ")
    List<Message> getSystemMessage(String doctor, Pageable pageRequest);
    @Query("select a from Message a where a.receiver = ?1 and a.type=?2 and a.prescriptionStatus='0' ")

+ 9 - 0
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/message/MessageService.java

@ -263,6 +263,15 @@ public class MessageService extends BaseService {
     * @param msgid
     */
    public int readHealth(long msgid) {
        //        by wujunjie type13 医生点击阅读后隐藏
        Message message = messageDao.findOne(msgid);
        int type = message.getType();
        switch (type){
            case 13:
                message.setDel("0");
                messageDao.save(message);
                break;
        }
        return messageDao.read(msgid);
    }

+ 2 - 2
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/jimeiJkEdu/JMJkEduArticleService.java

@ -884,7 +884,7 @@ public class JMJkEduArticleService extends BaseService {
     */
    public void saveArticle(String userCode,String articleTitle,String articleType,Integer	articlelevel,String	secondLevelCategoryId,String image,
                            String	secondLevelCategoryName,String firstLevelCategoryId,String firstLevelCategoryName,String content,String operatorRoleCode,
                            String opertorRoleLevel,Integer userScope,String articleId) throws Exception {
                            String opertorRoleLevel,Integer userScope,String articleId,Integer roleType) throws Exception {
        if(!StringUtils.isEmpty(image)){
@ -901,7 +901,7 @@ public class JMJkEduArticleService extends BaseService {
        }
        thirdJkEduArticleService.saveArticle(userCode,articleTitle,articleType,articlelevel,secondLevelCategoryId,image,
                secondLevelCategoryName,firstLevelCategoryId,firstLevelCategoryName,content,operatorRoleCode,opertorRoleLevel,
                userScope,isAuthentication,articleId);
                userScope,isAuthentication,articleId,roleType);
    }
    /**

+ 2 - 3
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/third/jkEduArticle/ThirdJkEduArticleService.java

@ -378,7 +378,7 @@ public class ThirdJkEduArticleService extends BaseService {
     */
    public void saveArticle(String userCode,String articleTitle,String articleType,Integer	articlelevel,String	secondLevelCategoryId,String newUrl,
                                 String	secondLevelCategoryName,String firstLevelCategoryId,String firstLevelCategoryName,String content,
                                 String operatorRoleCode,String opertorRoleLevel,Integer userScope,Integer isAuthentication,String articleId) throws Exception {
                                 String operatorRoleCode,String opertorRoleLevel,Integer userScope,Integer isAuthentication,String articleId,Integer roleType) throws Exception {
        String response = "";
        JSONObject json = null;
@ -411,6 +411,7 @@ public class ThirdJkEduArticleService extends BaseService {
            param.put("operatorRoleCode", operatorRoleCode);
            param.put("opertorRoleLevel", opertorRoleLevel);
            param.put("userScope", userScope);
            param.put("roleType", roleType);
            param.put("isAuthentication", isAuthentication);
            if(isAuthentication==1){
                param.put("authentication", doctor.getHospital());
@ -483,9 +484,7 @@ public class ThirdJkEduArticleService extends BaseService {
     * @param secondLevelCategoryId
     * @param insertTimeStart
     * @param insertTimeEnd
     * @param articlelevel
     * @param articleTitle
     * @param userCode
     * @param isAuthentication
     * @param currentUserRole
     * @param currentUserRoleLevel

+ 6 - 4
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/web/doctor/jimeiJkEduPC/DoctorJMJkEduArticlePCController.java

@ -48,11 +48,13 @@ public class DoctorJMJkEduArticlePCController extends BaseController {
                               @ApiParam(name = "imageUrl", value = "文章封面图片地址")
                               @RequestParam(value = "imageUrl", required = false) String imageUrl,
                               @ApiParam(name = "currentUserRole", value = "当前登录的角色")
                               @RequestParam(value = "currentUserRole", required = true) String currentUserRole,
                               @RequestParam(value = "currentUserRole", required = false) String currentUserRole,
                               @ApiParam(name = "currentUserRoleLevel", value = "当前登录的角色级别")
                               @RequestParam(value = "currentUserRoleLevel", required = false )String currentUserRoleLevel,
                               @ApiParam(name = "userScope", value = "使用范围(1、全市使用,2、全区使用,3、全社区使用,4、自己使用)")
                               @RequestParam(value = "userScope", required = true) Integer userScope){
                               @RequestParam(value = "userScope", required = true) Integer userScope,
                               @ApiParam(name = "roleType", value = "1、普通医生,2、管理员")
                               @RequestParam(value = "roleType", required = false) Integer roleType){
        try {
            if(StringUtils.isEmpty(currentUserRole)){
@ -62,7 +64,7 @@ public class DoctorJMJkEduArticlePCController extends BaseController {
                currentUserRoleLevel=getCurrentRoleLevel();
            }
            jmJkEduArticleService.saveArticle(getUID(),articleTitle,articleType,articlelevel,secondLevelCategoryId,imageUrl,
                    secondLevelCategoryName,firstLevelCategoryId,firstLevelCategoryName,content,currentUserRole,currentUserRoleLevel,userScope,articleId);
                    secondLevelCategoryName,firstLevelCategoryId,firstLevelCategoryName,content,currentUserRole,currentUserRoleLevel,userScope,articleId,roleType);
            return success("添加成功!");
        }catch (Exception e){
            e.printStackTrace();
@ -119,7 +121,7 @@ public class DoctorJMJkEduArticlePCController extends BaseController {
            }
            JSONObject response = jmJkEduArticleService.queryArticlePcList(firstLevelCategoryId,secondLevelCategoryId,insertTimeStart,insertTimeEnd,articlelevel,articleTitle,
                    "379a7b9886f211e6b394fa163e424525",currentUserRole,currentUserRoleLevel,isAuthentication,isMyArticle,page,pageSize,sEcho,roleType);
                    getUID(),currentUserRole,currentUserRoleLevel,isAuthentication,isMyArticle,page,pageSize,sEcho,roleType);
            return write(200,"查询成功!","data",response);
        } catch (Exception e){