测试修改
This commit is contained in:
@@ -6,15 +6,15 @@ import com.ruoyi.out.outStockout.domain.OutStockout;
|
||||
|
||||
/**
|
||||
* 出库主单Mapper接口
|
||||
*
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-05-20
|
||||
*/
|
||||
public interface OutStockoutMapper
|
||||
public interface OutStockoutMapper
|
||||
{
|
||||
/**
|
||||
* 查询出库主单
|
||||
*
|
||||
*
|
||||
* @param stockoutGuid 出库主单主键
|
||||
* @return 出库主单
|
||||
*/
|
||||
@@ -22,7 +22,7 @@ public interface OutStockoutMapper
|
||||
|
||||
/**
|
||||
* 查询出库主单列表
|
||||
*
|
||||
*
|
||||
* @param outStockout 出库主单
|
||||
* @return 出库主单集合
|
||||
*/
|
||||
@@ -30,7 +30,7 @@ public interface OutStockoutMapper
|
||||
|
||||
/**
|
||||
* 新增出库主单
|
||||
*
|
||||
*
|
||||
* @param outStockout 出库主单
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -38,7 +38,7 @@ public interface OutStockoutMapper
|
||||
|
||||
/**
|
||||
* 修改出库主单
|
||||
*
|
||||
*
|
||||
* @param outStockout 出库主单
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -46,7 +46,7 @@ public interface OutStockoutMapper
|
||||
|
||||
/**
|
||||
* 删除出库主单
|
||||
*
|
||||
*
|
||||
* @param stockoutGuid 出库主单主键
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -54,7 +54,7 @@ public interface OutStockoutMapper
|
||||
|
||||
/**
|
||||
* 批量删除出库主单
|
||||
*
|
||||
*
|
||||
* @param stockoutGuids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -63,4 +63,6 @@ public interface OutStockoutMapper
|
||||
public void updateOutStockoutStatus(HashMap<String,String> map);
|
||||
|
||||
void autoAllot(HashMap<String, String> map);
|
||||
|
||||
OutStockout selectOutStockoutByStockoutId(String stockoutId);
|
||||
}
|
||||
|
||||
@@ -158,6 +158,15 @@ public class OutStockoutServiceImpl implements IOutStockoutService
|
||||
|
||||
@Override
|
||||
public AjaxResult autoAllot(String stockoutId) {
|
||||
|
||||
OutStockout outStockout = outStockoutMapper.selectOutStockoutByStockoutId(stockoutId);
|
||||
if (outStockout == null){
|
||||
return AjaxResult.warn("未找到出库单");
|
||||
}
|
||||
if ("1".equals(outStockout.getStatus())){
|
||||
return AjaxResult.warn("出库单状态未审核");
|
||||
}
|
||||
|
||||
HashMap<String, String> map = new HashMap<>();
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
OutStockoutDetail outStockoutDetail = new OutStockoutDetail();
|
||||
|
||||
Reference in New Issue
Block a user