| | |
| | | import com.java110.dto.machine.MachineRecordDto; |
| | | import com.java110.intf.common.IMachineRecordInnerServiceSMO; |
| | | import com.java110.intf.user.IUserInnerServiceSMO; |
| | | import com.java110.po.machine.MachineRecordPo; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | return JSONArray.parseArray(JSONArray.toJSONString(records)); |
| | | } |
| | | |
| | | @Override |
| | | public int saveMachineRecords(@RequestBody List<MachineRecordPo> machineRecordPos) { |
| | | List<Map> machineRecords = new ArrayList<>(); |
| | | for (MachineRecordPo payFeePo : machineRecordPos) { |
| | | machineRecords.add(BeanConvertUtil.beanCovertMap(payFeePo)); |
| | | } |
| | | |
| | | Map info = new HashMap(); |
| | | info.put("machineRecords", machineRecords); |
| | | return machineRecordServiceDaoImpl.saveMachineRecords(info); |
| | | } |
| | | |
| | | public IMachineRecordServiceDao getMachineRecordServiceDaoImpl() { |
| | | return machineRecordServiceDaoImpl; |
| | | } |