| | |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.openApi.entity.dto.CommonResponse; |
| | | import com.vincent.rsf.openApi.entity.phyz.*; |
| | | import com.vincent.rsf.openApi.service.phyz.ErpReportService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | |
| | | @Api("银座新工厂(五期)ERP接口") |
| | | @Slf4j |
| | | public class ERPController { |
| | | |
| | | @Resource |
| | | private ErpReportService erpReportService; |
| | | |
| | | |
| | | @ApiOperation("仓库信息同步") |
| | | @PostMapping("/wareHouse/sync") |
| | |
| | | return new JSONArray(); |
| | | } |
| | | |
| | | // region 测试推送功能 |
| | | @ApiOperation("登录") |
| | | @PostMapping("/loginBySign") |
| | | public CommonResponse loginBySign(@RequestBody Object objParams) { |
| | | try { |
| | | erpReportService.loginBySign(); |
| | | } catch (Exception e) { |
| | | log.error("erp, loginBySign", e); |
| | | } |
| | | return CommonResponse.ok(); |
| | | } |
| | | |
| | | @ApiOperation("入/出库任务回调") |
| | | @PostMapping("/reportInOrOutBound") |
| | | public CommonResponse reportInOrOutBound(@RequestBody Object objParams) { |
| | | try { |
| | | erpReportService.reportInOrOutBound(objParams); |
| | | } catch (Exception e) { |
| | | log.error("erp, reportInOrOutBound", e); |
| | | } |
| | | return CommonResponse.ok(); |
| | | } |
| | | // endregion |
| | | |
| | | } |