Showing
10 changed files
with
64 additions
and
5 deletions
| ... | ... | @@ -86,6 +86,12 @@ public class OrderChangeRecordBo extends BaseBo<OrderInfoChangeRecord> { |
| 86 | 86 | private String executionStandard; |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | + * 执行标准备注 | |
| 90 | + */ | |
| 91 | + @ApiModelProperty("执行标准备注") | |
| 92 | + private String executionStandardRemarks; | |
| 93 | + | |
| 94 | + /** | |
| 89 | 95 | * 开票情况 |
| 90 | 96 | */ |
| 91 | 97 | @ApiModelProperty("开票情况") | ... | ... |
| ... | ... | @@ -295,7 +295,7 @@ public class ScSelectorController extends DefaultBaseController { |
| 295 | 295 | if (CollectionUtil.isEmpty(ids)) { |
| 296 | 296 | return InvokeResultBuilder.success(CollectionUtil.emptyList()); |
| 297 | 297 | } |
| 298 | - List<PurchaseOrderInfo> orderInfoList = orderInfoService.listByIds(ids); | |
| 298 | + List<PurchaseOrderInfo> orderInfoList = orderInfoService.findById(ids); | |
| 299 | 299 | if (CollectionUtils.isEmpty(orderInfoList)) { |
| 300 | 300 | return new InvokeResult<>(); |
| 301 | 301 | } | ... | ... |
| ... | ... | @@ -78,6 +78,11 @@ public class OrderInfoChangeRecord extends BaseEntity implements BaseDto { |
| 78 | 78 | private String executionStandard; |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | + * 执行标准备注 | |
| 82 | + */ | |
| 83 | + private String executionStandardRemarks; | |
| 84 | + | |
| 85 | + /** | |
| 81 | 86 | * 开票情况 |
| 82 | 87 | */ |
| 83 | 88 | private String invoicingStatus; | ... | ... |
| ... | ... | @@ -136,6 +136,9 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR |
| 136 | 136 | if (!StringUtil.isBlank(vo.getExecutionStandard())) { |
| 137 | 137 | data.setExecutionStandard(vo.getExecutionStandard()); |
| 138 | 138 | } |
| 139 | + if (!StringUtil.isBlank(vo.getExecutionStandardRemarks())) { | |
| 140 | + data.setExecutionStandardRemarks(vo.getExecutionStandardRemarks()); | |
| 141 | + } | |
| 139 | 142 | if (!StringUtil.isBlank(vo.getInvoicingStatus())) { |
| 140 | 143 | data.setInvoicingStatus(vo.getInvoicingStatus()); |
| 141 | 144 | } |
| ... | ... | @@ -172,6 +175,12 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR |
| 172 | 175 | if (!StringUtil.isBlank(vo.getWorkshopId())) { |
| 173 | 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 | 184 | getBaseMapper().insert(data); |
| 176 | 185 | // 处理订货单订货单物料行 |
| 177 | 186 | List<CreatePurchaseOrderLineVo> orderLineVoList = vo.getOrderSpecList(); |
| ... | ... | @@ -210,6 +219,7 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR |
| 210 | 219 | .set(OrderInfoChangeRecord::getDeliveryMethod, StringUtil.isBlank(vo.getDeliveryMethod()) ? null : vo.getDeliveryMethod()) |
| 211 | 220 | .set(OrderInfoChangeRecord::getPriceListNo, StringUtil.isBlank(vo.getPriceListNo()) ? null : vo.getPriceListNo()) |
| 212 | 221 | .set(OrderInfoChangeRecord::getExecutionStandard, StringUtil.isBlank(vo.getExecutionStandard()) ? null : vo.getExecutionStandard()) |
| 222 | + .set(OrderInfoChangeRecord::getExecutionStandardRemarks, StringUtil.isBlank(vo.getExecutionStandardRemarks()) ? null : vo.getExecutionStandardRemarks()) | |
| 213 | 223 | .set(OrderInfoChangeRecord::getInvoicingStatus, StringUtil.isBlank(vo.getInvoicingStatus()) ? null : vo.getInvoicingStatus()) |
| 214 | 224 | .set(OrderInfoChangeRecord::getShippingCost, StringUtil.isBlank(vo.getShippingCost()) ? null : vo.getShippingCost()) |
| 215 | 225 | .set(OrderInfoChangeRecord::getPieceWeightHeader, StringUtil.isBlank(vo.getPieceWeightHeader()) ? null : vo.getPieceWeightHeader()) |
| ... | ... | @@ -224,6 +234,8 @@ public class OrderChangeRecordServiceImpl extends BaseMpServiceImpl<OrderChangeR |
| 224 | 234 | .set(OrderInfoChangeRecord::getDeptId, StringUtil.isBlank(vo.getDeptId()) ? null : vo.getDeptId()) |
| 225 | 235 | .set(OrderInfoChangeRecord::getWorkshopId, StringUtil.isBlank(vo.getWorkshopId()) ? null : vo.getWorkshopId()) |
| 226 | 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 | 239 | .eq(OrderInfoChangeRecord::getId, vo.getId()); |
| 228 | 240 | getBaseMapper().update(updateWrapper); |
| 229 | 241 | // 更新订货单物料行 | ... | ... |
| ... | ... | @@ -37,10 +37,7 @@ import org.springframework.transaction.annotation.Transactional; |
| 37 | 37 | import org.springframework.stereotype.Service; |
| 38 | 38 | |
| 39 | 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 | 41 | import java.util.stream.Collectors; |
| 45 | 42 | |
| 46 | 43 | @Service |
| ... | ... | @@ -112,6 +109,14 @@ public class PurchaseOrderInfoServiceImpl extends BaseMpServiceImpl<PurchaseOrde |
| 112 | 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 | 120 | @OpLog(type = OtherOpLogType.class, name = "新增订货单表,ID:{}", params = {"#id"}) |
| 116 | 121 | @Transactional(rollbackFor = Exception.class) |
| 117 | 122 | @Override | ... | ... |
| ... | ... | @@ -30,4 +30,12 @@ public interface PurchaseOrderInfoMapper extends BaseMapper<PurchaseOrderInfo> { |
| 30 | 30 | List<PurchaseOrderInfo> queryCanRevokeOrChangeList(@Param("vo") QueryPurchaseOrderInfoVo vo); |
| 31 | 31 | |
| 32 | 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 | } | ... | ... |
| ... | ... | @@ -93,6 +93,13 @@ public class CreateOrderChangeRecordVo implements BaseVo, Serializable { |
| 93 | 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 | 105 | @ApiModelProperty("开票情况") | ... | ... |
| ... | ... | @@ -97,6 +97,13 @@ public class UpdateOrderChangeRecordVo implements BaseVo, Serializable { |
| 97 | 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 | 109 | @ApiModelProperty("开票情况") | ... | ... |
| ... | ... | @@ -203,4 +203,12 @@ |
| 203 | 203 | </if> |
| 204 | 204 | </where> |
| 205 | 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 | 214 | </mapper> | ... | ... |