# `Sp_ProductionOrder_NoRransmitReturn` (procedure)

> @author:zhucx 
		     @date:2022-11-30 
				 @describe: 销售订单-生产订单, 无需生产返还


- **Type:** PROCEDURE
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sProInParam` | `varchar(10000)` |
| 2 | IN | `sMakePerson` | `varchar(100)` |
| 3 | IN | `sBrId` | `varchar(100)` |
| 4 | IN | `sSuId` | `varchar(100)` |
| 5 | OUT | `sReturn` | `varchar(1000)` |
| 6 | OUT | `sCode` | `int` |

## Body

_Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURE `Sp_ProductionOrder_NoRransmitReturn`'`._

## Narrative

**Business context:** 生产管理 → 订单生产流程 → 销售订单->生产工单 — 无需生产返还 toolbar action. Inverse of `Sp_ProductionOrder_NoRransmit`: re-enrols a sales-order slave row back into the production flow after it was previously marked "no production needed".

**What it does:** Walks `$.params[*].value[*].sSlaveId`. For each `salsalesorderslave.sId`, `UPDATE salsalesorderslave SET bProductionOrder=0, bNotProductionOrder=0, tProductionOrder=SYSDATE(), sProductionOrder=sMakePerson, dAuxiliaryQty=0 WHERE sId=p_sId AND sBrandsId=sBrId AND sSubsidiaryId=sSuId`. No validation — straight flag clear.

**Invocation:** Dispatched dynamically by `GenericProcedureCallServiceImpl.doGenericProcedureCall()` — toolbar button on 销售订单->生产工单, paired with `Sp_ProductionOrder_NoRransmit`. No xly-src install script under this name; DB-only — candidate for maintainer audit.
