|
|
@@ -164,6 +164,7 @@ public class CardInfoPoolService extends SuperService {
|
|
|
* @return
|
|
|
*/
|
|
|
public ResultContent<ImportResultModel> importCardPool(HttpServletRequest request, HttpServletResponse response, MultipartFile file) {
|
|
|
+ // 当前的学校
|
|
|
String oid = getCurrentOid();
|
|
|
Assert.hasText(oid, "oid不能为空");
|
|
|
|
|
|
@@ -209,7 +210,9 @@ public class CardInfoPoolService extends SuperService {
|
|
|
BeanUtils.copyProperties(param1, pool, "cardType");
|
|
|
pool.setSchoolOid(schoolOid);
|
|
|
pool.setProjectOid(projectOid);
|
|
|
+ // 初始状态为 未使用
|
|
|
pool.setIsUsed(Boolean.FALSE);
|
|
|
+ // 对比出卡片类型
|
|
|
CardType cardType = CommonUtil.getCardTypeByStr(param1.getCardType());
|
|
|
pool.setCardType(cardType);
|
|
|
cardInfoPools.add(pool);
|