荣鑫后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.5 KiB

  1. package com.gaotao.modules.base.controller;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.gaotao.common.utils.R;
  4. import com.gaotao.modules.base.entity.LabelSettingData;
  5. import com.gaotao.modules.base.service.BaseService;
  6. import com.gaotao.modules.print.entity.DumpPrint;
  7. import com.gaotao.modules.print.service.PrintService;
  8. import com.gaotao.modules.print.service.SysUserPrinterService;
  9. import com.gaotao.modules.schedule.data.ScheduleData;
  10. import com.gaotao.modules.schedule.data.SearchScheduleData;
  11. import org.springframework.beans.factory.annotation.Autowired;
  12. import org.springframework.beans.factory.annotation.Value;
  13. import org.springframework.stereotype.Controller;
  14. import org.springframework.ui.Model;
  15. import org.springframework.web.bind.annotation.GetMapping;
  16. import org.springframework.web.bind.annotation.RequestBody;
  17. import org.springframework.web.bind.annotation.RequestMapping;
  18. import org.springframework.web.bind.annotation.RestController;
  19. import javax.servlet.http.HttpSession;
  20. import java.util.List;
  21. @RestController
  22. @RequestMapping("/label/setting")
  23. public class LabelSettingController {
  24. @Autowired
  25. private BaseService baseService;
  26. /**
  27. * @description: 查询打印标签的定义参数
  28. * @author LR
  29. * @date 2022/12/27 17:49
  30. * @version 1.0
  31. */
  32. @RequestMapping(value = "getLabelSettingList")
  33. public R getLabelSettingList(@RequestBody LabelSettingData inData){
  34. List<LabelSettingData> resultList = baseService.getLabelSettingList(inData);
  35. return R.ok()
  36. .put("code", 200)
  37. .put("msg", "操作成功!")
  38. .put("rows", resultList)
  39. .put("total", resultList.size());
  40. }
  41. /**
  42. * @description: 插入标签自定义的数据
  43. * @author LR
  44. * @date 2022/12/28 15:29
  45. * @version 1.0
  46. */
  47. @RequestMapping(value = "insertLabelSetting")
  48. public R insertLabelSetting(@RequestBody LabelSettingData inData){
  49. baseService.insertLabelSetting(inData);
  50. return R.ok()
  51. .put("code", 200)
  52. .put("msg", "操作成功!");
  53. }
  54. /**
  55. * @description: 修改标签自定义的数据
  56. * @author LR
  57. * @date 2022/12/28 15:30
  58. * @version 1.0
  59. */
  60. @RequestMapping(value = "updateLabelSetting")
  61. public R updateLabelSetting(@RequestBody LabelSettingData inData){
  62. baseService.updateLabelSetting(inData);
  63. return R.ok()
  64. .put("code", 200)
  65. .put("msg", "操作成功!");
  66. }
  67. }