| | |
| | | import doumeemes.core.model.ApiResponse; |
| | | import doumeemes.core.model.LoginUserInfo; |
| | | import doumeemes.core.utils.Constants; |
| | | import doumeemes.core.utils.DateUtil; |
| | | import doumeemes.dao.business.dto.CompanyInitDataDTO; |
| | | import doumeemes.dao.ext.dto.WxLoginDTO; |
| | | import doumeemes.dao.ext.dto.WxLoginOutDTO; |
| | | import doumeemes.dao.ext.vo.WxLoginVO; |
| | | import doumeemes.dao.system.dto.LoginDTO; |
| | | import doumeemes.dao.system.dto.UpdatePwdDto; |
| | | import doumeemes.service.business.BizLingyangService; |
| | | import doumeemes.service.system.SystemLoginService; |
| | | import doumeemes.service.system.WxLoginService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Date; |
| | | import java.util.Iterator; |
| | | |
| | | /** |
| | |
| | | @Autowired |
| | | private WxLoginService wxLoginService; |
| | | |
| | | @Autowired |
| | | BizLingyangService bizLingyangService; |
| | | @PreventRepeat(limit = 10, lockTime = 10000) |
| | | @ApiOperation("登录") |
| | | @PostMapping("/login") |
| | | public ApiResponse<String> login (@Validated @RequestBody LoginDTO dto, HttpServletRequest request) { |
| | | return ApiResponse.success(systemLoginService.loginByPassword(dto, request)); |
| | | } |
| | | @PreventRepeat(limit = 10, lockTime = 10000) |
| | | @ApiOperation("手动同步某天的数据(yyyy-MM-dd HH:mm:ss)") |
| | | @GetMapping("/syncLingCountData") |
| | | public ApiResponse<String> syncLingCountData (@RequestParam String dateStr, HttpServletRequest request) { |
| | | Date date = DateUtil.getDateFromString(dateStr); |
| | | bizLingyangService.syncLingData(date); |
| | | return ApiResponse.success("操作完成"); |
| | | } |
| | | |
| | | @PreventRepeat(limit = 10, lockTime = 10000) |
| | | @ApiOperation("平台登录") |