| | |
| | | import org.springblade.modules.performance.entity.Performance; |
| | | import org.springblade.modules.performance.service.IPerformanceService; |
| | | import org.springblade.modules.performance.vo.PerformanceVO; |
| | | import org.springblade.modules.system.service.MyAsyncService; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | |
| | | public class PerformanceController extends BladeController { |
| | | |
| | | private final IPerformanceService performanceService; |
| | | |
| | | private final MyAsyncService myAsyncService; |
| | | /** |
| | | * 详情 |
| | | */ |
| | |
| | | "'" + performance.getAchievements() + "'" + "," + |
| | | "'" + new SimpleDateFormat("yyyy-MM-dd").format(performance.getTime()) + "'" + "," + |
| | | "'" + performance.getScore() + "'" + ")"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.dataSync(s1); |
| | | return R.status(save); |
| | | } |
| | | |
| | |
| | | ",time = " + "'" + new SimpleDateFormat("yyyy-MM-dd").format(performance.getTime()) + "'" + |
| | | ",score = " + "'" + performance.getScore() + "'" + |
| | | " " + "where id = " + "'" + performance.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.dataSync(s1); |
| | | return R.status(b); |
| | | } |
| | | |