|
@@ -9,6 +9,7 @@ import com.rongwei.bsentity.domain.ZhcxPmqManagementDo;
|
|
import com.rongwei.bsentity.domain.ZhcxPmqManagementRecoredDo;
|
|
import com.rongwei.bsentity.domain.ZhcxPmqManagementRecoredDo;
|
|
import com.rongwei.bsentity.vo.pmq.ZhcxPmqManagementDistributionDetailVo;
|
|
import com.rongwei.bsentity.vo.pmq.ZhcxPmqManagementDistributionDetailVo;
|
|
import com.rongwei.rwcommon.base.R;
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
|
+import com.rongwei.rwcommon.utils.StringUtils;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -95,8 +96,8 @@ public class ZhcxPmqManagementDistributionDetailServiceImpl extends ServiceImpl<
|
|
public R reassignment(Map<String, Object> map) {
|
|
public R reassignment(Map<String, Object> map) {
|
|
String id = (String) map.get("id");
|
|
String id = (String) map.get("id");
|
|
// 原始改派人
|
|
// 原始改派人
|
|
- String older = (String) map.get("older");
|
|
|
|
- String olderId = (String) map.get("olderId");
|
|
|
|
|
|
+ //String older = (String) map.get("older");
|
|
|
|
+ //String olderId = (String) map.get("olderId");
|
|
ZhcxPmqManagementDistributionDetailDo detailDo = this.getById(id);
|
|
ZhcxPmqManagementDistributionDetailDo detailDo = this.getById(id);
|
|
// 新的改派人
|
|
// 新的改派人
|
|
String confirmer = detailDo.getConfirmer();
|
|
String confirmer = detailDo.getConfirmer();
|
|
@@ -126,4 +127,33 @@ public class ZhcxPmqManagementDistributionDetailServiceImpl extends ServiceImpl<
|
|
return R.ok(list);
|
|
return R.ok(list);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public R updateDetailStatus(Map<String, Object> map) {
|
|
|
|
+ // 第三层表id
|
|
|
|
+ String id = (String) map.get("id");
|
|
|
|
+ ZhcxPmqManagementDistributionDetailDo detailDo = this.getById(id);
|
|
|
|
+ if(Objects.isNull(detailDo)){
|
|
|
|
+ return R.error("数据异常");
|
|
|
|
+ }
|
|
|
|
+ // 新旧状态
|
|
|
|
+ String olderStatus = (String) map.get("olderStatus");
|
|
|
|
+ String status = detailDo.getStatus();
|
|
|
|
+ // 第2.5层数据
|
|
|
|
+ /*ZhcxPmqManagementDistributionDo distributionDo = managementDistributionService.getById(detailDo.getDistributid());
|
|
|
|
+ distributionDo.setStatus(status);
|
|
|
|
+ distributionDo.setRemark("修改关闭状态");
|
|
|
|
+ managementDistributionService.updateById(distributionDo);*/
|
|
|
|
+ // 插入改派日志
|
|
|
|
+ String description = "修改关闭状态:"+olderStatus+"->"+status;
|
|
|
|
+ if(StringUtils.isNotBlank(detailDo.getDescription())){
|
|
|
|
+ description = description +";备注说明:"+detailDo.getDescription();
|
|
|
|
+ }
|
|
|
|
+ logService.logFoThirdFloor(id,"修改状态",description);
|
|
|
|
+ // 将备注说明制空
|
|
|
|
+ detailDo.setDescription(" ");
|
|
|
|
+ this.updateById(detailDo);
|
|
|
|
+ // 更新关闭状态
|
|
|
|
+ return this.updateClosedStateInThirdFloor(id);
|
|
|
|
+ }
|
|
}
|
|
}
|