瀏覽代碼

代码修改

huangwenjie 7 年之前
父節點
當前提交
cd1fdd672d

二進制
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> 
	<Sqls> 
		 <Sql name='loadAllConfigDictionary'>
		 <Sql name='loadAllConfigDictionary'>
		 <![CDATA[
		 <![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>
		</Sql>
	
	

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

@ -28,6 +28,7 @@ public class ConfigDicShoApiTest {
		InterfaceMessage im = new InterfaceMessage();
		InterfaceMessage im = new InterfaceMessage();
		JSONObject obj = new JSONObject();
		JSONObject obj = new JSONObject();
		obj.put("typeName","prio");
		obj.put("typeName","prio");
		obj.put("code","1");
		im.setParam(obj.toString());
		im.setParam(obj.toString());
		initDB();
		initDB();
		System.out.println(api.getConfigDicShoList(im));
		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 OperatorId;
	private String DictionaryText;
	private String DictionaryText;
	private String URL;
	private String URL;
	
	
	
	public String getURL() {
	public String getURL() {
		return URL;
		return URL;
@ -68,6 +68,5 @@ public class ConfigDictionary {
	public void setDictionaryText(String dictionaryText) {
	public void setDictionaryText(String dictionaryText) {
		DictionaryText = 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 CodeName;
	private String TypeName;
	private String TypeName;
	private String URL;
	private String URL;
	
	
	
	public String getURL() {
	public String getURL() {
		return URL;
		return URL;
@ -34,7 +34,5 @@ public class ConfigDictionaryShort {
	public void setCodeName(String codeName) {
	public void setCodeName(String codeName) {
		CodeName = codeName;
		CodeName = codeName;
	}
	}
	
	
	
}
}

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

@ -3,7 +3,7 @@
	<Sqls> 
	<Sqls> 
		 <Sql name='loadAllConfigDictionary'>
		 <Sql name='loadAllConfigDictionary'>
		 <![CDATA[
		 <![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>
		</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.setTitle("孕检提醒");
            message.setContent(content);
            message.setContent(content);
            message.setType(13);
            message.setType(13);
            message.setDel("1");
            messageDao.save(message);
            messageDao.save(message);
            // 推送消息给医生
            // 推送消息给医生
            pushMsgTask.put(doctor, "13", "孕检提醒", content, "");
            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")
    @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);
    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);
    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' ")
    @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
     * @param msgid
     */
     */
    public int readHealth(long 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);
        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,
    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	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)){
        if(!StringUtils.isEmpty(image)){
@ -901,7 +901,7 @@ public class JMJkEduArticleService extends BaseService {
        }
        }
        thirdJkEduArticleService.saveArticle(userCode,articleTitle,articleType,articlelevel,secondLevelCategoryId,image,
        thirdJkEduArticleService.saveArticle(userCode,articleTitle,articleType,articlelevel,secondLevelCategoryId,image,
                secondLevelCategoryName,firstLevelCategoryId,firstLevelCategoryName,content,operatorRoleCode,opertorRoleLevel,
                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,
    public void saveArticle(String userCode,String articleTitle,String articleType,Integer	articlelevel,String	secondLevelCategoryId,String newUrl,
                                 String	secondLevelCategoryName,String firstLevelCategoryId,String firstLevelCategoryName,String content,
                                 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 = "";
        String response = "";
        JSONObject json = null;
        JSONObject json = null;
@ -411,6 +411,7 @@ public class ThirdJkEduArticleService extends BaseService {
            param.put("operatorRoleCode", operatorRoleCode);
            param.put("operatorRoleCode", operatorRoleCode);
            param.put("opertorRoleLevel", opertorRoleLevel);
            param.put("opertorRoleLevel", opertorRoleLevel);
            param.put("userScope", userScope);
            param.put("userScope", userScope);
            param.put("roleType", roleType);
            param.put("isAuthentication", isAuthentication);
            param.put("isAuthentication", isAuthentication);
            if(isAuthentication==1){
            if(isAuthentication==1){
                param.put("authentication", doctor.getHospital());
                param.put("authentication", doctor.getHospital());
@ -483,9 +484,7 @@ public class ThirdJkEduArticleService extends BaseService {
     * @param secondLevelCategoryId
     * @param secondLevelCategoryId
     * @param insertTimeStart
     * @param insertTimeStart
     * @param insertTimeEnd
     * @param insertTimeEnd
     * @param articlelevel
     * @param articleTitle
     * @param articleTitle
     * @param userCode
     * @param isAuthentication
     * @param isAuthentication
     * @param currentUserRole
     * @param currentUserRole
     * @param currentUserRoleLevel
     * @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 = "文章封面图片地址")
                               @ApiParam(name = "imageUrl", value = "文章封面图片地址")
                               @RequestParam(value = "imageUrl", required = false) String imageUrl,
                               @RequestParam(value = "imageUrl", required = false) String imageUrl,
                               @ApiParam(name = "currentUserRole", value = "当前登录的角色")
                               @ApiParam(name = "currentUserRole", value = "当前登录的角色")
                               @RequestParam(value = "currentUserRole", required = true) String currentUserRole,
                               @RequestParam(value = "currentUserRole", required = false) String currentUserRole,
                               @ApiParam(name = "currentUserRoleLevel", value = "当前登录的角色级别")
                               @ApiParam(name = "currentUserRoleLevel", value = "当前登录的角色级别")
                               @RequestParam(value = "currentUserRoleLevel", required = false )String currentUserRoleLevel,
                               @RequestParam(value = "currentUserRoleLevel", required = false )String currentUserRoleLevel,
                               @ApiParam(name = "userScope", value = "使用范围(1、全市使用,2、全区使用,3、全社区使用,4、自己使用)")
                               @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 {
        try {
            if(StringUtils.isEmpty(currentUserRole)){
            if(StringUtils.isEmpty(currentUserRole)){
@ -62,7 +64,7 @@ public class DoctorJMJkEduArticlePCController extends BaseController {
                currentUserRoleLevel=getCurrentRoleLevel();
                currentUserRoleLevel=getCurrentRoleLevel();
            }
            }
            jmJkEduArticleService.saveArticle(getUID(),articleTitle,articleType,articlelevel,secondLevelCategoryId,imageUrl,
            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("添加成功!");
            return success("添加成功!");
        }catch (Exception e){
        }catch (Exception e){
            e.printStackTrace();
            e.printStackTrace();
@ -119,7 +121,7 @@ public class DoctorJMJkEduArticlePCController extends BaseController {
            }
            }
            JSONObject response = jmJkEduArticleService.queryArticlePcList(firstLevelCategoryId,secondLevelCategoryId,insertTimeStart,insertTimeEnd,articlelevel,articleTitle,
            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);
            return write(200,"查询成功!","data",response);
        } catch (Exception e){
        } catch (Exception e){