1.修复库存查询问题

2.修复流向查询无数据的问题
3.修复打印功能错误问题,单据打印模板关联关系表字段删除未使用的字段
master
x_z 3 years ago
parent f6fd34f8a4
commit 33e6aae687

@ -307,6 +307,7 @@ public class StockQRCodeTextController {
SystemPDFTemplateRelevanceRequest systemPDFTemplateRelevanceRequest = new SystemPDFTemplateRelevanceRequest(); SystemPDFTemplateRelevanceRequest systemPDFTemplateRelevanceRequest = new SystemPDFTemplateRelevanceRequest();
systemPDFTemplateRelevanceRequest.setLocalAction(orderEntity.getAction()); systemPDFTemplateRelevanceRequest.setLocalAction(orderEntity.getAction());
systemPDFTemplateRelevanceRequest.setModuleId(inspectionPDFTemplateRequest.getModuleId()); systemPDFTemplateRelevanceRequest.setModuleId(inspectionPDFTemplateRequest.getModuleId());
systemPDFTemplateRelevanceRequest.setCustomerId(orderEntity.getCustomerId().toString());
IPage<SystemPDFTemplateRelevanceResponse> page = systemPDFTemplateRelevanceService.filterList(systemPDFTemplateRelevanceRequest); IPage<SystemPDFTemplateRelevanceResponse> page = systemPDFTemplateRelevanceService.filterList(systemPDFTemplateRelevanceRequest);
if (page.getTotal() == 0) { if (page.getTotal() == 0) {
return ResultVOUtils.error(ResultEnum.DATA_NOT, "未找到模板文件"); return ResultVOUtils.error(ResultEnum.DATA_NOT, "未找到模板文件");

@ -196,7 +196,7 @@ public class UdiTraceController {
return null; return null;
} }
FilterInvProductDetailRequest filterInvProductDetailRequest = new FilterInvProductDetailRequest(); FilterInvProductDetailRequest filterInvProductDetailRequest = new FilterInvProductDetailRequest();
filterInvProductDetailRequest.setProductIdFk(udiInfoEntity.getUuid()); filterInvProductDetailRequest.setProductIdFk(String.valueOf(udiInfoEntity.getId()));
filterInvProductDetailRequest.setBatchNo(udiEntity.getBatchNo()); filterInvProductDetailRequest.setBatchNo(udiEntity.getBatchNo());
if (warehouseQueryRequest.getCustomerId() != null) { if (warehouseQueryRequest.getCustomerId() != null) {
filterInvProductDetailRequest.setCustomerId(warehouseQueryRequest.getCustomerId() + ""); filterInvProductDetailRequest.setCustomerId(warehouseQueryRequest.getCustomerId() + "");

@ -94,6 +94,7 @@ public class SystemPDFModuleController {
SystemPDFTemplateRelevanceEntity systemPDFTemplateRelevanceEntity = new SystemPDFTemplateRelevanceEntity(); SystemPDFTemplateRelevanceEntity systemPDFTemplateRelevanceEntity = new SystemPDFTemplateRelevanceEntity();
systemPDFTemplateRelevanceEntity.setLocalAction(bussinessTypeEntity.getAction()); systemPDFTemplateRelevanceEntity.setLocalAction(bussinessTypeEntity.getAction());
systemPDFTemplateRelevanceEntity.setModuleId(systemPDFModuleRequest.getModuleId()); systemPDFTemplateRelevanceEntity.setModuleId(systemPDFModuleRequest.getModuleId());
systemPDFTemplateRelevanceEntity.setCustomerId(Long.valueOf(systemPDFModuleRequest.getCustomerId()));
systemPDFTemplateRelevanceService.insert(systemPDFTemplateRelevanceEntity); systemPDFTemplateRelevanceService.insert(systemPDFTemplateRelevanceEntity);
} }
@ -107,7 +108,7 @@ public class SystemPDFModuleController {
@AuthRuleAnnotation("system/pdf/module/updateRl") @AuthRuleAnnotation("system/pdf/module/updateRl")
@PostMapping("/system/pdf/module/updateRl") @PostMapping("/system/pdf/module/updateRl")
public BaseResponse updateRl(@RequestBody SystemPDFTemplateRelevanceEntity systemPDFModuleSaveRequest) { public BaseResponse updateRl(@RequestBody SystemPDFTemplateRelevanceEntity systemPDFModuleSaveRequest) {
systemPDFTemplateRelevanceService.udpateRl(systemPDFModuleSaveRequest); systemPDFTemplateRelevanceService.updateRl(systemPDFModuleSaveRequest);
return ResultVOUtils.success("修改成功"); return ResultVOUtils.success("修改成功");
} }

@ -3,7 +3,6 @@ package com.glxp.udi.admin.controller.param;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.glxp.udi.admin.annotation.AuthRuleAnnotation; import com.glxp.udi.admin.annotation.AuthRuleAnnotation;
import com.glxp.udi.admin.common.res.BaseResponse; import com.glxp.udi.admin.common.res.BaseResponse;
import com.glxp.udi.admin.entity.param.SystemPDFTemplateEntity; import com.glxp.udi.admin.entity.param.SystemPDFTemplateEntity;
@ -49,7 +48,7 @@ public class SystemPDFTemplateController {
return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage()); return ResultVOUtils.error(ResultEnum.PARAM_VERIFY_FALL, bindingResult.getFieldError().getDefaultMessage());
} }
Page<SystemPDFTemplateEntity> page = systemPDFTemplateService.queryPage(systemPDFTemplateRequest); IPage<SystemPDFTemplateEntity> page = systemPDFTemplateService.queryPage(systemPDFTemplateRequest);
List<SystemPDFTemplateResponse> systemPDFTemplateResponseList = page.getRecords().stream().map(item -> { List<SystemPDFTemplateResponse> systemPDFTemplateResponseList = page.getRecords().stream().map(item -> {
SystemPDFTemplateResponse systemPDFTemplateResponse = new SystemPDFTemplateResponse(); SystemPDFTemplateResponse systemPDFTemplateResponse = new SystemPDFTemplateResponse();
BeanUtils.copyProperties(item, systemPDFTemplateResponse); BeanUtils.copyProperties(item, systemPDFTemplateResponse);

@ -49,7 +49,7 @@ public interface SystemPDFTemplateRelevanceDao extends BaseMapper<SystemPDFTempl
boolean insertData(SystemPDFTemplateRelevanceEntity systemPDFTemplateRelevanceEntity); boolean insertData(SystemPDFTemplateRelevanceEntity systemPDFTemplateRelevanceEntity);
boolean udpateRl(SystemPDFTemplateRelevanceEntity systemPDFTemplateRelevanceEntity); boolean updateRl(SystemPDFTemplateRelevanceEntity systemPDFTemplateRelevanceEntity);
IPage<SystemPDFTemplateRelevanceResponse> filterList(@Param("page") IPage<SystemPDFTemplateRelevanceResponse> page, @Param("moduleId") Integer moduleId, @Param("localAction") String localAction, @Param("customerId") String customerId); IPage<SystemPDFTemplateRelevanceResponse> filterList(@Param("page") IPage<SystemPDFTemplateRelevanceResponse> page, @Param("moduleId") Integer moduleId, @Param("localAction") String localAction, @Param("customerId") String customerId);

@ -16,8 +16,6 @@ public class SystemPDFTemplateRelevanceEntity {
private Long customerId; private Long customerId;
private Integer adminId;
private Integer moduleId; private Integer moduleId;
private String localAction; private String localAction;

@ -85,7 +85,7 @@ public class InvProductDetailService {
QueryWrapper<InvProductDetailEntity> wrapper = new QueryWrapper<>(); QueryWrapper<InvProductDetailEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StrUtil.isNotBlank(detailParams.getBatchNo()), "batchNo", detailParams.getBatchNo()) wrapper.eq(StrUtil.isNotBlank(detailParams.getBatchNo()), "batchNo", detailParams.getBatchNo())
.eq(StrUtil.isNotBlank(detailParams.getProductIdFk()), "productIdFk", detailParams.getProductIdFk()) .eq(StrUtil.isNotBlank(detailParams.getProductIdFk()), "productIdFk", detailParams.getProductIdFk())
.eq(CollUtil.isNotEmpty(detailParams.getInvCodes()), "locStorageCode", detailParams.getInvCodes()); .in(CollUtil.isNotEmpty(detailParams.getInvCodes()), "locStorageCode", detailParams.getInvCodes());
return invProductDetailDao.selectCount(wrapper); return invProductDetailDao.selectCount(wrapper);
} }

@ -35,7 +35,7 @@ public class InvProductService {
.eq(StrUtil.isNotBlank(filterInvProductRequest.getCustomerId()), "customerId", filterInvProductRequest.getCustomerId()) .eq(StrUtil.isNotBlank(filterInvProductRequest.getCustomerId()), "customerId", filterInvProductRequest.getCustomerId())
.in(CollUtil.isNotEmpty(filterInvProductRequest.getInvCodes()), "locStorageCode", filterInvProductRequest.getInvCodes()) .in(CollUtil.isNotEmpty(filterInvProductRequest.getInvCodes()), "locStorageCode", filterInvProductRequest.getInvCodes())
.eq(StrUtil.isNotBlank(filterInvProductRequest.getNameCode()), "nameCode", filterInvProductRequest.getNameCode()) .eq(StrUtil.isNotBlank(filterInvProductRequest.getNameCode()), "nameCode", filterInvProductRequest.getNameCode())
.like(StrUtil.isNotBlank(filterInvProductRequest.getProductsName()), "productName", filterInvProductRequest.getProductsName()) .like(StrUtil.isNotBlank(filterInvProductRequest.getProductsName()), "productsName", filterInvProductRequest.getProductsName())
.like(StrUtil.isNotBlank(filterInvProductRequest.getZczbhhzbapzbh()), "zczbhhzbapzbh", filterInvProductRequest.getZczbhhzbapzbh()) .like(StrUtil.isNotBlank(filterInvProductRequest.getZczbhhzbapzbh()), "zczbhhzbapzbh", filterInvProductRequest.getZczbhhzbapzbh())
.like(StrUtil.isNotBlank(filterInvProductRequest.getManufactory()), "manufactory", filterInvProductRequest.getManufactory()) .like(StrUtil.isNotBlank(filterInvProductRequest.getManufactory()), "manufactory", filterInvProductRequest.getManufactory())
.like(StrUtil.isNotBlank(filterInvProductRequest.getGgxh()), "ggxh", filterInvProductRequest.getGgxh()); .like(StrUtil.isNotBlank(filterInvProductRequest.getGgxh()), "ggxh", filterInvProductRequest.getGgxh());

@ -124,11 +124,13 @@ public class OrderService {
} }
public OrderEntity findByOne(String orderId) { public OrderEntity findByOne(String orderId) {
OrderFilterRequest orderFilterRequest = new OrderFilterRequest(); if (StrUtil.isNotBlank(orderId)) {
orderFilterRequest.setId(orderId); OrderFilterRequest orderFilterRequest = new OrderFilterRequest();
List<OrderEntity> orderMdEntities = findAll(orderFilterRequest); orderFilterRequest.setId(orderId);
if (orderMdEntities != null && orderMdEntities.size() > 0) { List<OrderEntity> orderMdEntities = findAll(orderFilterRequest);
return orderMdEntities.get(0); if (CollUtil.isNotEmpty(orderMdEntities)) {
return orderMdEntities.get(0);
}
} }
return null; return null;
} }

@ -42,7 +42,7 @@ public class SystemPDFTemplateRelevanceService {
return systemPDFTemplateRelevanceDao.insertData(systemPDFTemplateRelevanceEntity); return systemPDFTemplateRelevanceDao.insertData(systemPDFTemplateRelevanceEntity);
} }
public boolean udpateRl(SystemPDFTemplateRelevanceEntity systemPDFTemplateRelevanceEntity) { public boolean updateRl(SystemPDFTemplateRelevanceEntity systemPDFTemplateRelevanceEntity) {
return systemPDFTemplateRelevanceDao.udpateRl(systemPDFTemplateRelevanceEntity); return systemPDFTemplateRelevanceDao.updateRl(systemPDFTemplateRelevanceEntity);
} }
} }

@ -22,41 +22,32 @@ public class SystemPDFTemplateService {
@Resource @Resource
private SystemPDFTemplateDao systemPDFTemplateDao; private SystemPDFTemplateDao systemPDFTemplateDao;
public Page<SystemPDFTemplateEntity> queryPage(SystemPDFTemplateRequest systemPDFTemplateRequest) { public IPage<SystemPDFTemplateEntity> queryPage(SystemPDFTemplateRequest systemPDFTemplateRequest) {
Page<SystemPDFTemplateEntity> page = new Page<>(systemPDFTemplateRequest.getPage(), systemPDFTemplateRequest.getLimit()); IPage<SystemPDFTemplateEntity> page = new Page<>(systemPDFTemplateRequest.getPage(), systemPDFTemplateRequest.getLimit());
return systemPDFTemplateDao.selectPage(page, buildQueryWrapper(systemPDFTemplateRequest)); return systemPDFTemplateDao.selectPage(page, buildQueryWrapper(systemPDFTemplateRequest));
} }
public Page<SystemPDFTemplateEntity> listPDFTemplates(Integer page, Integer limit) {
Page<SystemPDFTemplateEntity> pageParam = new Page<>(page, limit);
if (null == page || null == limit) {
pageParam = new Page<>(0, 100);
}
return systemPDFTemplateDao.listPDFTemplates(pageParam);
}
public SystemPDFTemplateEntity selectById(String id) { public SystemPDFTemplateEntity selectById(String id) {
return systemPDFTemplateDao.selectById(id); return systemPDFTemplateDao.selectById(id);
} }
public boolean updateById(SystemPDFTemplateSaveRequest systemPDFTemplateSaveRequest) { /**
return systemPDFTemplateDao.updateByParams(systemPDFTemplateSaveRequest); *
*
* @param systemPDFTemplateSaveRequest
*/
public void updateById(SystemPDFTemplateSaveRequest systemPDFTemplateSaveRequest) {
systemPDFTemplateDao.updateByParams(systemPDFTemplateSaveRequest);
} }
public boolean insert(SystemPDFTemplateEntity systemPDFTemplateEntity) { public boolean insert(SystemPDFTemplateEntity systemPDFTemplateEntity) {
int insert = systemPDFTemplateDao.insert(systemPDFTemplateEntity); int insert = systemPDFTemplateDao.insert(systemPDFTemplateEntity);
if (insert > 0) { return insert > 0;
return true;
}
return false;
} }
public boolean deleteById(Integer id) { public boolean deleteById(Integer id) {
int i = systemPDFTemplateDao.deleteById(id); int i = systemPDFTemplateDao.deleteById(id);
if (i > 0) { return i > 0;
return true;
}
return false;
} }
/** /**

@ -96,7 +96,7 @@
employeeName=#{employeeName}, employeeName=#{employeeName},
</if> </if>
<if test="comments != null"> <if test="comments != null">
comments = #{comments}, comments = #{comments}
</if> </if>
</set> </set>
WHERE id = #{id} WHERE id = #{id}

@ -96,15 +96,14 @@
insert insert
ignore ignore
INTO system_pdf_template_relevance INTO system_pdf_template_relevance
(templateId, customerId, adminId, moduleId, localAction) (templateId, customerId, moduleId, localAction)
values (#{templateId}, values (#{templateId},
#{customerId}, #{customerId},
#{adminId},
#{moduleId}, #{moduleId},
#{localAction}) #{localAction})
</insert> </insert>
<update id="udpateRl" parameterType="com.glxp.udi.admin.entity.param.SystemPDFTemplateRelevanceEntity"> <update id="updateRl" parameterType="com.glxp.udi.admin.entity.param.SystemPDFTemplateRelevanceEntity">
UPDATE system_pdf_template_relevance UPDATE system_pdf_template_relevance
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<if test="templateId != null"> <if test="templateId != null">
@ -113,9 +112,6 @@
<if test="customerId != null"> <if test="customerId != null">
customerId = #{customerId}, customerId = #{customerId},
</if> </if>
<if test="adminId != null">
adminId = #{adminId},
</if>
<if test="moduleId != null"> <if test="moduleId != null">
moduleId = #{moduleId}, moduleId = #{moduleId},
</if> </if>

Loading…
Cancel
Save