| | |
| | | public int insertWallLock(Map<String, Object> para) { |
| | | String id = (String) para.get("id");//锁主键 |
| | | List<Map<String,String>> tankWallLockList = (List<Map<String, String>>) para.get("tankWallLockList"); |
| | | if(tankWallLockList.size() == 0){//数组为空,做删除操作 |
| | | List<ArdTankWallLock> ardTankWallLockList = ardTankWallLockMapper.selectArdTankWallLockByLockId(id);//查询之前挂接的电子围栏 |
| | | if(ardTankWallLockList.size() == 0){//若没有挂接,不做操作 |
| | | return 1; |
| | | } |
| | | int result = ardTankWallLockMapper.deleteArdTankWallLockByLockId(id); |
| | | return result; |
| | | } |
| | | //List<ArdTankWallLock> tankWallLocks = new ArrayList(); |
| | | List<String> idList = new ArrayList();//存放新增和修改的中间表主键 |
| | | int result = 0; |