|
@@ -377,6 +377,9 @@ public class ReleaseProductByBatchServiceImpl implements ReleaseProductByBatchSe
|
|
|
* @return 验证结果
|
|
* @return 验证结果
|
|
|
*/
|
|
*/
|
|
|
private String productReleaseValid(Long enUU, String batch) {
|
|
private String productReleaseValid(Long enUU, String batch) {
|
|
|
|
|
+ if (enUU == null || StringUtilB2C.isEmpty(batch)) {
|
|
|
|
|
+ return "0";
|
|
|
|
|
+ }
|
|
|
final Object[] obj = new Object[]{enUU, batch};
|
|
final Object[] obj = new Object[]{enUU, batch};
|
|
|
String sql = "/*#mycat:db_type=master*/ set @enuu = %s; set @batch = '%s'; call PRODUCT_RELEASE_VALID_V5(@enuu, @batch, @out); select @out";
|
|
String sql = "/*#mycat:db_type=master*/ set @enuu = %s; set @batch = '%s'; call PRODUCT_RELEASE_VALID_V5(@enuu, @batch, @out); select @out";
|
|
|
final String updateSql = String.format(sql, obj);
|
|
final String updateSql = String.format(sql, obj);
|