Company.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. }