|
|
@@ -353,10 +353,21 @@ public class LifeUserViolationServiceImpl extends ServiceImpl<LifeUserViolationM
|
|
|
|
|
|
@Override
|
|
|
public void approve(int id, String processingStatus, String reportResult) {
|
|
|
+ if(id==0 || StringUtils.isBlank(processingStatus)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
LifeUserViolation v = lifeUserViolationMapper.selectById(id);
|
|
|
v.setProcessingStatus(processingStatus);
|
|
|
v.setProcessingTime(new Date());
|
|
|
- v.setReportResult(reportResult);
|
|
|
+ if(StringUtils.isNotBlank(reportResult)){
|
|
|
+ v.setReportResult(reportResult);
|
|
|
+ } else if(processingStatus.equals("1")){
|
|
|
+ v.setReportResult("经审核,举报属实,现已处理");
|
|
|
+ } else {
|
|
|
+ v.setReportResult("经审核,举报属实,现已处理/暂未发现违规行为");
|
|
|
+ }
|
|
|
+
|
|
|
// 举报时间
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
SimpleDateFormat simpleDateFormats = new SimpleDateFormat("yyyy-MM-dd");
|