Commit 45c197864e56765283410b3ab6c309aa6c7e3147
1 parent
2c20fec9
修改站点同步的bug
Showing
1 changed file
with
4 additions
and
1 deletions
src/main/java/com/cnlive/shenhe/job/UsersSiteJob.java
| ... | ... | @@ -112,11 +112,14 @@ public class UsersSiteJob { |
| 112 | 112 | if (shySitesList.isEmpty()) { |
| 113 | 113 | shySites.setCompany(company); |
| 114 | 114 | shySites.setName(company_brief); |
| 115 | + shySites.setUpdated_at(CommonUtils.getCurrentTime()); | |
| 116 | + shySites.setCreated_at(CommonUtils.getCurrentTime()); | |
| 115 | 117 | shySitesMapper.insertSelective(shySites); |
| 116 | - }else if(CommonUtils.isEmpty(shySitesList.get(0).getCompany()) || CommonUtils.isEmpty(shySitesList.get(0).getName())){ | |
| 118 | + }else if(CommonUtils.isNotNull(shySitesList.get(0))){ | |
| 117 | 119 | shySites = shySitesList.get(0); |
| 118 | 120 | shySites.setCompany(company); |
| 119 | 121 | shySites.setName(company_brief); |
| 122 | + shySites.setUpdated_at(CommonUtils.getCurrentTime()); | |
| 120 | 123 | shySitesMapper.updateByPrimaryKeySelective(shySites); |
| 121 | 124 | } |
| 122 | 125 | ... | ... |