|
|
|
@ -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 {
|
|
|
|
|