feat():上线操作时,更新状态为online,不返回结果到前端
This commit is contained in:
@@ -25,15 +25,13 @@ public enum WebMatOperateEnum implements IEnum<String> {
|
||||
@Override
|
||||
public void operate(WebOperateMatForm form) {
|
||||
|
||||
CrmPdiPlanVO crmPdiPlanVO = ONLINE.syncPlanStatus(form.getId(), form.getEntryMatId());
|
||||
WebSocketUtil.sendMatmapMsg(crmPdiPlanVO);
|
||||
ONLINE.syncPlanStatus(form.getId(), form.getEntryMatId());
|
||||
}
|
||||
},
|
||||
NEW("回退") {
|
||||
@Override
|
||||
public void operate(WebOperateMatForm form) {
|
||||
CrmPdiPlanVO crmPdiPlanVO = NEW.syncPlanStatus(form.getId(), form.getEntryMatId());
|
||||
WebSocketUtil.sendMatmapMsg(crmPdiPlanVO);
|
||||
NEW.syncPlanStatus(form.getId(), form.getEntryMatId());
|
||||
}
|
||||
},
|
||||
|
||||
@@ -80,10 +78,10 @@ public enum WebMatOperateEnum implements IEnum<String> {
|
||||
*
|
||||
* @param planId 计划id
|
||||
*/
|
||||
private CrmPdiPlanVO syncPlanStatus(Long planId, String coilid) {
|
||||
private void syncPlanStatus(Long planId, String coilid) {
|
||||
PdiPlanClient planClient = BeanFactory.getBean(PdiPlanClient.class);
|
||||
|
||||
return planClient.changeStatus(ChangePlanStatusForm.builder()
|
||||
planClient.changeStatus(ChangePlanStatusForm.builder()
|
||||
.operation(this.name())
|
||||
.id(planId)
|
||||
.coilId(coilid)
|
||||
|
||||
@@ -20,5 +20,5 @@ public interface CrmPdiPlanService extends IService<CrmPdiPlan> {
|
||||
|
||||
public List<CrmPdiPlanVO> listAll(PlanQueryForm form);
|
||||
|
||||
CrmPdiPlanVO updateCrmPdiPlanById(ChangePlanStatusForm form);
|
||||
void updateCrmPdiPlanById(ChangePlanStatusForm form);
|
||||
}
|
||||
|
||||
@@ -34,9 +34,9 @@ public class PdiPlanClient {
|
||||
return null;
|
||||
}
|
||||
|
||||
public CrmPdiPlanVO changeStatus(ChangePlanStatusForm form) {
|
||||
public void changeStatus(ChangePlanStatusForm form) {
|
||||
|
||||
return crmPdiPlanService.updateCrmPdiPlanById(form);
|
||||
crmPdiPlanService.updateCrmPdiPlanById(form);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -12,12 +12,14 @@ import com.fizz.business.service.CrmPdiPlanService;
|
||||
import com.fizz.business.service.ModSetupResultService;
|
||||
import com.fizz.business.vo.CrmPdiPlanVO;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class CrmPdiPlanServiceImpl extends ServiceImpl<CrmPdiPlanMapper, CrmPdiPlan> implements CrmPdiPlanService {
|
||||
|
||||
@@ -87,9 +89,10 @@ public class CrmPdiPlanServiceImpl extends ServiceImpl<CrmPdiPlanMapper, CrmPdiP
|
||||
}
|
||||
|
||||
@Override
|
||||
public CrmPdiPlanVO updateCrmPdiPlanById(ChangePlanStatusForm form) {
|
||||
public void updateCrmPdiPlanById(ChangePlanStatusForm form) {
|
||||
|
||||
if (StringUtils.compare(form.getOperation(),"ONLINE") == 0){
|
||||
log.info("上线时通知通讯程序下发设定到L1,matId: {}",form.getCoilId());
|
||||
modSetupResultService.retrySetup(form.getCoilId());
|
||||
}
|
||||
|
||||
@@ -99,7 +102,6 @@ public class CrmPdiPlanServiceImpl extends ServiceImpl<CrmPdiPlanMapper, CrmPdiP
|
||||
|
||||
this.updateById(crmPdiPlan);
|
||||
|
||||
return BeanUtil.toBean(crmPdiPlan, CrmPdiPlanVO.class);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user