@@ -269,7 +269,7 @@ public class DzCardsController extends BaseController
if (null != sysUser.getDirectedStudy()) {
cardUserBody.setDirectionStudy(JSONArray.parse(sysUser.getDirectedStudy()));
}
- BeanUtils.copyProperties(dzCards, cardUserBody, "password");
+ BeanUtils.copyProperties(dzCards, cardUserBody, "password", "nickName", "location", "examType", "endYear");
return success(cardUserBody);
@@ -250,6 +250,7 @@ public class DzCardsServiceImpl implements IDzCardsService
dzCards.setDistributeStatus(CardDistributeStatus.Assign.getVal());
dzCards.setPayStatus(PayStatus.UnPay.getVal()); // TODO 暂时分配即开卡
dzCards.setStatus(CardStatus.Open.getVal());
+ dzCards.setOpenTime(DateUtils.getNowDate());
dzCards.setDays(days);
dzCardsMapper.updateDzCards(dzCards);
});