|
|
@ -186,11 +186,14 @@ public class AiCompareServiceImpl implements IAiCompareService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Boolean updateStatus(Long id, String status) { |
|
|
|
AiCompareEntity aiCompareEntity =new AiCompareEntity(); |
|
|
|
aiCompareEntity.setId(id); |
|
|
|
aiCompareEntity.setStatus(status); |
|
|
|
return aiCompareMapper.updateById(aiCompareEntity)>0; |
|
|
|
public Boolean updateStatus(Long id) { |
|
|
|
AiCompareEntity aiCompareEntity = aiCompareMapper.selectById(id); |
|
|
|
Boolean falg=false; |
|
|
|
if(aiCompareEntity!=null&& ObjectUtil.equals(aiCompareEntity.getStatus(),AiCompareStatusConstants.COMPARE_STATUS_2)){ |
|
|
|
aiCompareEntity.setStatus(AiCompareStatusConstants.COMPARE_STATUS_4); |
|
|
|
falg= aiCompareMapper.updateById(aiCompareEntity)>0; |
|
|
|
} |
|
|
|
return falg; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|