| | |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.ResultCodeMsg; |
| | | import com.dy.pipIrrGlobal.pojoMd.MdEt0; |
| | | import com.dy.pipIrrGlobal.voRm.VoManure; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.media.Content; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @GetMapping(path = "oneCropsSomeEt0") |
| | | @SsoAop() |
| | | public BaseResponse<List<VoManure>> oneCropsSomeEt0(VaporQo qo){ |
| | | public BaseResponse<List<MdEt0>> oneCropsSomeEt0(VaporQo qo){ |
| | | try { |
| | | if(qo.cropId == null){ |
| | | return BaseResponseUtils.buildFail("作物id不能为空") ; |
| | |
| | | if(qo.timeStart == null || qo.timeStart.trim().equals("")){ |
| | | qo.timeStart = DateTime.lastXDay_yyyy_MM_dd(qo.timeStop, 10); |
| | | } |
| | | return BaseResponseUtils.buildSuccess(sv.oneCropsSomeEt0(qo)); |
| | | List<MdEt0> list = sv.oneCropsSomeEt0(qo) ; |
| | | if(list == null){ |
| | | list = new ArrayList<>() ; |
| | | } |
| | | return BaseResponseUtils.buildSuccess(list); |
| | | } catch (Exception e) { |
| | | return BaseResponseUtils.buildException(e.getMessage()) ; |
| | | } |