调整单元退货仓库收货接口,新增单元退货仓库收货开始和结束接口

This commit is contained in:
曹磊 2025-12-15 14:58:09 +08:00
parent b38bf4bd11
commit 288814add8
4 changed files with 76 additions and 1 deletions

View File

@ -71,4 +71,16 @@ public interface IInvoicingOrdersApi {
*/ */
Result<String> flowDythCksh(InvoicingOrdersEntity invoicingOrdersEntity); Result<String> flowDythCksh(InvoicingOrdersEntity invoicingOrdersEntity);
/**
* 单元退货流程库管点击开始
* @param invoicingOrdersEntity
*/
Result<String> beginDyHtOrder(InvoicingOrdersEntity invoicingOrdersEntity);
/**
* 单元退货流程库管点击完成
* @param invoicingOrdersEntity
*/
Result<String> finishDyThOrder(InvoicingOrdersEntity invoicingOrdersEntity);
} }

View File

@ -187,10 +187,16 @@
<if test="izFinish != null and izFinish != ''"> <if test="izFinish != null and izFinish != ''">
,iz_finish = #{izFinish} ,iz_finish = #{izFinish}
</if> </if>
<if test="bizId != null and bizId != ''">
,biz_id = #{bizId}
</if>
<where> <where>
<if test="id != null and id != ''"> <if test="id != null and id != ''">
and id = #{id} and id = #{id}
</if> </if>
<if test="poolId != null and poolId != ''">
and pool_id = #{poolId}
</if>
<if test="bizId != null and bizId != ''"> <if test="bizId != null and bizId != ''">
and biz_id = #{bizId} and biz_id = #{bizId}
</if> </if>
@ -209,4 +215,5 @@
</where> </where>
</update> </update>
</mapper> </mapper>

View File

@ -286,4 +286,55 @@ public class InvoicingOrdersServiceImpl extends ServiceImpl<InvoicingOrdersMappe
return Result.ok(); return Result.ok();
} }
/**
* 单元退货流程库管点击开始
* @param invoicingOrdersEntity
*/
@Override
public Result<String> beginDyHtOrder(InvoicingOrdersEntity invoicingOrdersEntity){
try {
Calendar c = Calendar.getInstance();
InvoicingOrders entity = new InvoicingOrders();
entity.setPoolId(invoicingOrdersEntity.getPoolId());
entity.setBeginTime(c.getTime());
entity.setIzStart("Y");
entity.setUpdateBy(invoicingOrdersEntity.getInitiatorId());
entity.setUpdateTime(c.getTime());
entity.setBizType(invoicingOrdersEntity.getFlowCode());
baseMapper.updateOrder(entity);
}catch (Exception e){
return Result.error("开始失败:"+e.getMessage());
}
return Result.ok("开始成功");
}
/**
* 单元退货流程库管点击完成
* @param invoicingOrdersEntity
*/
@Override
public Result<String> finishDyThOrder(InvoicingOrdersEntity invoicingOrdersEntity){
try {
Calendar c = Calendar.getInstance();
QueryWrapper<InvoicingOrders> ioQw = new QueryWrapper<>();
ioQw.eq("pool_id", invoicingOrdersEntity.getPoolId());
InvoicingOrders order = this.getOne(ioQw);
InvoicingOrders DirectivePrice = baseMapper.getDirectivePrice(order.getDirectiveId());//获取服务指令价格
InvoicingOrders entity = new InvoicingOrders();
entity.setPoolId(invoicingOrdersEntity.getPoolId());
entity.setBizId(invoicingOrdersEntity.getBizId());
entity.setFinishTime(c.getTime());
entity.setIzFinish("Y");
entity.setUpdateBy(invoicingOrdersEntity.getInitiatorId());
entity.setUpdateTime(c.getTime());
entity.setBizType(invoicingOrdersEntity.getFlowCode());
entity.setTollPrice(DirectivePrice.getTollPrice());
entity.setComPrice(DirectivePrice.getComPrice());
baseMapper.updateOrder(entity);
}catch (Exception e){
return Result.error("完成失败:"+e.getMessage());
}
return Result.ok("完成成功");
}
} }

View File

@ -74,7 +74,12 @@ public class ThOrdersServiceImpl extends ServiceImpl<InvoicingOrdersMapper, Invo
Calendar c = Calendar.getInstance(); Calendar c = Calendar.getInstance();
getNetImages(flowSub); getNetImages(flowSub);
InvoicingOrders nextEntity = new InvoicingOrders(); InvoicingOrders nextEntity = new InvoicingOrders();
nextEntity.setBizId(invoicingOrdersEntity.getBizId()); // if(invoicingOrdersEntity.getPoolId()!=null&&!invoicingOrdersEntity.getPoolId().equals("")){
nextEntity.setPoolId(invoicingOrdersEntity.getPoolId());
// }
// if(invoicingOrdersEntity.getBizId()!=null&&!invoicingOrdersEntity.getBizId().equals("")){
// nextEntity.setBizId(invoicingOrdersEntity.getBizId());
// }
nextEntity.setBizType(bizType); nextEntity.setBizType(bizType);
nextEntity.setNuId(invoicingOrdersEntity.getNuId()); nextEntity.setNuId(invoicingOrdersEntity.getNuId());
nextEntity.setNuName(invoicingOrdersEntity.getNuName()); nextEntity.setNuName(invoicingOrdersEntity.getNuName());