bug修改

fencang
anthonyywj2 3 years ago
parent d5e3baed7b
commit 52373a40ac

@ -55,15 +55,6 @@ public class BussinessChangeTypeController {
if (bussinessTypeFilterRequest.getType() != null
&& "changeEnable".equals(bussinessTypeFilterRequest.getType())
) {
// if (ConstantType.TYPE_PUT.equals(bussinessTypeEntity.getMainAction()) && !bussinessTypeEntity.isAdvanceType()) {
// BussinessChangeTypeEntity bussinessChangeTypeEntity1 = new BussinessChangeTypeEntity();
// bussinessChangeTypeEntity1.setIntro("入库自动补\"寄售出库单\"");
// bussinessChangeTypeEntity1.setChangeType(ConstantStatus.ORDER_CHANGE_ADVANCE_OUT);
// bussinessChangeTypeEntity1.setIndex(1);
// bussinessChangeTypeEntity1.setAction(bussinessTypeFilterRequest.getAction());
// bussinessChangeTypeService.insertBusChangeTypee(bussinessChangeTypeEntity1);
// bussinessTypeEntities = bussinessChangeTypeService.findByAction(bussinessTypeFilterRequest.getAction());
// } else
if (ConstantType.TYPE_OUT.equals(bussinessTypeEntity.getMainAction()) && !bussinessTypeEntity.isAdvanceType()) {
BussinessChangeTypeEntity bussinessChangeTypeEntity1 = new BussinessChangeTypeEntity();
bussinessChangeTypeEntity1.setIntro("出库自动补\"供应商入库单\"");
@ -133,7 +124,7 @@ public class BussinessChangeTypeController {
}
if (bussinessTypeEntity != null) {
bussinessChangeTypeService.updateBusChangeType(bussinessTypeEntity);
BussinessLocalTypeEntity bussinessLocalTypeEntity = bussinessLocalTypeService.findBTByAction(bussinessTypeEntity.getAction());
BussinessLocalTypeEntity bussinessLocalTypeEntity = bussinessLocalTypeService.findByAction(bussinessTypeEntity.getAction());
bussinessLocalTypeEntity.setUpdateTime(new Date());
bussinessLocalTypeService.updateBusLocalType(bussinessLocalTypeEntity);
} else {

@ -230,7 +230,7 @@ public class BussinessLocalTypeController {
}
if (bussinessTypeEntity != null) {
bussinessTypeEntity.setAction("ST" + CustomUtil.getId());
BussinessLocalTypeEntity bussinessLocalTypeEntity = bussinessLocalTypeService.findBTByAction(bussinessTypeEntity.getAction());
BussinessLocalTypeEntity bussinessLocalTypeEntity = bussinessLocalTypeService.findByAction(bussinessTypeEntity.getAction());
if (bussinessLocalTypeEntity != null) {
ResultVOUtils.error(999, "业务类型已存在!");
} else {

@ -585,32 +585,6 @@ public class OrderDetailController {
}
}
// if (!bussinessTypeEntity.getCheckEnable()
// || (orderEntity.getFromType().intValue() == ConstantStatus.FROM_CHANGE && !bussinessTypeEntity.isCheckChange())) { //不需要校验,则直接生成库存
// orderEntity.setContrastStatus(ConstantStatus.ORDER_CHECK_UN);
// orderService.updateOrder(orderEntity);
// transInoutService.checkMutiDi(orderEntity.getId());
// if (orderEntity.getContrastStatus() != ConstantStatus.ORDER_CHECK_FAIL) {
// orderService.updateOrderStatus(orderEntity.getId(), ConstantStatus.ORDER_STATUS_SUCCESS);
// if (orderEntity.getCustomerId().equals(Constant.SYSTEM_CUSTOMER_ID)) {
// invProductsTrService.genInvProducts(orderEntity.getId());
// }
// transInoutService.printOrder(orderEntity.getId());
// }
// } else {
//
// List<String> erpIds = DataTransUtil.strToErpList(orderEntity.getErpFk());
// if (erpIds != null && erpIds.size() > 0) { //已经绑定ERPID则自动校验
// List<ErpOrderEntity> erpOrderEntities = thrDataService.getStockOrders(erpIds);
// checkOrderUtils.check(orderEntity.getId(), erpOrderEntities);
// } else {
// //未绑定Id,则更改状态,等待校验
// orderEntity.setContrastStatus(ConstantStatus.ORDER_CHECK_UN);
// orderEntity.setStatus(ConstantStatus.ORDER_STATUS_CHECK);
// orderService.updateOrder(orderEntity);
// }
//
// }
return ResultVOUtils.success("后台已开始校验,请稍后刷新重试!");
}
}

@ -219,6 +219,9 @@ public class WareHouseController {
@AuthRuleAnnotation("")
@GetMapping("admin/warehouse/inout/findErrorByOrderId")
public BaseResponse findErrorByOrderId(WarehouseQueryRequest warehouseQueryRequest) {
if (StrUtil.isEmpty(warehouseQueryRequest.getOrderId())) {
return ResultVOUtils.error(500, "单据号不能为空!");
}
List<WarehouseEntity> warehousetempList = codesTempService.findByOrderId(warehouseQueryRequest);
PageInfo<WarehouseEntity> pageInfo;
pageInfo = new PageInfo<>(warehousetempList);

@ -78,7 +78,7 @@ public class SystemPDFTemplateController {
}
@AuthRuleAnnotation("system/pdf/template/list")
@AuthRuleAnnotation("system/pdf/template/pdfTemplates")
@GetMapping("/system/pdf/template/pdfTemplates")
public BaseResponse pdfTemplates(@RequestParam(value = "page", defaultValue = "1") Integer page,
@RequestParam(value = "limit", defaultValue = "100") Integer limit) {

@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
@RestController
@ -82,6 +83,7 @@ public class ThrProductsAddController {
ThrProductsEntity thrProductsEntity = new ThrProductsEntity();
thrProductsAddEntity = thrProductsAddService.selectById(thrProductsAddEntity.getId() + "");
BeanUtils.copyProperties(thrProductsAddEntity, thrProductsEntity);
thrProductsEntity.setUpdateTime(new Date());
thrProductsService.insertThrProducts(thrProductsEntity);
} else if (thrProductsAddEntity.getCheckStatus().equals(3)) {
//不通过,删除第三方产品信息表中此产品数据

@ -19,10 +19,14 @@ public interface BussinessLocalTypeService {
List<BussinessLocalTypeEntity> filterLeftJoin(BussinessLocalTypeFilterRequest bussinessTypeFilterRequest);
//单独查询
BussinessLocalTypeEntity findByAction(String action);
//关联查询
BussinessLocalTypeEntity findBTByAction(String action);
BussinessLocalTypeEntity findBTByName(String name);
boolean insertBussinessType(BussinessLocalTypeEntity bussinessLocalTypeEntity);

@ -1,6 +1,7 @@
package com.glxp.sale.admin.service.basic.impl;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageHelper;
import com.glxp.sale.admin.dao.basic.BussinessLocalTypeDao;
import com.glxp.sale.admin.entity.basic.BussinessLocalTypeEntity;
@ -78,6 +79,9 @@ public class BussinessLocalTypeServiceImpl implements BussinessLocalTypeService
@Override
public BussinessLocalTypeEntity findByAction(String action) {
if (StrUtil.isEmpty(action)) {
return null;
}
BussinessLocalTypeFilterRequest bussinessLocalTypeFilterRequest = new BussinessLocalTypeFilterRequest();
bussinessLocalTypeFilterRequest.setAction(action);
List<BussinessLocalTypeEntity> data = bussinessLocalTypeDao.filterAllList(bussinessLocalTypeFilterRequest);

@ -85,11 +85,12 @@ public class ThrDataService {
public List<ErpOrderEntity> getStockOrders(List<String> billCodes) {
if (billCodes != null && billCodes.size() > 0) {
List<ErpOrderEntity> erpOrderEntities = new ArrayList<>();
for (String billCode : billCodes) {
StockOrderFilterRequest stockOrderFilterRequest = new StockOrderFilterRequest();
stockOrderFilterRequest.setBillNo(billCode);
List<StockOrderEntity> data = stockOrderService.findAllOrders(stockOrderFilterRequest);
List<ErpOrderEntity> erpOrderEntities = new ArrayList<>();
if (data != null && data.size() > 0) {
for (StockOrderEntity thrOrderEntity : data) {
StockOrderDetailFilterRequest filterThrOrderDetailRequest = new StockOrderDetailFilterRequest();
@ -127,10 +128,9 @@ public class ThrDataService {
}
}
}
return erpOrderEntities;
}
return erpOrderEntities;
}
return null;
}

@ -1,7 +1,7 @@
# \u751F\u4EA7\u73AF\u5883
server.port=9906
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.jdbc-url=jdbc:mysql://127.0.0.1:3306/spms_ph2?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
spring.datasource.jdbc-url=jdbc:mysql://127.0.0.1:3306/spms_za?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
spring.datasource.username=root
spring.datasource.password=123456
#spring.datasource.password=123456

@ -21,7 +21,7 @@
AND spUse =#{spUse}
</if>
</where>
order by basic_bustype_local.updateTime desc
</select>
<select id="filterAllList" parameterType="com.glxp.sale.admin.req.basic.BussinessLocalTypeFilterRequest"
@ -77,6 +77,7 @@
</if>
</where>
group by basic_bussiness_type.action
</select>
@ -200,7 +201,9 @@
</select>
<select id="selectPreInByOrderType" resultType="java.lang.Boolean">
select preIn from basic_bustype_local where action = (
select preIn
from basic_bustype_local
where action = (
select localAction from basic_bussiness_type where basic_bussiness_type.action = #{action}
)
</select>

@ -44,6 +44,7 @@
</if>
</where>
GROUP BY basic_bussiness_type.id
order by basic_bussiness_type.updateTime desc
</select>
@ -115,7 +116,7 @@
</if>
</where>
order by basic_bussiness_type.`index`
</select>
<select id="filterAllByUser" parameterType="com.glxp.sale.admin.req.basic.BussinessTypeFilterRequest"
resultType="com.glxp.sale.admin.entity.basic.BussinessTypeEntity">

@ -13,7 +13,7 @@
AND `templateId` LIKE CONCAT(#{templateId},'%')
</if>
<if test="name != null and '' != name">
AND `name` LIKE CONCAT(#{name},'%')
AND `name` LIKE CONCAT('%',#{name},'%')
</if>
</where>
</select>

@ -9,7 +9,7 @@
FROM system_pdf_template
<where>
<if test="name != null and '' != name">
AND `name` LIKE CONCAT(#{name},'%')
AND `name` LIKE CONCAT('%',#{name},'%')
</if>
<if test="module != null ">
AND `module` = #{module}

Loading…
Cancel
Save