多次使用出库新增功能代码提交
parent
32ff539034
commit
14c4bd0248
@ -0,0 +1,37 @@
|
||||
package com.glxp.api.req.inout;
|
||||
|
||||
import com.glxp.api.util.page.ListPageRequest;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class IoOrderMutiRequest extends ListPageRequest {
|
||||
|
||||
private Long id;
|
||||
private String orderIdFk;
|
||||
private String udiCode;
|
||||
private String relIdFk;
|
||||
private String mark;
|
||||
private Integer totalCount;
|
||||
private Integer useCount;
|
||||
private Integer reCount;
|
||||
private Date createTime;
|
||||
private Date updateTime;
|
||||
private String createUser;
|
||||
private String updateUser;
|
||||
private String reamrk;
|
||||
private String nameCode;
|
||||
private String batchNo;
|
||||
private String produceDate;
|
||||
private String expireDate;
|
||||
private String serialNo;
|
||||
private String supId;
|
||||
private String auditUser;
|
||||
private Date auditTime;
|
||||
private String cpmctymc;
|
||||
private String ggxh;
|
||||
private Integer status;
|
||||
private String createUserName;
|
||||
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.glxp.api.res.inout;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class IoOrderMutiResponse {
|
||||
|
||||
private Long id;
|
||||
private String orderIdFk;
|
||||
private String udiCode;
|
||||
private String relIdFk;
|
||||
private String mark;
|
||||
private Integer totalCount;
|
||||
private Integer useCount;
|
||||
private Integer reCount;
|
||||
private Date createTime;
|
||||
private Date updateTime;
|
||||
private String createUser;
|
||||
private String updateUser;
|
||||
private String reamrk;
|
||||
private String nameCode;
|
||||
private String batchNo;
|
||||
private String produceDate;
|
||||
private String expireDate;
|
||||
private String serialNo;
|
||||
private String supId;
|
||||
private String auditUser;
|
||||
private Date auditTime;
|
||||
private String cpmctymc;
|
||||
private String ggxh;
|
||||
private Integer status;
|
||||
private String createUserName;
|
||||
|
||||
}
|
@ -1,11 +1,35 @@
|
||||
package com.glxp.api.service.inout.impl;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.glxp.api.req.inout.IoOrderMutiRequest;
|
||||
import com.glxp.api.res.inout.IoOrderMutiResponse;
|
||||
import com.glxp.api.res.inout.IoOrderMutiSetResponse;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.glxp.api.entity.inout.IoOrderMutiEntity;
|
||||
import com.glxp.api.dao.inout.IoOrderMutiMapper;
|
||||
import com.glxp.api.service.inout.IoOrderMutiService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class IoOrderMutiServiceImpl extends ServiceImpl<IoOrderMutiMapper, IoOrderMutiEntity> implements IoOrderMutiService{
|
||||
|
||||
@Resource
|
||||
private IoOrderMutiMapper ioOrderMutiMapper;
|
||||
|
||||
@Override
|
||||
public List<IoOrderMutiResponse> filterList(IoOrderMutiRequest ioOrderMutiRequest) {
|
||||
if (ioOrderMutiRequest == null) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
if (ioOrderMutiRequest.getPage() != null) {
|
||||
int offset = (ioOrderMutiRequest.getPage() - 1) * ioOrderMutiRequest.getLimit();
|
||||
PageHelper.offsetPage(offset, ioOrderMutiRequest.getLimit());
|
||||
}
|
||||
List<IoOrderMutiResponse> ioOrderMutiEntityList=ioOrderMutiMapper.filterList(ioOrderMutiRequest);
|
||||
return ioOrderMutiEntityList;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,37 @@
|
||||
<?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.glxp.api.dao.inout.IoOrderMutiMapper">
|
||||
|
||||
<select id="filterList" parameterType="com.glxp.api.req.inout.IoOrderMutiRequest"
|
||||
resultType="com.glxp.api.res.inout.IoOrderMutiResponse">
|
||||
SELECT
|
||||
io.*,
|
||||
b1.ggxh,
|
||||
b1.cpmctymc,
|
||||
(SELECT userName FROM auth_user WHERE auth_user.id=io.createUser) as createUserName
|
||||
FROM
|
||||
io_order_muti io
|
||||
LEFT JOIN basic_products b1 on b1.nameCode=io.nameCode
|
||||
<where>
|
||||
<if test=" udiCode!= '' and udiCode != null">
|
||||
and io.udiCode = #{udiCode}
|
||||
</if>
|
||||
<if test=" mark!= '' and mark != null">
|
||||
and io.mark = #{mark}
|
||||
</if>
|
||||
<if test=" nameCode!= '' and nameCode != null">
|
||||
and io.nameCode = #{nameCode}
|
||||
</if>
|
||||
<if test=" ggxh!= '' and ggxh != null">
|
||||
and b1.ggxh = #{ggxh}
|
||||
</if>
|
||||
<if test=" cpmctymc!= '' and cpmctymc != null">
|
||||
and b1.cpmctymc = #{cpmctymc}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
and io.status = #{status}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
Loading…
Reference in New Issue