add: 给前端的测试分支;
This commit is contained in:
@@ -20,7 +20,11 @@ public enum EasBillTypeEnum {
|
|||||||
WWRKD(9, "委外入库", "WWRKD"),
|
WWRKD(9, "委外入库", "WWRKD"),
|
||||||
IN(10, "入库", "IN"),
|
IN(10, "入库", "IN"),
|
||||||
OUT(11, "出库", "OUT"),
|
OUT(11, "出库", "OUT"),
|
||||||
OTHER(12, "其他", "12");
|
OTHER(12, "其他", "12"),
|
||||||
|
SHDJ(13, "收货确认", "SHDJ"),
|
||||||
|
DBQR(14, "调拨确认", "DBQR"),
|
||||||
|
DB(15, "调拨", "DB"),
|
||||||
|
SH(16, "收货", "SH");
|
||||||
|
|
||||||
private int index;
|
private int index;
|
||||||
private String name;
|
private String name;
|
||||||
|
|||||||
@@ -78,6 +78,11 @@ public class AllocationBill2 extends Model<AllocationBill2> {
|
|||||||
*/
|
*/
|
||||||
private String dcckbm;
|
private String dcckbm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 调出仓库编码
|
||||||
|
*/
|
||||||
|
private String dcckmc;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 调出库位编码
|
* 调出库位编码
|
||||||
@@ -90,6 +95,11 @@ public class AllocationBill2 extends Model<AllocationBill2> {
|
|||||||
*/
|
*/
|
||||||
private String drckbm;
|
private String drckbm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 调入仓库编码
|
||||||
|
*/
|
||||||
|
private String drckmc;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 调入库位编码
|
* 调入库位编码
|
||||||
@@ -97,6 +107,8 @@ public class AllocationBill2 extends Model<AllocationBill2> {
|
|||||||
private String drkwbm;
|
private String drkwbm;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计划调入日期
|
* 计划调入日期
|
||||||
*/
|
*/
|
||||||
@@ -112,7 +124,7 @@ public class AllocationBill2 extends Model<AllocationBill2> {
|
|||||||
/**
|
/**
|
||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
private String bz;
|
private String flbz;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -59,6 +59,11 @@ public class ReceiptBill2 extends Model<ReceiptBill2> {
|
|||||||
*/
|
*/
|
||||||
private String ckbm;
|
private String ckbm;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 收货仓库名称
|
||||||
|
*/
|
||||||
|
private String ckmc;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 收货库位编码
|
* 收货库位编码
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||||||
*/
|
*/
|
||||||
public interface AllocationBillMapper extends BaseMapper<AllocationBill> {
|
public interface AllocationBillMapper extends BaseMapper<AllocationBill> {
|
||||||
|
|
||||||
@Select("SELECT COUNT(*) FROM receiptBill")
|
@Select("SELECT COUNT(1) FROM receipt_bill2")
|
||||||
//@DS("oracle_eas")
|
//@DS("oracle_eas")
|
||||||
Long getAllocationCount();
|
Long getAllocationCount();
|
||||||
|
|
||||||
@@ -28,6 +28,6 @@ public interface AllocationBillMapper extends BaseMapper<AllocationBill> {
|
|||||||
// @DS("oracle_eas")
|
// @DS("oracle_eas")
|
||||||
Long getTotalCount(@Param("djbh") String djbh);
|
Long getTotalCount(@Param("djbh") String djbh);
|
||||||
|
|
||||||
Page<AllocationBill> allocationDetailPage(Page<AllocationBill> page, @Param("djbh") String djbh, @Param("fuzzy") String fuzzy);
|
Page<AllocationBill> allocationDetailPage(Page<AllocationBill> page, @Param("djid") String djid, @Param("fuzzy") String fuzzy);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,5 +17,5 @@ public interface ReceiptBillMapper extends BaseMapper<ReceiptBill> {
|
|||||||
Page<ReceiptBill> receiptPage(Page<ReceiptBill> page, @Param("fuzzy") String fuzzy);
|
Page<ReceiptBill> receiptPage(Page<ReceiptBill> page, @Param("fuzzy") String fuzzy);
|
||||||
|
|
||||||
//@DS("mysql_srm")
|
//@DS("mysql_srm")
|
||||||
Page<ReceiptBill> receiptDetailPage(Page<ReceiptBill> page, @Param("djbh") String djbh, @Param("fuzzy") String fuzzy);
|
Page<ReceiptBill> receiptDetailPage(Page<ReceiptBill> page, @Param("djid") String djid, @Param("fuzzy") String fuzzy);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,27 +42,18 @@
|
|||||||
WHERE <![CDATA[ row_num > #{size} * (#{page} - 1) ]]>
|
WHERE <![CDATA[ row_num > #{size} * (#{page} - 1) ]]>
|
||||||
</select>
|
</select>
|
||||||
<select id="allocationPage" resultType="org.nl.wms.database.eas.dao.AllocationBill">
|
<select id="allocationPage" resultType="org.nl.wms.database.eas.dao.AllocationBill">
|
||||||
SELECT *
|
SELECT
|
||||||
FROM allocation_bill
|
*
|
||||||
<if test="fuzzy != null and fuzzy != ''">
|
FROM
|
||||||
WHERE djbh LIKE CONCAT('%', #{fuzzy}, '%')
|
allocation_bill2
|
||||||
OR wlmc LIKE CONCAT('%', #{fuzzy}, '%')
|
ORDER BY
|
||||||
OR ggxh LIKE CONCAT('%', #{fuzzy}, '%')
|
cjsj DESC
|
||||||
OR jldw LIKE CONCAT('%', #{fuzzy}, '%')
|
|
||||||
OR sl LIKE CONCAT('%', #{fuzzy}, '%')
|
|
||||||
OR kclx LIKE CONCAT('%', #{fuzzy}, '%')
|
|
||||||
OR kczt LIKE CONCAT('%', #{fuzzy}, '%')
|
|
||||||
OR ywrq LIKE CONCAT('%', #{fuzzy}, '%')
|
|
||||||
</if>
|
|
||||||
GROUP BY
|
|
||||||
djid
|
|
||||||
ORDER BY cjsj DESC
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="allocationDetailPage" resultType="org.nl.wms.database.eas.dao.AllocationBill">
|
<select id="allocationDetailPage" resultType="org.nl.wms.database.eas.dao.AllocationBill">
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM allocation_bill
|
FROM allocation_bill
|
||||||
WHERE djbh = #{djbh}
|
WHERE djid = #{djid}
|
||||||
<!-- <if test="fuzzy != null and fuzzy != ''">-->
|
<!-- <if test="fuzzy != null and fuzzy != ''">-->
|
||||||
<!-- AND (-->
|
<!-- AND (-->
|
||||||
<!-- djbh LIKE CONCAT('%', #{fuzzy}, '%')-->
|
<!-- djbh LIKE CONCAT('%', #{fuzzy}, '%')-->
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<mapper namespace="org.nl.wms.database.eas.dao.mapper.ReceiptBillMapper">
|
<mapper namespace="org.nl.wms.database.eas.dao.mapper.ReceiptBillMapper">
|
||||||
<select id="receiptPage" resultType="org.nl.wms.database.eas.dao.ReceiptBill">
|
<select id="receiptPage" resultType="org.nl.wms.database.eas.dao.ReceiptBill">
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM receipt_bill
|
FROM receipt_bill2
|
||||||
<if test="fuzzy != null and fuzzy != ''">
|
<if test="fuzzy != null and fuzzy != ''">
|
||||||
WHERE djbh LIKE CONCAT('%', #{fuzzy}, '%')
|
WHERE djbh LIKE CONCAT('%', #{fuzzy}, '%')
|
||||||
OR wlmc LIKE CONCAT('%', #{fuzzy}, '%')
|
OR wlmc LIKE CONCAT('%', #{fuzzy}, '%')
|
||||||
@@ -12,14 +12,12 @@
|
|||||||
OR ywrq LIKE CONCAT('%', #{fuzzy}, '%')
|
OR ywrq LIKE CONCAT('%', #{fuzzy}, '%')
|
||||||
OR bz LIKE CONCAT('%', #{fuzzy}, '%')
|
OR bz LIKE CONCAT('%', #{fuzzy}, '%')
|
||||||
</if>
|
</if>
|
||||||
GROUP BY
|
|
||||||
djid
|
|
||||||
ORDER BY tjsj DESC
|
ORDER BY tjsj DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="receiptDetailPage" resultType="org.nl.wms.database.eas.dao.ReceiptBill">
|
<select id="receiptDetailPage" resultType="org.nl.wms.database.eas.dao.ReceiptBill">
|
||||||
SELECT *
|
SELECT *
|
||||||
FROM receipt_bill
|
FROM receipt_bill
|
||||||
WHERE djbh = #{djbh}
|
WHERE djid = #{djid}
|
||||||
<!-- <if test="fuzzy != null and fuzzy != ''">-->
|
<!-- <if test="fuzzy != null and fuzzy != ''">-->
|
||||||
<!-- AND (-->
|
<!-- AND (-->
|
||||||
<!-- djbh LIKE CONCAT('%', #{fuzzy}, '%')-->
|
<!-- djbh LIKE CONCAT('%', #{fuzzy}, '%')-->
|
||||||
|
|||||||
@@ -60,11 +60,10 @@ public class AllocationBillServiceImpl extends ServiceImpl<AllocationBillMapper,
|
|||||||
@SaIgnore
|
@SaIgnore
|
||||||
public CommonPage<AllocationBill> allocationPage(AllocationBillQuery params) {
|
public CommonPage<AllocationBill> allocationPage(AllocationBillQuery params) {
|
||||||
// 查询总记录数
|
// 查询总记录数
|
||||||
// long totalCount = allocationBillMapper.getAllocationCount();
|
long totalCount = allocationBillMapper.getAllocationCount();
|
||||||
Page<AllocationBill> pageObject = new Page<>(params.getPage(), params.getSize());
|
Page<AllocationBill> pageObject = new Page<>(params.getPage(), params.getSize());
|
||||||
Page<AllocationBill> allocationBills = allocationBillMapper.allocationPage(pageObject, params.getFuzzy());
|
Page<AllocationBill> allocationBills = allocationBillMapper.allocationPage(pageObject, params.getFuzzy());
|
||||||
return CommonPage.getPage(allocationBills);
|
return CommonPage.getPage(allocationBills, totalCount);
|
||||||
//return CommonPage.getPage(allocationBills, totalCount);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -75,13 +74,13 @@ public class AllocationBillServiceImpl extends ServiceImpl<AllocationBillMapper,
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public CommonPage<AllocationBill> page(AllocationBillQuery params) {
|
public CommonPage<AllocationBill> page(AllocationBillQuery params) {
|
||||||
if (StringUtils.isBlank(params.getDjbh())) {
|
if (StringUtils.isBlank(params.getDjid())) {
|
||||||
throw new BadRequestException("单据编号不能为空");
|
throw new BadRequestException("单据编号不能为空");
|
||||||
}
|
}
|
||||||
// 查询总记录数
|
// 查询总记录数
|
||||||
// long totalCount = allocationBillMapper.getTotalCount(params.getDjbh());
|
// long totalCount = allocationBillMapper.getTotalCount(params.getDjbh());
|
||||||
Page<AllocationBill> pageObject = new Page<>(params.getPage(), params.getSize());
|
Page<AllocationBill> pageObject = new Page<>(params.getPage(), params.getSize());
|
||||||
Page<AllocationBill> allocationBills = allocationBillMapper.allocationDetailPage(pageObject, params.getDjbh(), params.getFuzzy());
|
Page<AllocationBill> allocationBills = allocationBillMapper.allocationDetailPage(pageObject, params.getDjid(), params.getFuzzy());
|
||||||
List<AllocationBill> allocationBillList = allocationBills.getRecords();
|
List<AllocationBill> allocationBillList = allocationBills.getRecords();
|
||||||
if (!allocationBillList.isEmpty()) {
|
if (!allocationBillList.isEmpty()) {
|
||||||
// 获取更新列表
|
// 获取更新列表
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||||
import org.apache.commons.collections4.CollectionUtils;
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.nl.common.base.CommonPage;
|
import org.nl.common.base.CommonPage;
|
||||||
|
import org.nl.common.enums.wms.EasBillTypeEnum;
|
||||||
import org.nl.common.exception.BadRequestException;
|
import org.nl.common.exception.BadRequestException;
|
||||||
import org.nl.common.utils.SecurityUtils;
|
import org.nl.common.utils.SecurityUtils;
|
||||||
import org.nl.config.IdUtil;
|
import org.nl.config.IdUtil;
|
||||||
@@ -78,7 +79,24 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<HomeBillCounts> getBillsCount() {
|
public List<HomeBillCounts> getBillsCount() {
|
||||||
return easOutInBillMapper.getBillsCount();
|
|
||||||
|
List<HomeBillCounts> allCounts =easOutInBillMapper.getBillsCount();
|
||||||
|
HomeBillCounts allocations =new HomeBillCounts();
|
||||||
|
Long allocation =26L;
|
||||||
|
allocations.setCounts(allocation.toString());
|
||||||
|
allocations.setName(EasBillTypeEnum.DBQR.getName());
|
||||||
|
allocations.setDjlx(EasBillTypeEnum.DBQR.getCode());
|
||||||
|
allocations.setYwlx(EasBillTypeEnum.DB.getCode());
|
||||||
|
HomeBillCounts receipts =new HomeBillCounts();
|
||||||
|
Long receipt = 6L;
|
||||||
|
receipts.setCounts(receipt.toString());
|
||||||
|
receipts.setName(EasBillTypeEnum.SHDJ.getName());
|
||||||
|
receipts.setDjlx(EasBillTypeEnum.SHDJ.getCode());
|
||||||
|
receipts.setYwlx(EasBillTypeEnum.SH.getCode());
|
||||||
|
allCounts.add(allocations);
|
||||||
|
allCounts.add(receipts);
|
||||||
|
return allCounts;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -73,11 +73,11 @@ public class ReceiptBillServiceImpl extends ServiceImpl<ReceiptBillMapper, Recei
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public CommonPage<ReceiptBill> page(ReceiptBillVO params) {
|
public CommonPage<ReceiptBill> page(ReceiptBillVO params) {
|
||||||
if (StringUtils.isBlank(params.getDjbh())) {
|
if (StringUtils.isBlank(params.getDjid())) {
|
||||||
throw new BadRequestException("单据编号不能为空");
|
throw new BadRequestException("单据编号不能为空");
|
||||||
}
|
}
|
||||||
Page<ReceiptBill> pageObject = new Page<>(params.getPage(), params.getSize());
|
Page<ReceiptBill> pageObject = new Page<>(params.getPage(), params.getSize());
|
||||||
Page<ReceiptBill> receiptBills = receiptBillMapper.receiptDetailPage(pageObject, params.getDjbh(), params.getFuzzy());
|
Page<ReceiptBill> receiptBills = receiptBillMapper.receiptDetailPage(pageObject, params.getDjid(), params.getFuzzy());
|
||||||
List<ReceiptBill> receiptBillList = receiptBills.getRecords();
|
List<ReceiptBill> receiptBillList = receiptBills.getRecords();
|
||||||
if (!receiptBillList.isEmpty()) {
|
if (!receiptBillList.isEmpty()) {
|
||||||
List<ReceiptBill2> updateList = receiptBill2Mapper.selectList(
|
List<ReceiptBill2> updateList = receiptBill2Mapper.selectList(
|
||||||
|
|||||||
Reference in New Issue
Block a user