| | |
| | | BasicOtherMoney basicOtherMoney = basicOtherMoneyList.get(0); |
| | | String getColumn = basicOtherMoney.getColumn()==null? |
| | | "0": |
| | | basicOtherMoney.getColumn(). |
| | | replace("M",""). |
| | | replace("S",""); |
| | | String.valueOf(basicOtherMoney.getId()); |
| | | // basicOtherMoney.getColumn(). |
| | | // replace("M",""). |
| | | // replace("S",""); |
| | | int columnNum = Integer.parseInt(getColumn)+1; |
| | | BasicOtherMoney newBasicOtherMoney = new BasicOtherMoney(); |
| | | newBasicOtherMoney.setColumn("M"+String.format("%02d", columnNum)); |
| | |
| | | basicOtherMoneyMapper.insert(newBasicOtherMoney); |
| | | return true; |
| | | } |
| | | |
| | | public List<BasicOtherMoney> findAllByState() { |
| | | return basicOtherMoneyMapper.selectList( |
| | | new QueryWrapper<BasicOtherMoney>(). |
| | | eq("state",1). |
| | | like("`column`","S")); |
| | | } |
| | | } |