测试提交
This commit is contained in:
parent
8f5843fc25
commit
0ed4cb41f8
@ -1,7 +1,42 @@
|
||||
package com.czlis.zycx.controller;
|
||||
|
||||
import com.czlis.common.core.controller.BaseController;
|
||||
import com.czlis.common.core.domain.Result;
|
||||
import com.czlis.common.core.page.TableDataInfo;
|
||||
import com.czlis.zycx.pojo.Web_getBarcode;
|
||||
import com.czlis.zycx.service.ZycxService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 住院采血接口
|
||||
*/
|
||||
@Api(tags = "住院采血接口")
|
||||
@RestController
|
||||
public class ZycxController {
|
||||
@RequestMapping("/zyreq")
|
||||
public class ZycxController extends BaseController {
|
||||
@Autowired
|
||||
private ZycxService zycxService;
|
||||
|
||||
|
||||
@ApiOperation("获取申请单")
|
||||
@GetMapping("/query")
|
||||
//@PreAuthorize("@ss.hasPermi('zycx:interface:query')")
|
||||
public TableDataInfo getSQDInfo(Web_getBarcode webGetBarcode){
|
||||
startPage();
|
||||
List<Web_getBarcode> sqdInfoList = zycxService.getSQDInfo(webGetBarcode);
|
||||
return getDataTable(sqdInfoList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
10
zycx/src/main/java/com/czlis/zycx/mapper/ZycxMapper.java
Normal file
10
zycx/src/main/java/com/czlis/zycx/mapper/ZycxMapper.java
Normal file
@ -0,0 +1,10 @@
|
||||
package com.czlis.zycx.mapper;
|
||||
|
||||
import com.czlis.zycx.pojo.Web_getBarcode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ZycxMapper {
|
||||
|
||||
List<Web_getBarcode> getSQDInfo(Web_getBarcode web_getBarcode);
|
||||
}
|
||||
69
zycx/src/main/java/com/czlis/zycx/pojo/Web_getBarcode.java
Normal file
69
zycx/src/main/java/com/czlis/zycx/pojo/Web_getBarcode.java
Normal file
@ -0,0 +1,69 @@
|
||||
package com.czlis.zycx.pojo;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Web_getBarcode {
|
||||
private String sqh;
|
||||
private String ksdh;
|
||||
private String sqys;
|
||||
private Date sqsj;
|
||||
private String jsys;
|
||||
private Date jssj;
|
||||
private String zt;
|
||||
private String jjzt;
|
||||
private String brly;
|
||||
private String brdh;
|
||||
private String brxm;
|
||||
private String brxb;
|
||||
private Date brsr;
|
||||
private String bz1;
|
||||
private String bz2;
|
||||
private String bz3;
|
||||
private String jzbz;
|
||||
private String txm;
|
||||
private String ch;
|
||||
private String yblx;
|
||||
private String zxys;
|
||||
private Date zxsj;
|
||||
private String bgddh;
|
||||
private BigDecimal costs;
|
||||
private Integer nl;
|
||||
private String nldw;
|
||||
private String zd;
|
||||
private Date cysj;
|
||||
private Date cksj;
|
||||
private String ckzj;
|
||||
private String ckyh;
|
||||
private String djry;
|
||||
private String inputman;
|
||||
private String powerman;
|
||||
private String contactman;
|
||||
private String cyr;
|
||||
private String bbsjr;
|
||||
private Date bbsjsj;
|
||||
private String refused;
|
||||
private Date confirmtime;
|
||||
private String confirmer;
|
||||
private String yljg;
|
||||
private String kh;
|
||||
private String klx;
|
||||
private String sfzh;
|
||||
private String phone;
|
||||
private String phone1;
|
||||
private String addr;
|
||||
private String bgddhname;
|
||||
private String bkcolor;
|
||||
private String sflbjc;
|
||||
private String sampletips;
|
||||
private String ksname;
|
||||
private String sqysname;
|
||||
private String jsysname;
|
||||
}
|
||||
11
zycx/src/main/java/com/czlis/zycx/service/ZycxService.java
Normal file
11
zycx/src/main/java/com/czlis/zycx/service/ZycxService.java
Normal file
@ -0,0 +1,11 @@
|
||||
package com.czlis.zycx.service;
|
||||
|
||||
import com.czlis.common.core.domain.Result;
|
||||
import com.czlis.common.core.page.TableDataInfo;
|
||||
import com.czlis.zycx.pojo.Web_getBarcode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ZycxService {
|
||||
List<Web_getBarcode> getSQDInfo(Web_getBarcode webGetBarcode);
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.czlis.zycx.service.impl;
|
||||
|
||||
import com.czlis.common.core.domain.Result;
|
||||
import com.czlis.zycx.pojo.Web_getBarcode;
|
||||
import com.czlis.zycx.service.ZycxService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class ZycxServiceImpl implements ZycxService {
|
||||
|
||||
|
||||
@Override
|
||||
public List<Web_getBarcode> getSQDInfo(Web_getBarcode webGetBarcode) {
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
57
zycx/src/main/resources/mapper.zycx/ZycxMapper.xml
Normal file
57
zycx/src/main/resources/mapper.zycx/ZycxMapper.xml
Normal file
@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.czlis.zycx.mapper.ZycxMapper">
|
||||
|
||||
|
||||
|
||||
<sql id="selectWeb_getBarcodeVo">
|
||||
SELECT sqh,ksdh,sqys,sqsj,jsys,jssj,zt,jjzt,brly,brdh,brxm,brxb,brsr,bz1,bz2,bz3,jzbz,txm,ch,yblx,zxys,zxsj,bgddh,costs,nl,nldw,zd,cysj,cksj,ckzj,ckyh,djry,inputman,powerman,contactman
|
||||
,refsqh,cyr,bbsjr,bbsjsj,performby,sbbr,inzt,libpos,inlibtime,inlibman,outlibtime,outlibman,refused,confirmtime,confirmer,cybl,bbsjbl,yljg
|
||||
,kh
|
||||
,klx
|
||||
,jzsj
|
||||
,jymd
|
||||
,sfzh
|
||||
,phone
|
||||
,phone1
|
||||
,cyjs
|
||||
,jswc
|
||||
,yqdh
|
||||
,sjsj
|
||||
,send_flag
|
||||
,addr
|
||||
,lstd
|
||||
,ssrq
|
||||
,slzq
|
||||
,cyblsj
|
||||
,bbsjblsj
|
||||
,bgddhname
|
||||
,bkcolor
|
||||
,sflbjc
|
||||
,sampletips
|
||||
,ksname
|
||||
,sqysname
|
||||
,jsysname
|
||||
,brlyname
|
||||
,brxbname
|
||||
,yblxname
|
||||
,zxysname
|
||||
,cyrname
|
||||
,Bbsjrname
|
||||
,confirmername
|
||||
,yljgname
|
||||
FROM web_getBarcode
|
||||
</sql>
|
||||
|
||||
<select id="getSQDInfo">
|
||||
<include refid="selectWeb_getBarcodeVo"></include>
|
||||
<![CDATA[
|
||||
where sqsj >= #{sqsj} and sqsj <= #{sqsj}
|
||||
]]>
|
||||
<if test="sqh"></if>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Loading…
x
Reference in New Issue
Block a user