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.
77 lines
2.5 KiB
77 lines
2.5 KiB
package com.gaotao.modules.base.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.gaotao.common.utils.R;
|
|
import com.gaotao.modules.base.entity.LabelSettingData;
|
|
import com.gaotao.modules.base.service.BaseService;
|
|
import com.gaotao.modules.print.entity.DumpPrint;
|
|
import com.gaotao.modules.print.service.PrintService;
|
|
import com.gaotao.modules.print.service.SysUserPrinterService;
|
|
import com.gaotao.modules.schedule.data.ScheduleData;
|
|
import com.gaotao.modules.schedule.data.SearchScheduleData;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.ui.Model;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import javax.servlet.http.HttpSession;
|
|
import java.util.List;
|
|
|
|
|
|
@RestController
|
|
@RequestMapping("/label/setting")
|
|
public class LabelSettingController {
|
|
|
|
@Autowired
|
|
private BaseService baseService;
|
|
|
|
/**
|
|
* @description: 查询打印标签的定义参数
|
|
* @author LR
|
|
* @date 2022/12/27 17:49
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "getLabelSettingList")
|
|
public R getLabelSettingList(@RequestBody LabelSettingData inData){
|
|
List<LabelSettingData> resultList = baseService.getLabelSettingList(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "操作成功!")
|
|
.put("rows", resultList)
|
|
.put("total", resultList.size());
|
|
}
|
|
|
|
/**
|
|
* @description: 插入标签自定义的数据
|
|
* @author LR
|
|
* @date 2022/12/28 15:29
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "insertLabelSetting")
|
|
public R insertLabelSetting(@RequestBody LabelSettingData inData){
|
|
baseService.insertLabelSetting(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "操作成功!");
|
|
}
|
|
|
|
/**
|
|
* @description: 修改标签自定义的数据
|
|
* @author LR
|
|
* @date 2022/12/28 15:30
|
|
* @version 1.0
|
|
*/
|
|
@RequestMapping(value = "updateLabelSetting")
|
|
public R updateLabelSetting(@RequestBody LabelSettingData inData){
|
|
baseService.updateLabelSetting(inData);
|
|
return R.ok()
|
|
.put("code", 200)
|
|
.put("msg", "操作成功!");
|
|
}
|
|
|
|
}
|