6 changed files with 270 additions and 0 deletions
-
77src/main/java/com/gaotao/modules/base/controller/LabelSettingController.java
-
31src/main/java/com/gaotao/modules/base/dao/BaseMapper.java
-
65src/main/java/com/gaotao/modules/base/entity/LabelSettingData.java
-
23src/main/java/com/gaotao/modules/base/service/BaseService.java
-
34src/main/java/com/gaotao/modules/base/service/Impl/BaseServiceImpl.java
-
40src/main/resources/mapper/base/BaseMapper.xml
@ -0,0 +1,77 @@ |
|||||
|
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", "操作成功!"); |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -0,0 +1,65 @@ |
|||||
|
package com.gaotao.modules.base.entity; |
||||
|
|
||||
|
import org.apache.ibatis.type.Alias; |
||||
|
|
||||
|
@Alias("LabelSettingData") |
||||
|
public class LabelSettingData { |
||||
|
private String labelNo;// |
||||
|
private String labelType;// |
||||
|
private String labelName;// |
||||
|
private String labelClass;// |
||||
|
private String remark;// |
||||
|
private String searchFlag;//是否查询 |
||||
|
|
||||
|
public LabelSettingData() { |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public String getLabelNo() { |
||||
|
return labelNo; |
||||
|
} |
||||
|
|
||||
|
public void setLabelNo(String labelNo) { |
||||
|
this.labelNo = labelNo; |
||||
|
} |
||||
|
|
||||
|
public String getLabelType() { |
||||
|
return labelType; |
||||
|
} |
||||
|
|
||||
|
public void setLabelType(String labelType) { |
||||
|
this.labelType = labelType; |
||||
|
} |
||||
|
|
||||
|
public String getLabelName() { |
||||
|
return labelName; |
||||
|
} |
||||
|
|
||||
|
public void setLabelName(String labelName) { |
||||
|
this.labelName = labelName; |
||||
|
} |
||||
|
|
||||
|
public String getLabelClass() { |
||||
|
return labelClass; |
||||
|
} |
||||
|
|
||||
|
public void setLabelClass(String labelClass) { |
||||
|
this.labelClass = labelClass; |
||||
|
} |
||||
|
|
||||
|
public String getRemark() { |
||||
|
return remark; |
||||
|
} |
||||
|
|
||||
|
public void setRemark(String remark) { |
||||
|
this.remark = remark; |
||||
|
} |
||||
|
|
||||
|
public String getSearchFlag() { |
||||
|
return searchFlag; |
||||
|
} |
||||
|
|
||||
|
public void setSearchFlag(String searchFlag) { |
||||
|
this.searchFlag = searchFlag; |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue