/// <summary>
        /// 更新
        /// </summary>
        /// <returns></returns>
        public async Task <MessageModel <string> > UpdateShipCart(CoatUpdateParam model)
        {
            MessageModel <string> message = new MessageModel <string>();

            CoatModel cmodel = _mapper.Map <CoatModel>(model);
            bool      bl     = await _dal.CoatUpdate(cmodel);

            cmodel.itemName  = "追加投入数量";
            cmodel.itemValue = model.shipCard_update + "|" + cmodel.input_sum;
            bool bladd = await _dal.AddMetrial(cmodel);

            if (!bl || !bladd)
            {
                message.msg = "更新失败:" + model;
                return(message);
            }
            message.success = true;
            message.msg     = "";
            return(message);
        }
Esempio n. 2
0
 public async Task <MessageModel <string> > UpdateShipCart(CoatUpdateParam model)
 {
     return(await _coatServices.UpdateShipCart(model));
 }