|
|
@ -1,6 +1,9 @@ |
|
|
|
package com.zc.business.service.impl; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult; |
|
|
|
import com.ruoyi.common.utils.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import com.zc.business.mapper.DcEventImportantMapper; |
|
|
@ -62,13 +65,16 @@ public class DcEventImportantServiceImpl implements IDcEventImportantService |
|
|
|
* @return 结果 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public int updateDcEventImportant(DcEventImportant dcEventImportant) |
|
|
|
public AjaxResult updateDcEventImportant(DcEventImportant dcEventImportant) |
|
|
|
{ |
|
|
|
if (StringUtils.isEmpty(dcEventImportant.getEventId())){ |
|
|
|
return AjaxResult.error("事件id不能为空"); |
|
|
|
} |
|
|
|
int i = dcEventImportantMapper.updateDcEventImportant(dcEventImportant); |
|
|
|
if (i < 1){ |
|
|
|
i = dcEventImportantMapper.insertDcEventImportant(dcEventImportant); |
|
|
|
dcEventImportantMapper.insertDcEventImportant(dcEventImportant); |
|
|
|
} |
|
|
|
return i; |
|
|
|
return AjaxResult.success("侧重要素添加成功"); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|