| | |
| | | import com.whyc.dto.PageParamUserDTO; |
| | | import com.whyc.mapper.PageParamUserMapper; |
| | | import com.whyc.pojo.PageParamUser; |
| | | import com.whyc.pojo.UserInf; |
| | | import com.whyc.util.ActionUtil; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | } |
| | | |
| | | public void updateParamList(List<PageParamUser> pageParamUserList) { |
| | | UserInf user = ActionUtil.getUser(); |
| | | if(pageParamUserList.get(0).getId() != null){ //更新 |
| | | mapper.updateListII(pageParamUserList); |
| | | }else { //新增 |
| | | pageParamUserList.stream().forEach(pageParamUser -> { |
| | | pageParamUser.setLableEnUs(PageParamUserDTO.getLableEnUs(pageParamUser.getKey())); |
| | | pageParamUser.setUserId(user.getUId().intValue()); |
| | | }); |
| | | mapper.insertBatchSomeColumn(pageParamUserList); |
| | | } |