Company.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. /*
  3. * @Author: wang jun
  4. * @Date: 2022-01-18 10:57:14
  5. * @Last Modified by: wang jun
  6. * @Last Modified time: 2022-01-19 15:56:26
  7. * 微信类
  8. */
  9. namespace app\index\controller;
  10. use app\index\logic\companylogic;
  11. use think\Controller;
  12. class Company extends Base
  13. {
  14. /**
  15. * 新建数据
  16. * 20220118
  17. * wj
  18. */
  19. public function newinfo()
  20. {
  21. $param = request()->param();
  22. $l_c = new companylogic();
  23. $result = $l_c->newinfo($param);
  24. if (1 != $result['status']) {
  25. return backjson(0, $result['msg']);
  26. }
  27. return backjson(200, $result['data']);
  28. }
  29. /**
  30. * 根据id获取信息
  31. * 20220118
  32. * wj
  33. */
  34. public function getinfobyid()
  35. {
  36. $param = request()->param();
  37. $l_c = new companylogic();
  38. $result = $l_c->getinfobyid($param);
  39. if (1 != $result['status']) {
  40. return backjson(0, $result['msg']);
  41. }
  42. return backjson(200, $result['data']);
  43. }
  44. /**
  45. * 根据id修改信息
  46. * 20220118
  47. * wj
  48. */
  49. public function updatebyid()
  50. {
  51. $param = request()->param();
  52. $l_c = new companylogic();
  53. $result = $l_c->updatebyid($param);
  54. if (1 != $result['status']) {
  55. return backjson(0, $result['msg']);
  56. }
  57. return backjson(200, $result['data']);
  58. }
  59. /**
  60. * 根据id获取全部信息 包括岗位
  61. * 20220118
  62. * wj
  63. */
  64. public function getinfowitchinventbyid()
  65. {
  66. $param = request()->param();
  67. $l_c = new companylogic();
  68. $result = $l_c->getinfowitchinventbyid($param);
  69. if (1 != $result['status']) {
  70. return backjson(0, $result['msg']);
  71. }
  72. return backjson(200, $result['data']);
  73. }
  74. /**
  75. * 获取本次活动全部公司总数
  76. * 20220122
  77. * wj
  78. */
  79. public function getcountbyparty()
  80. {
  81. $param = request()->param();
  82. $l_c = new companylogic();
  83. $result = $l_c->getcountbyparty($param);
  84. if (1 != $result['status']) {
  85. return backjson(0, $result['msg']);
  86. }
  87. return backjson(200, $result['data']);
  88. }
  89. /**
  90. * 审核公司
  91. * 20220208
  92. * wj
  93. */
  94. public function auditcompany()
  95. {
  96. $param = request()->param();
  97. $l_c = new companylogic();
  98. $result = $l_c->auditcompany($param);
  99. if (1 != $result['status']) {
  100. return backjson(0, $result['msg']);
  101. }
  102. return backjson(200, $result['data']);
  103. }
  104. }