wms成品部分修改39

master
mengjiao 10 months ago
parent 4eb381790d
commit 38075ba1f2

@ -120,6 +120,16 @@ public class OdsProductEmbryoInventoryController extends BaseController {
return toAjax(odsProductEmbryoInventoryService.updateOdsProductEmbryoInventory(odsProductEmbryoInventory));
}
/**
*
* @param odsProductEmbryoInventory
* @return
*/
@PostMapping("/approve")
public AjaxResult approve(@RequestBody OdsProductEmbryoInventory odsProductEmbryoInventory) {
String relust= odsProductEmbryoInventoryService.approve(odsProductEmbryoInventory);
return success(relust);
}
/**
*
*/

@ -77,4 +77,6 @@ public interface IOdsProductEmbryoInventoryService {
List<OdsProductEmbryoInventoryCorrelation> selectObtainTheAssociated(OdsProductEmbryoInventory odsProductEmbryoInventory);
String AdjustInventoryList(OdsProductEmbryoInventory odsProductEmbryoInventory);
String approve(OdsProductEmbryoInventory odsProductEmbryoInventory);
}

@ -306,6 +306,22 @@ public class OdsProductEmbryoInventoryServiceImpl implements IOdsProductEmbryoIn
return result;
}
@Override
@DS("#header.poolName")
public String approve(OdsProductEmbryoInventory odsProductEmbryoInventory) {
String result="操作完成";
OdsProductEmbryoInventory odsProductEmbryoInventory11=new OdsProductEmbryoInventory();
odsProductEmbryoInventory11.setID(odsProductEmbryoInventory.getID());
odsProductEmbryoInventory11.setUserDefined4(odsProductEmbryoInventory.getUserDefined4());//-审核意见
odsProductEmbryoInventory11.setUserDefined8(SecurityUtils.getUsername());//审核人
odsProductEmbryoInventory11.setOrderStatus(odsProductEmbryoInventory.getOrderStatus());//2驳回3已完成
odsProductEmbryoInventory11.setUserDefined9(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));//审核时间
odsProductEmbryoInventory11.setLastUpdateBy(SecurityUtils.getUsername());
odsProductEmbryoInventory11.setLastUpdateDate(new Date());
odsProductEmbryoInventoryMapper.updateOdsProductEmbryoInventory(odsProductEmbryoInventory11);
return result;
}
@DS("#header.poolName")
private String getPurcode(String factorycode, String orderType) {

Loading…
Cancel
Save