修改--审核通过/不通过修改通知消息
This commit is contained in:
parent
c487fc2922
commit
d9ae55ada9
@ -323,18 +323,38 @@ public class SysWorkReviewController extends BaseController {
|
||||
//------------------------------新建系统消息----------------------------------------
|
||||
SysUserNotification sysUserNotification = new SysUserNotification();
|
||||
|
||||
|
||||
// 作品关联的资源位
|
||||
List<SysSource> sysSourceList = sysSourceService.getSysSourceByWorkId(workId);
|
||||
|
||||
// key 为city+scenic, value为资源位part+c_x+c_y集合
|
||||
Map<String, List<String>> mapSource = new HashMap<>();
|
||||
Map<String, String> mapTime = new HashMap<>();
|
||||
|
||||
for(SysSource sysSource:sysSourceList){
|
||||
List<String> valueList = mapSource.computeIfAbsent(sysSource.getCity()+sysSource.getScenic(), k -> new ArrayList<>());
|
||||
// 添加资源位坐标
|
||||
String value = sysSource.getPart()+String.format("%2d", sysSource.getcX())+String.format("%2d", sysSource.getcY());
|
||||
valueList.add(value); // 直接添加到 List
|
||||
mapTime.put(sysSource.getCity()+sysSource.getScenic(), sysSource.getStartTime()+"至"+sysSource.getEndTime());
|
||||
}
|
||||
|
||||
String msg = "";
|
||||
// 审核通过
|
||||
if(workStatus.equals("3")){
|
||||
sysUserNotification.setType("3");
|
||||
msg = "作品<<" + userWork.getWorkName() + ">>审核通过";
|
||||
|
||||
msg = String.format("您的作品<<%s>>已顺利通过审核,", userWork.getWorkName());
|
||||
for(String key:mapSource.keySet()){
|
||||
msg = msg + String.format("正式发布于%s%s进行展示,", key, String.join("、 ", mapSource.get(key))) + mapTime.get(key) ;
|
||||
}
|
||||
msg = msg + String.format("诚邀您前往%s,近距离感受作品的魅力.", String.join("、 ", mapSource.keySet()));
|
||||
msg = msg + "\n温馨提示:作品审核通过后,建议尽量保持内容原貌,避免二次修改.如需调整,作品将触发重新审核流程.可能影响展示进度与效果.感谢您的理解与配合! ";
|
||||
|
||||
}
|
||||
// 审核不通过
|
||||
else if(workStatus.equals("4")){
|
||||
sysUserNotification.setType("4");
|
||||
msg = "作品<<" + userWork.getWorkName() + ">>审核不通过";
|
||||
msg = "很遗憾地通知您,您提交的<<" + userWork.getWorkName() + "在审核过程中未能通过,主要原因是内容涉及了不符合平台规定的违法或敏感字样,请重新提交审核";
|
||||
}
|
||||
else{
|
||||
return error("请选择审核状态");
|
||||
|
||||
@ -98,4 +98,9 @@ public interface SysSourceMapper
|
||||
* 根据订单返回资源位坐标
|
||||
* */
|
||||
public List<SourceCoordinateDto> getSourceCoordinateByOrderId(@Param("orderId") Long orderId);
|
||||
|
||||
/**
|
||||
* 根据work_id 返回资源位
|
||||
* */
|
||||
public List<SysSource> getSysSourceByWorkId(@Param("workId") Long workId);
|
||||
}
|
||||
|
||||
@ -111,4 +111,10 @@ public interface ISysSourceService
|
||||
* 根据订单返回资源位坐标
|
||||
* */
|
||||
public List<SourceCoordinateDto> getSourceCoordinateByOrderId(Long orderId);
|
||||
|
||||
|
||||
/**
|
||||
* 根据work_id 返回资源位
|
||||
* */
|
||||
public List<SysSource> getSysSourceByWorkId(Long workId);
|
||||
}
|
||||
|
||||
@ -159,4 +159,12 @@ public class SysSourceServiceImpl implements ISysSourceService
|
||||
public List<SourceCoordinateDto> getSourceCoordinateByOrderId(Long orderId){
|
||||
return sysSourceMapper.getSourceCoordinateByOrderId(orderId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据work_id 返回资源位
|
||||
* */
|
||||
@Override
|
||||
public List<SysSource> getSysSourceByWorkId(Long workId){
|
||||
return sysSourceMapper.getSysSourceByWorkId(workId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -229,6 +229,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
left join sys_source s on oi.source_id = s.source_id
|
||||
where so.order_id = #{orderId}
|
||||
</select>
|
||||
<select id="getSysSourceByWorkId" resultMap="SysSourceResult">
|
||||
select * from sys_source where work_id = #{workId}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertSysSource" parameterType="SysSource" useGeneratedKeys="true" keyProperty="sourceId">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user