| | |
| | | @Transactional
|
| | | public void addTypeSize(FieldSetEntity fs) throws BaseException {
|
| | | String tableName = fs.getTableName();
|
| | | DataTableEntity dataTableEntity = baseDao.listTable("SELECT IFNULL(MAX(no02),0) no02 FROM "+tableName, new String[]{});
|
| | | String year = fs.getString("no01");
|
| | | DataTableEntity dataTableEntity = baseDao.listTable("SELECT IFNULL(MAX(no02),0) no02 FROM "+tableName+" where no01=?", new String[]{year});
|
| | | String no02 = String.valueOf(Integer.parseInt(dataTableEntity.getFieldSetEntity(0).getString("no02")) + 1);
|
| | | while (no02.length() < 3){
|
| | | no02 = "0" + no02;
|