| | |
| | | import com.yeshi.makemoney.app.entity.goldcorn.GoldCornConsumeRecord; |
| | | import com.yeshi.makemoney.app.entity.msg.UserMsg; |
| | | import com.yeshi.makemoney.app.entity.msg.UserMsgType; |
| | | import org.yeshi.utils.StringUtil; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.ArrayList; |
| | |
| | | * @param: money |
| | | **/ |
| | | |
| | | public static UserMsg createExtractFail(Long uid, BigDecimal money) { |
| | | public static UserMsg createExtractFail(Long uid, BigDecimal money,String beizhu) { |
| | | UserMsg userMsg = new UserMsg(); |
| | | userMsg.setType(UserMsgType.extract); |
| | | userMsg.setUid(uid); |
| | | List<UserMsg.UserMsgItem> contentList = new ArrayList<>(); |
| | | contentList.add(new UserMsg.UserMsgItem("提现金额", money.toString() + "元")); |
| | | contentList.add(new UserMsg.UserMsgItem("提现状态", "提现失败")); |
| | | if(!StringUtil.isNullOrEmpty(beizhu)){ |
| | | contentList.add(new UserMsg.UserMsgItem("备注", beizhu)); |
| | | } |
| | | userMsg.setContentList(contentList); |
| | | return userMsg; |
| | | } |