| | |
| | | import com.flow.util.result; |
| | | import com.flow.util.resultutil; |
| | | import com.github.pagehelper.PageInfo; |
| | | |
| | | import java.io.BufferedReader; |
| | | import java.io.InputStreamReader; |
| | | import java.net.HttpURLConnection; |
| | |
| | | import java.util.*; |
| | | import javax.crypto.Mac; |
| | | import javax.crypto.spec.SecretKeySpec; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | ((Card)cz.getList().get(i)).setZflow(((Card)cz.getList().get(i)).getZflow() / 1024); |
| | | ((Card)cz.getList().get(i)).setSyflow(((Card)cz.getList().get(i)).getSyflow() / 1024); |
| | | ((Card)cz.getList().get(i)).setSyll(((Card)cz.getList().get(i)).getZflow() - ((Card)cz.getList().get(i)).getSyflow()); |
| | | |
| | | if (((Card) cz.getList().get(i)).getBindid() == null || ((Card) cz.getList().get(i)).getBindid().equals("undefined")) { |
| | | ((Card) cz.getList().get(i)).setBindid("未知"); |
| | | } |
| | | SimpleDateFormat date2 = new SimpleDateFormat("yyyy-MM-dd"); |
| | | Date date = new Date(); |
| | | if (cz.getList().get(i).getEnddate()!=null){ |
| | |
| | | this.cardService.UpdateCardChong(card); |
| | | ModelAndView modelAndView = new ModelAndView(); |
| | | modelAndView.setViewName("/page/index1.jsp"); |
| | | modelAndView.addObject("operatornum", 2); |
| | | return modelAndView; |
| | | } |
| | | |
| | |
| | | this.cardService.addCard(card1); |
| | | } |
| | | } else { |
| | | if (card.getCardnumber()!=null){ |
| | | if (card.getCardnumber() != null && card.getCardnumber() != "") { |
| | | card.setCompany(card.getCompany()); |
| | | this.cardService.addCard(card); |
| | | } |