1.单据详情信息添加发票相关字段

2.增加更新单据详情信息接口
master
MrZhai 3 years ago
parent 6f3f7f9214
commit bff063717f

@ -248,8 +248,8 @@ public class StockOrderDetailController {
List<StockOrderDetailEntity> stockOrderDetailEntityList = new ArrayList<>();
List<StockOrderDetailEntity> originDatas = stockOrderIdsRequest.getStockOrderLists();
if(stockOrderIdsRequest.getDatas()== null && stockOrderIdsRequest.getDatas().size()<1){
return ResultVOUtils.error(500,"未选择产品!");
if (stockOrderIdsRequest.getDatas() == null && stockOrderIdsRequest.getDatas().size() < 1) {
return ResultVOUtils.error(500, "未选择产品!");
}
for (StockSelectDataEntity stockSelectDataEntity : stockOrderIdsRequest.getDatas()) {
CompanyProductRelevanceRequest companyProductRelevanceRequest = new CompanyProductRelevanceRequest();
@ -554,4 +554,19 @@ public class StockOrderDetailController {
AuthAdmin authAdmin = authAdminService.findById(Long.parseLong(userId));
return authAdmin.getCustomerId() + "";
}
/**
*
*
* @param stockOrderDetailEntities
* @return
*/
@AuthRuleAnnotation("")
@PostMapping("/udiwms/stock/order/detail/update")
public BaseResponse updateStockOrderDetail(StockOrderDetailEntity stockOrderDetailEntity) {
if (null != stockOrderDetailEntity)
stockOrderDetailService.updateById(stockOrderDetailEntity);
return ResultVOUtils.success("更新成功");
}
}

@ -22,4 +22,16 @@ public class StockOrderDetailEntity {
private String zczbhhzbapzbh;
private BigDecimal price;
//销售清单号(第二票)
private String secSalesListNo;
//销售发票号(第一票)
private String firstSalesInvNo;
//销售发票号(第二票)
private String secSalesInvNo;
//开票日期
private String invoiceDate;
}

@ -116,7 +116,10 @@
<if test="count != null">count=#{count},</if>
<if test="reCount != null">reCount=#{reCount},</if>
<if test="price != null">price=#{price},</if>
<if test="secSalesListNo != null != null">secSalesListNo=#{secSalesListNo},</if>
<if test="firstSalesInvNo != null">firstSalesInvNo=#{firstSalesInvNo},</if>
<if test="secSalesInvNo != null">secSalesInvNo=#{secSalesInvNo},</if>
<if test="invoiceDate != null">invoiceDate=#{invoiceDate},</if>
</set>
WHERE id = #{id}
</update>

Loading…
Cancel
Save