Showing
10 changed files
with
64 additions
and
5 deletions
| @@ -86,6 +86,12 @@ public class OrderChangeRecordBo extends BaseBo<OrderInfoChangeRecord> { | @@ -86,6 +86,12 @@ public class OrderChangeRecordBo extends BaseBo<OrderInfoChangeRecord> { | ||
| 86 | private String executionStandard; | 86 | private String executionStandard; |
| 87 | 87 | ||
| 88 | /** | 88 | /** |
| 89 | + * 执行标准备注 | ||
| 90 | + */ | ||
| 91 | + @ApiModelProperty("执行标准备注") | ||
| 92 | + private String executionStandardRemarks; | ||
| 93 | + | ||
| 94 | + /** | ||
| 89 | * 开票情况 | 95 | * 开票情况 |
| 90 | */ | 96 | */ |
| 91 | @ApiModelProperty("开票情况") | 97 | @ApiModelProperty("开票情况") |
| @@ -295,7 +295,7 @@ public class ScSelectorController extends DefaultBaseController { | @@ -295,7 +295,7 @@ public class ScSelectorController extends DefaultBaseController { | ||
| 295 | if (CollectionUtil.isEmpty(ids)) { | 295 | if (CollectionUtil.isEmpty(ids)) { |
| 296 | return InvokeResultBuilder.success(CollectionUtil.emptyList()); | 296 | return InvokeResultBuilder.success(CollectionUtil.emptyList()); |
| 297 | } | 297 | } |
| 298 | - List<PurchaseOrderInfo> orderInfoList = orderInfoService.listByIds(ids); | 298 | + List<PurchaseOrderInfo> orderInfoList = orderInfoService.findById(ids); |
| 299 | if (CollectionUtils.isEmpty(orderInfoList)) { | 299 | if (CollectionUtils.isEmpty(orderInfoList)) { |
| 300 | return new InvokeResult<>(); | 300 | return new InvokeResult<>(); |
| 301 | } | 301 | } |
| @@ -78,6 +78,11 @@ public class OrderInfoChangeRecord extends BaseEntity implements BaseDto { | @@ -78,6 +78,11 @@ public class OrderInfoChangeRecord extends BaseEntity implements BaseDto { | ||
| 78 | private String executionStandard; | 78 | private String executionStandard; |
| 79 | 79 | ||
| 80 | /** | 80 | /** |
| 81 | + * 执行标准备注 | ||
| 82 | + */ | ||
| 83 | + private String executionStandardRemarks; | ||
| 84 | + | ||
| 85 | + /** | ||
| 81 | * 开票情况 | 86 | * 开票情况 |
| 82 | */ | 87 | */ |
| 83 | private String invoicingStatus; | 88 | private String invoicingStatus; |
| @@ -136,6 +136,9 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR | @@ -136,6 +136,9 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR | ||
| 136 | if (!StringUtil.isBlank(vo.getExecutionStandard())) { | 136 | if (!StringUtil.isBlank(vo.getExecutionStandard())) { |
| 137 | data.setExecutionStandard(vo.getExecutionStandard()); | 137 | data.setExecutionStandard(vo.getExecutionStandard()); |
| 138 | } | 138 | } |
| 139 | + if (!StringUtil.isBlank(vo.getExecutionStandardRemarks())) { | ||
| 140 | + data.setExecutionStandardRemarks(vo.getExecutionStandardRemarks()); | ||
| 141 | + } | ||
| 139 | if (!StringUtil.isBlank(vo.getInvoicingStatus())) { | 142 | if (!StringUtil.isBlank(vo.getInvoicingStatus())) { |
| 140 | data.setInvoicingStatus(vo.getInvoicingStatus()); | 143 | data.setInvoicingStatus(vo.getInvoicingStatus()); |
| 141 | } | 144 | } |
| @@ -172,6 +175,12 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR | @@ -172,6 +175,12 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR | ||
| 172 | if (!StringUtil.isBlank(vo.getWorkshopId())) { | 175 | if (!StringUtil.isBlank(vo.getWorkshopId())) { |
| 173 | data.setWorkshopId(vo.getWorkshopId()); | 176 | data.setWorkshopId(vo.getWorkshopId()); |
| 174 | } | 177 | } |
| 178 | + if (vo.getTotalQuantity() != null) { | ||
| 179 | + data.setTotalQuantity(vo.getTotalQuantity()); | ||
| 180 | + } | ||
| 181 | + if (vo.getPackagingFee() != null) { | ||
| 182 | + data.setPackagingFee(vo.getPackagingFee()); | ||
| 183 | + } | ||
| 175 | getBaseMapper().insert(data); | 184 | getBaseMapper().insert(data); |
| 176 | // 处理订货单订货单物料行 | 185 | // 处理订货单订货单物料行 |
| 177 | List<CreatePurchaseOrderLineVo> orderLineVoList = vo.getOrderSpecList(); | 186 | List<CreatePurchaseOrderLineVo> orderLineVoList = vo.getOrderSpecList(); |
| @@ -210,6 +219,7 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR | @@ -210,6 +219,7 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR | ||
| 210 | .set(OrderInfoChangeRecord::getDeliveryMethod, StringUtil.isBlank(vo.getDeliveryMethod()) ? null : vo.getDeliveryMethod()) | 219 | .set(OrderInfoChangeRecord::getDeliveryMethod, StringUtil.isBlank(vo.getDeliveryMethod()) ? null : vo.getDeliveryMethod()) |
| 211 | .set(OrderInfoChangeRecord::getPriceListNo, StringUtil.isBlank(vo.getPriceListNo()) ? null : vo.getPriceListNo()) | 220 | .set(OrderInfoChangeRecord::getPriceListNo, StringUtil.isBlank(vo.getPriceListNo()) ? null : vo.getPriceListNo()) |
| 212 | .set(OrderInfoChangeRecord::getExecutionStandard, StringUtil.isBlank(vo.getExecutionStandard()) ? null : vo.getExecutionStandard()) | 221 | .set(OrderInfoChangeRecord::getExecutionStandard, StringUtil.isBlank(vo.getExecutionStandard()) ? null : vo.getExecutionStandard()) |
| 222 | + .set(OrderInfoChangeRecord::getExecutionStandardRemarks, StringUtil.isBlank(vo.getExecutionStandardRemarks()) ? null : vo.getExecutionStandardRemarks()) | ||
| 213 | .set(OrderInfoChangeRecord::getInvoicingStatus, StringUtil.isBlank(vo.getInvoicingStatus()) ? null : vo.getInvoicingStatus()) | 223 | .set(OrderInfoChangeRecord::getInvoicingStatus, StringUtil.isBlank(vo.getInvoicingStatus()) ? null : vo.getInvoicingStatus()) |
| 214 | .set(OrderInfoChangeRecord::getShippingCost, StringUtil.isBlank(vo.getShippingCost()) ? null : vo.getShippingCost()) | 224 | .set(OrderInfoChangeRecord::getShippingCost, StringUtil.isBlank(vo.getShippingCost()) ? null : vo.getShippingCost()) |
| 215 | .set(OrderInfoChangeRecord::getPieceWeightHeader, StringUtil.isBlank(vo.getPieceWeightHeader()) ? null : vo.getPieceWeightHeader()) | 225 | .set(OrderInfoChangeRecord::getPieceWeightHeader, StringUtil.isBlank(vo.getPieceWeightHeader()) ? null : vo.getPieceWeightHeader()) |
| @@ -224,6 +234,8 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR | @@ -224,6 +234,8 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR | ||
| 224 | .set(OrderInfoChangeRecord::getDeptId, StringUtil.isBlank(vo.getDeptId()) ? null : vo.getDeptId()) | 234 | .set(OrderInfoChangeRecord::getDeptId, StringUtil.isBlank(vo.getDeptId()) ? null : vo.getDeptId()) |
| 225 | .set(OrderInfoChangeRecord::getWorkshopId, StringUtil.isBlank(vo.getWorkshopId()) ? null : vo.getWorkshopId()) | 235 | .set(OrderInfoChangeRecord::getWorkshopId, StringUtil.isBlank(vo.getWorkshopId()) ? null : vo.getWorkshopId()) |
| 226 | .set(OrderInfoChangeRecord::getCustomerCreditId, StringUtil.isBlank(vo.getCustomerCreditId()) ? null : vo.getCustomerCreditId()) | 236 | .set(OrderInfoChangeRecord::getCustomerCreditId, StringUtil.isBlank(vo.getCustomerCreditId()) ? null : vo.getCustomerCreditId()) |
| 237 | + .set(OrderInfoChangeRecord::getTotalQuantity, vo.getTotalQuantity() == null ? null : vo.getTotalQuantity()) | ||
| 238 | + .set(OrderInfoChangeRecord::getPackagingFee, vo.getPackagingFee() == null ? null : vo.getPackagingFee()) | ||
| 227 | .eq(OrderInfoChangeRecord::getId, vo.getId()); | 239 | .eq(OrderInfoChangeRecord::getId, vo.getId()); |
| 228 | getBaseMapper().update(updateWrapper); | 240 | getBaseMapper().update(updateWrapper); |
| 229 | // 更新订货单物料行 | 241 | // 更新订货单物料行 |
| @@ -37,10 +37,7 @@ import org.springframework.transaction.annotation.Transactional; | @@ -37,10 +37,7 @@ import org.springframework.transaction.annotation.Transactional; | ||
| 37 | import org.springframework.stereotype.Service; | 37 | import org.springframework.stereotype.Service; |
| 38 | 38 | ||
| 39 | import javax.annotation.Resource; | 39 | import javax.annotation.Resource; |
| 40 | -import java.util.ArrayList; | ||
| 41 | -import java.util.HashMap; | ||
| 42 | -import java.util.List; | ||
| 43 | -import java.util.Map; | 40 | +import java.util.*; |
| 44 | import java.util.stream.Collectors; | 41 | import java.util.stream.Collectors; |
| 45 | 42 | ||
| 46 | @Service | 43 | @Service |
| @@ -112,6 +109,14 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde | @@ -112,6 +109,14 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde | ||
| 112 | return getBaseMapper().findById(id); | 109 | return getBaseMapper().findById(id); |
| 113 | } | 110 | } |
| 114 | 111 | ||
| 112 | + @Override | ||
| 113 | + public List<PurchaseOrderInfo> findById(List<String> ids) { | ||
| 114 | + if (CollectionUtils.isEmpty(ids)) { | ||
| 115 | + return new ArrayList<>(); | ||
| 116 | + } | ||
| 117 | + return getBaseMapper().queryByIds(ids); | ||
| 118 | + } | ||
| 119 | + | ||
| 115 | @OpLog(type = OtherOpLogType.class, name = "新增订货单表,ID:{}", params = {"#id"}) | 120 | @OpLog(type = OtherOpLogType.class, name = "新增订货单表,ID:{}", params = {"#id"}) |
| 116 | @Transactional(rollbackFor = Exception.class) | 121 | @Transactional(rollbackFor = Exception.class) |
| 117 | @Override | 122 | @Override |
| @@ -30,4 +30,12 @@ public interface PurchaseOrderInfoMapper extends BaseMapper<PurchaseOrderInfo> { | @@ -30,4 +30,12 @@ public interface PurchaseOrderInfoMapper extends BaseMapper<PurchaseOrderInfo> { | ||
| 30 | List<PurchaseOrderInfo> queryCanRevokeOrChangeList(@Param("vo") QueryPurchaseOrderInfoVo vo); | 30 | List<PurchaseOrderInfo> queryCanRevokeOrChangeList(@Param("vo") QueryPurchaseOrderInfoVo vo); |
| 31 | 31 | ||
| 32 | PurchaseOrderInfo findById(@Param("id") String id); | 32 | PurchaseOrderInfo findById(@Param("id") String id); |
| 33 | + | ||
| 34 | + /** | ||
| 35 | + * 根据ID批量查询 | ||
| 36 | + * | ||
| 37 | + * @param ids 主键集合 | ||
| 38 | + * @return List<PurchaseOrderInfo> | ||
| 39 | + */ | ||
| 40 | + List<PurchaseOrderInfo> queryByIds(@Param("ids") List<String> ids); | ||
| 33 | } | 41 | } |
| @@ -45,6 +45,7 @@ public interface PurchaseOrderInfoService extends BaseMpService<PurchaseOrderInf | @@ -45,6 +45,7 @@ public interface PurchaseOrderInfoService extends BaseMpService<PurchaseOrderInf | ||
| 45 | * @return | 45 | * @return |
| 46 | */ | 46 | */ |
| 47 | PurchaseOrderInfo findById(String id); | 47 | PurchaseOrderInfo findById(String id); |
| 48 | + List<PurchaseOrderInfo> findById(List<String> ids); | ||
| 48 | 49 | ||
| 49 | /** | 50 | /** |
| 50 | * 创建 | 51 | * 创建 |
| @@ -93,6 +93,13 @@ public class CreateOrderChangeRecordVo implements BaseVo, Serializable { | @@ -93,6 +93,13 @@ public class CreateOrderChangeRecordVo implements BaseVo, Serializable { | ||
| 93 | private String executionStandard; | 93 | private String executionStandard; |
| 94 | 94 | ||
| 95 | /** | 95 | /** |
| 96 | + * 执行标准备注 | ||
| 97 | + */ | ||
| 98 | + @ApiModelProperty("执行标准备注") | ||
| 99 | + @Length(message = "执行标准备注最多允许500个字符!") | ||
| 100 | + private String executionStandardRemarks; | ||
| 101 | + | ||
| 102 | + /** | ||
| 96 | * 开票情况 | 103 | * 开票情况 |
| 97 | */ | 104 | */ |
| 98 | @ApiModelProperty("开票情况") | 105 | @ApiModelProperty("开票情况") |
| @@ -97,6 +97,13 @@ public class UpdateOrderChangeRecordVo implements BaseVo, Serializable { | @@ -97,6 +97,13 @@ public class UpdateOrderChangeRecordVo implements BaseVo, Serializable { | ||
| 97 | private String executionStandard; | 97 | private String executionStandard; |
| 98 | 98 | ||
| 99 | /** | 99 | /** |
| 100 | + * 执行标准备注 | ||
| 101 | + */ | ||
| 102 | + @ApiModelProperty("执行标准备注") | ||
| 103 | + @Length(message = "执行标准备注最多允许500个字符!") | ||
| 104 | + private String executionStandardRemarks; | ||
| 105 | + | ||
| 106 | + /** | ||
| 100 | * 开票情况 | 107 | * 开票情况 |
| 101 | */ | 108 | */ |
| 102 | @ApiModelProperty("开票情况") | 109 | @ApiModelProperty("开票情况") |
| @@ -203,4 +203,12 @@ | @@ -203,4 +203,12 @@ | ||
| 203 | </if> | 203 | </if> |
| 204 | </where> | 204 | </where> |
| 205 | </select> | 205 | </select> |
| 206 | + | ||
| 207 | + <select id="queryByIds" resultType="com.lframework.xingyun.sc.entity.PurchaseOrderInfo"> | ||
| 208 | + <include refid="PurchaseOrderInfo_sql"/> | ||
| 209 | + where tb.id in | ||
| 210 | + <foreach collection="ids" open="(" separator="," close=")" item="id"> | ||
| 211 | + #{id} | ||
| 212 | + </foreach> | ||
| 213 | + </select> | ||
| 206 | </mapper> | 214 | </mapper> |