| | |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | | import org.jeecgframework.poi.excel.entity.ExportParams; |
| | | import org.jeecgframework.poi.excel.view.JeecgEntityExcelView; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | |
| | | public MdcProcessQuantityDto findById(String id) { |
| | | return this.baseMapper.findById(id); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 添加数据 |
| | | * |
| | | * @param mdcProcessQuantity |
| | | * @return |
| | | */ |
| | | @Override |
| | | public boolean addData(MdcProcessQuantity mdcProcessQuantity) { |
| | | boolean result = false; |
| | | String[] equipmentIds = mdcProcessQuantity.getEquipmentIds().split(","); |
| | | for (String equipmentId : equipmentIds) { |
| | | MdcProcessQuantity processQuantity = new MdcProcessQuantity(); |
| | | BeanUtils.copyProperties(mdcProcessQuantity, processQuantity); |
| | | processQuantity.setEquipmentId(equipmentId); |
| | | boolean b = super.save(processQuantity); |
| | | if (b) { |
| | | result = true; |
| | | } |
| | | } |
| | | return result; |
| | | } |
| | | } |