BackgroundProcessingController.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package com.steerinfo.dil.controller;
  2. import com.steerinfo.dil.mapper.BackgroundProcessingMapper;
  3. import com.steerinfo.dil.mapper.OmstruckOrderMapper;
  4. import com.steerinfo.dil.mapper.UniversalMapper;
  5. import com.steerinfo.dil.service.impl.BackgroundProcessingServiceImpl;
  6. import com.steerinfo.dil.util.BaseRESTfulController;
  7. import com.steerinfo.dil.util.DataChange;
  8. import com.steerinfo.framework.controller.RESTfulResult;
  9. import io.swagger.annotations.ApiOperation;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. import org.springframework.transaction.annotation.Transactional;
  12. import org.springframework.web.bind.annotation.PostMapping;
  13. import org.springframework.web.bind.annotation.RequestBody;
  14. import org.springframework.web.bind.annotation.RequestMapping;
  15. import org.springframework.web.bind.annotation.RestController;
  16. import java.util.ArrayList;
  17. import java.util.List;
  18. import java.util.Map;
  19. /*
  20. * 后台处理程序
  21. */
  22. @RestController
  23. @RequestMapping("${api.version}/bp")
  24. public class BackgroundProcessingController extends BaseRESTfulController {
  25. @Autowired
  26. private BackgroundProcessingMapper backgroundProcessingMapper;
  27. @Autowired
  28. private BackgroundProcessingServiceImpl backgroundProcessingService;
  29. @Autowired
  30. private OmstruckOrderMapper omstruckOrderMapper;
  31. @Autowired
  32. private UniversalMapper universalMapper;
  33. @ApiOperation("登录接口")
  34. @PostMapping("bpLogin")
  35. public RESTfulResult bpLogin(String userName,String password,String app_code) {
  36. backgroundProcessingService.bpLogin(userName);
  37. return success();
  38. }
  39. }