6 changed files with 189 additions and 3 deletions
-
35src/main/java/com/gaotao/modules/print/controller/LabelprinthistController.java
-
11src/main/java/com/gaotao/modules/print/dao/LabelprinthistMapper.java
-
97src/main/java/com/gaotao/modules/print/entity/vo/LabelprinthistVo.java
-
11src/main/java/com/gaotao/modules/print/service/LabelprinthistService.java
-
6src/main/java/com/gaotao/modules/print/service/impl/LabelprinthistServiceImpl.java
-
28src/main/resources/mapper/print/LabelprinthistMapper.xml
@ -0,0 +1,35 @@ |
|||||
|
package com.gaotao.modules.print.controller; |
||||
|
|
||||
|
import com.gaotao.common.utils.R; |
||||
|
import com.gaotao.modules.print.entity.Labelprinthist; |
||||
|
import com.gaotao.modules.print.entity.vo.LabelprinthistVo; |
||||
|
import com.gaotao.modules.print.service.LabelprinthistService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@RequestMapping("/labelHist") |
||||
|
@RestController |
||||
|
public class LabelprinthistController { |
||||
|
|
||||
|
@Autowired |
||||
|
private LabelprinthistService labelprinthistService; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @Author SXM |
||||
|
* @Description 获取标签打印历史 |
||||
|
* @Date 14:58 2022/5/15 |
||||
|
* @Param [labelprinthist] |
||||
|
* @return com.gaotao.common.utils.R |
||||
|
**/ |
||||
|
@PostMapping("getLabelPrintHistList") |
||||
|
public R getLabelPrintHistList(@RequestBody LabelprinthistVo labelprinthist){ |
||||
|
List<Labelprinthist> labelprinthists = labelprinthistService.getLabelPrintHistList(labelprinthist); |
||||
|
return R.ok().put("dataList", labelprinthists); |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,97 @@ |
|||||
|
package com.gaotao.modules.print.entity.vo; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class LabelprinthistVo { |
||||
|
private Integer id; |
||||
|
|
||||
|
private String printfrom; |
||||
|
|
||||
|
private String reportid; |
||||
|
|
||||
|
private String keyinfo; |
||||
|
|
||||
|
private String userid; |
||||
|
|
||||
|
private Date createdate; |
||||
|
|
||||
|
private String printdetail; |
||||
|
|
||||
|
private Date startDate; |
||||
|
|
||||
|
private Date endDate; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Integer getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public Date getStartDate() { |
||||
|
return startDate; |
||||
|
} |
||||
|
|
||||
|
public void setStartDate(Date startDate) { |
||||
|
this.startDate = startDate; |
||||
|
} |
||||
|
|
||||
|
public Date getEndDate() { |
||||
|
return endDate; |
||||
|
} |
||||
|
|
||||
|
public void setEndDate(Date endDate) { |
||||
|
this.endDate = endDate; |
||||
|
} |
||||
|
|
||||
|
public void setId(Integer id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public String getPrintfrom() { |
||||
|
return printfrom; |
||||
|
} |
||||
|
|
||||
|
public void setPrintfrom(String printfrom) { |
||||
|
this.printfrom = printfrom; |
||||
|
} |
||||
|
|
||||
|
public String getReportid() { |
||||
|
return reportid; |
||||
|
} |
||||
|
|
||||
|
public void setReportid(String reportid) { |
||||
|
this.reportid = reportid; |
||||
|
} |
||||
|
|
||||
|
public String getKeyinfo() { |
||||
|
return keyinfo; |
||||
|
} |
||||
|
|
||||
|
public void setKeyinfo(String keyinfo) { |
||||
|
this.keyinfo = keyinfo; |
||||
|
} |
||||
|
|
||||
|
public String getUserid() { |
||||
|
return userid; |
||||
|
} |
||||
|
|
||||
|
public void setUserid(String userid) { |
||||
|
this.userid = userid; |
||||
|
} |
||||
|
|
||||
|
public Date getCreatedate() { |
||||
|
return createdate; |
||||
|
} |
||||
|
|
||||
|
public void setCreatedate(Date createdate) { |
||||
|
this.createdate = createdate; |
||||
|
} |
||||
|
|
||||
|
public String getPrintdetail() { |
||||
|
return printdetail; |
||||
|
} |
||||
|
|
||||
|
public void setPrintdetail(String printdetail) { |
||||
|
this.printdetail = printdetail; |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue