增加消息板块
This commit is contained in:
		@ -0,0 +1,70 @@
 | 
			
		||||
package com.ruoyi.common.constants;
 | 
			
		||||
 | 
			
		||||
import java.util.Map;
 | 
			
		||||
 | 
			
		||||
public class WgzAndBgtMessageConstant {
 | 
			
		||||
	// 公共常量
 | 
			
		||||
	public static final  String USERTYPE_SYSTEM = "0"; //系统
 | 
			
		||||
	public static final  String USERTYPE_WGZ = "1"; //务工者
 | 
			
		||||
	public static final  String USERTYPE_BGT = "2";	//包工头
 | 
			
		||||
 | 
			
		||||
	public static final  String LARGE_APPLY = "0"; //大类型-报名
 | 
			
		||||
	public static final  String LARGE_SALARY = "1"; //大类型-工资
 | 
			
		||||
	public static final  String LARGE_OTHER = "2";	//大类型-其它
 | 
			
		||||
	public static final  String SMALL_CARD = "0"; //小类型-补卡
 | 
			
		||||
	public static final  String SMALL_SYSTEM = "1"; //小类型-系统
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * =====================================================务工者=====================================================
 | 
			
		||||
	 * =====================================================务工者=====================================================
 | 
			
		||||
	 * =====================================================务工者=====================================================
 | 
			
		||||
	 */
 | 
			
		||||
 | 
			
		||||
	//【报名】系统给务工者提示
 | 
			
		||||
	public static final String WGZ_SYSTEM_HEADLINE_APPLY = "您已申请【%s】项目!";
 | 
			
		||||
	public static final String WGZ_SYSTEM_SUBHEADING_APPLY = "您已成功申请到【%s】项目,请耐心等待回复!";
 | 
			
		||||
	//【报名】务工者给包工头提示
 | 
			
		||||
	public static final String WGZ_HEADLINE_APPLY = "务工者【%s】正在向你申请【%s】的工作岗位!";
 | 
			
		||||
	public static final String WGZ__SUBHEADING_APPLY = "务工者【%s】正在向你申请【%s】岗位,您可点击查看更多信息!";
 | 
			
		||||
 | 
			
		||||
	//务工者消息返回
 | 
			
		||||
	public static String wgzMessage(Map<String, String> mp, String type) {
 | 
			
		||||
		switch (type){
 | 
			
		||||
			case "1":
 | 
			
		||||
				return String.format(WGZ_SYSTEM_HEADLINE_APPLY, mp.get("projectName"));
 | 
			
		||||
			case "2":
 | 
			
		||||
				return String.format(WGZ_SYSTEM_SUBHEADING_APPLY, mp.get("projectName"));
 | 
			
		||||
			case "3":
 | 
			
		||||
				return String.format(WGZ_HEADLINE_APPLY, mp.get("userName"), mp.get("post"));
 | 
			
		||||
			case "4":
 | 
			
		||||
				return String.format(WGZ__SUBHEADING_APPLY, mp.get("userName"),mp.get("post"));
 | 
			
		||||
			default:
 | 
			
		||||
				return "未知类型";
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * =====================================================包工头=====================================================
 | 
			
		||||
	 * =====================================================包工头=====================================================
 | 
			
		||||
	 * =====================================================包工头=====================================================
 | 
			
		||||
	 */
 | 
			
		||||
 | 
			
		||||
	public static final String BGT_HEADLINE_APPLY = "您申请的【%s】项目,已得到回复!";
 | 
			
		||||
	public static final String BGT_SUBHEADING_APPLY = "您申请的【%s】项目,已经过审核人【%s】同意!";
 | 
			
		||||
 | 
			
		||||
	//包工头消息返回
 | 
			
		||||
	public static String bgtMessage(Map<String, String> mp, String type) {
 | 
			
		||||
		switch (type){
 | 
			
		||||
			case "1":
 | 
			
		||||
				return String.format(BGT_HEADLINE_APPLY, mp.get("projectName"));
 | 
			
		||||
			case "2":
 | 
			
		||||
				return String.format(BGT_SUBHEADING_APPLY, mp.get("projectName"),mp.get("auditor"));
 | 
			
		||||
			default:
 | 
			
		||||
				return "未知类型";
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user