TestController.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. namespace App\Http\Controllers\Api;
  3. use App\Service\TestService;
  4. use Illuminate\Http\Request;
  5. class TestController extends BaseController
  6. {
  7. public function testdwy(Request $request){
  8. list($bool, $data) = (new TestService())->testdwy($request->all());
  9. if($bool){
  10. return $this->json_return(200,'',$data);
  11. }else{
  12. return $this->json_return(201,$data);
  13. }
  14. }
  15. public function testdwyget(Request $request){
  16. list($bool, $data) = (new TestService())->testdwyget($request->all());
  17. if($bool){
  18. return $this->json_return(200,'',$data);
  19. }else{
  20. return $this->json_return(201,$data);
  21. }
  22. }
  23. public function testdwyput(Request $request){
  24. list($bool, $data) = (new TestService())->testdwyput($request->all());
  25. if($bool){
  26. return $this->json_return(200,'',$data);
  27. }else{
  28. return $this->json_return(201,$data);
  29. }
  30. }
  31. public function test(){
  32. dd(env("maycur_appcode"),env("maycur_appsercet"),getenv("maycur_appcode"),getenv("maycur_appsercet"));
  33. }
  34. public function salesOrderGet(Request $request){
  35. $common_array = $request->common_param;
  36. list($bool, $data) = (new TestService())->salesOrderGet($request->all(),$common_array);
  37. if($bool){
  38. return $this->json_return(200,'',$data);
  39. }else{
  40. return $this->json_return(201,$data);
  41. }
  42. }
  43. public function materialAddU8(Request $request){
  44. $common_array = $request->common_param;
  45. list($bool, $data) = (new TestService())->materialAddU8($request->all(), $common_array);
  46. if($bool){
  47. return $this->json_return(200,'',$data);
  48. }else{
  49. return $this->json_return(201,$data);
  50. }
  51. }
  52. public function productInAddU8(Request $request){
  53. $common_array = $request->common_param;
  54. list($bool, $data) = (new TestService())->ProductInAddU8($request->all(), $common_array);
  55. if($bool){
  56. return $this->json_return(200,'',$data);
  57. }else{
  58. return $this->json_return(201,$data);
  59. }
  60. }
  61. public function dispatchAddU8(Request $request){
  62. $common_array = $request->common_param;
  63. list($bool, $data) = (new TestService())->DispatchAddU8($request->all(), $common_array);
  64. if($bool){
  65. return $this->json_return(200,'',$data);
  66. }else{
  67. return $this->json_return(201,$data);
  68. }
  69. }
  70. public function recordList(Request $request){
  71. list($bool, $data) = (new TestService())->recordList($request->all());
  72. if($bool){
  73. return $this->json_return(200,'',$data);
  74. }else{
  75. return $this->json_return(201,$data);
  76. }
  77. }
  78. // 仓库档案 http://localhost:8060/api/WareHouse/Get ?CodeorName=0501 为空返回所有数据
  79. // 部门档案 http://localhost:8060/api/Department/Get ?CodeorName=0501 为空返回所有数据
  80. // 人员档案 http://localhost:8060/api/Person/Get ?CodeorName=00043&bPsnPerson=1(是否业务员) 为空返回所有数据
  81. // 客户分类 http://localhost:8060/api/Customer/GetCustomerClass ?cCCCode=01 为空返回所有数据
  82. // 客户档案 http://localhost:8060/api/Customer/GetCustomerClass ?cCCCode=01 为空返回所有数据
  83. // 存货分类 http://localhost:8060/api/Inventory/GetInventoryClass ?CodeorName=0101 为空返回所有
  84. // 存货档案 http://localhost:8060/api/System/SqlQuery
  85. //{
  86. // "customSQLFileName": "U8SQL",
  87. // "customSQLPath": "U8API/Inventory/Get",
  88. // "paramObj": {
  89. // "@pagesize": 25,
  90. // "@codeorname": "0301",
  91. // "@where": "AND cInvCode = 'BB01' AND cInvName like '%交换机%'",
  92. // "@version": "7098847"
  93. // }
  94. //}
  95. // 计量单位 http://localhost:8060/api/Inventory/GetComputationUnit ?CodeorName=0502 为空返回所有数据
  96. }