| | |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.MultiValueMap; |
| | | import org.springframework.web.client.RestTemplate; |
| | | |
| | |
| | | * @param xsfsQktj |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void saveOrUpdateData(XsfsQktjVO xsfsQktj) { |
| | | // 参数拼接 |
| | | StringBuilder builder = new StringBuilder("?"); |
| | |
| | | XsfsQktj xsfsQktjBy = baseMapper.selectXsfsQktjBy(adCode,xsfsQktj.getQueryTime()); |
| | | if (null!=xsfsQktjBy){ |
| | | // 跳出本次循环 |
| | | //更新 |
| | | setXsfsQktjInfo(xsfsQktjBy,jsonArray,i,xsfsQktj.getQueryTime()); |
| | | updateById(xsfsQktjBy); |
| | | continue; |
| | | } |
| | | XsfsQktj qkTj = new XsfsQktj(); |