集成框架生成的代码,能运行但需要逐个细化,部分功能前端部分需要重新进行命名。
This commit is contained in:
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.ArchedRecord;
|
||||
import com.jlt.csa.service.IArchedRecordService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 拱棚使用记录Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/archedrecord")
|
||||
public class ArchedRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IArchedRecordService archedRecordService;
|
||||
|
||||
/**
|
||||
* 查询拱棚使用记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:archedrecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(ArchedRecord archedRecord)
|
||||
{
|
||||
startPage();
|
||||
List<ArchedRecord> list = archedRecordService.selectArchedRecordList(archedRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出拱棚使用记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:archedrecord:export')")
|
||||
@Log(title = "拱棚使用记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ArchedRecord archedRecord)
|
||||
{
|
||||
List<ArchedRecord> list = archedRecordService.selectArchedRecordList(archedRecord);
|
||||
ExcelUtil<ArchedRecord> util = new ExcelUtil<ArchedRecord>(ArchedRecord.class);
|
||||
util.exportExcel(response, list, "拱棚使用记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取拱棚使用记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:archedrecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(archedRecordService.selectArchedRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增拱棚使用记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:archedrecord:add')")
|
||||
@Log(title = "拱棚使用记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody ArchedRecord archedRecord)
|
||||
{
|
||||
return toAjax(archedRecordService.insertArchedRecord(archedRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改拱棚使用记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:archedrecord:edit')")
|
||||
@Log(title = "拱棚使用记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody ArchedRecord archedRecord)
|
||||
{
|
||||
return toAjax(archedRecordService.updateArchedRecord(archedRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除拱棚使用记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:archedrecord:remove')")
|
||||
@Log(title = "拱棚使用记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(archedRecordService.deleteArchedRecordByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.CoinRecord;
|
||||
import com.jlt.csa.service.ICoinRecordService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 金币记录Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/coinrecord")
|
||||
public class CoinRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICoinRecordService coinRecordService;
|
||||
|
||||
/**
|
||||
* 查询金币记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:coinrecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CoinRecord coinRecord)
|
||||
{
|
||||
startPage();
|
||||
List<CoinRecord> list = coinRecordService.selectCoinRecordList(coinRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出金币记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:coinrecord:export')")
|
||||
@Log(title = "金币记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CoinRecord coinRecord)
|
||||
{
|
||||
List<CoinRecord> list = coinRecordService.selectCoinRecordList(coinRecord);
|
||||
ExcelUtil<CoinRecord> util = new ExcelUtil<CoinRecord>(CoinRecord.class);
|
||||
util.exportExcel(response, list, "金币记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取金币记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:coinrecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(coinRecordService.selectCoinRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增金币记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:coinrecord:add')")
|
||||
@Log(title = "金币记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CoinRecord coinRecord)
|
||||
{
|
||||
return toAjax(coinRecordService.insertCoinRecord(coinRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改金币记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:coinrecord:edit')")
|
||||
@Log(title = "金币记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CoinRecord coinRecord)
|
||||
{
|
||||
return toAjax(coinRecordService.updateCoinRecord(coinRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除金币记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:coinrecord:remove')")
|
||||
@Log(title = "金币记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(coinRecordService.deleteCoinRecordByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.CommunicateRecord;
|
||||
import com.jlt.csa.service.ICommunicateRecordService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 沟通记录Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/commrecord")
|
||||
public class CommunicateRecordController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICommunicateRecordService communicateRecordService;
|
||||
|
||||
/**
|
||||
* 查询沟通记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:commrecord:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CommunicateRecord communicateRecord)
|
||||
{
|
||||
startPage();
|
||||
List<CommunicateRecord> list = communicateRecordService.selectCommunicateRecordList(communicateRecord);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出沟通记录列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:commrecord:export')")
|
||||
@Log(title = "沟通记录", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CommunicateRecord communicateRecord)
|
||||
{
|
||||
List<CommunicateRecord> list = communicateRecordService.selectCommunicateRecordList(communicateRecord);
|
||||
ExcelUtil<CommunicateRecord> util = new ExcelUtil<CommunicateRecord>(CommunicateRecord.class);
|
||||
util.exportExcel(response, list, "沟通记录数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取沟通记录详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:commrecord:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(communicateRecordService.selectCommunicateRecordById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增沟通记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:commrecord:add')")
|
||||
@Log(title = "沟通记录", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CommunicateRecord communicateRecord)
|
||||
{
|
||||
return toAjax(communicateRecordService.insertCommunicateRecord(communicateRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改沟通记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:commrecord:edit')")
|
||||
@Log(title = "沟通记录", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CommunicateRecord communicateRecord)
|
||||
{
|
||||
return toAjax(communicateRecordService.updateCommunicateRecord(communicateRecord));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除沟通记录
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:commrecord:remove')")
|
||||
@Log(title = "沟通记录", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(communicateRecordService.deleteCommunicateRecordByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.CropFiles;
|
||||
import com.jlt.csa.service.ICropFilesService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 作物档案Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-25
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/cropfiles")
|
||||
public class CropFilesController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICropFilesService cropFilesService;
|
||||
|
||||
/**
|
||||
* 查询作物档案列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:cropfiles:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CropFiles cropFiles)
|
||||
{
|
||||
startPage();
|
||||
List<CropFiles> list = cropFilesService.selectCropFilesList(cropFiles);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出作物档案列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:cropfiles:export')")
|
||||
@Log(title = "作物档案", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CropFiles cropFiles)
|
||||
{
|
||||
List<CropFiles> list = cropFilesService.selectCropFilesList(cropFiles);
|
||||
ExcelUtil<CropFiles> util = new ExcelUtil<CropFiles>(CropFiles.class);
|
||||
util.exportExcel(response, list, "作物档案数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取作物档案详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:cropfiles:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(cropFilesService.selectCropFilesById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增作物档案
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:cropfiles:add')")
|
||||
@Log(title = "作物档案", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CropFiles cropFiles)
|
||||
{
|
||||
return toAjax(cropFilesService.insertCropFiles(cropFiles));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改作物档案
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:cropfiles:edit')")
|
||||
@Log(title = "作物档案", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CropFiles cropFiles)
|
||||
{
|
||||
return toAjax(cropFilesService.updateCropFiles(cropFiles));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除作物档案
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:cropfiles:remove')")
|
||||
@Log(title = "作物档案", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(cropFilesService.deleteCropFilesByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.CropPhase;
|
||||
import com.jlt.csa.service.ICropPhaseService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 作物生长阶段Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/phase")
|
||||
public class CropPhaseController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICropPhaseService cropPhaseService;
|
||||
|
||||
/**
|
||||
* 查询作物生长阶段列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:phase:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CropPhase cropPhase)
|
||||
{
|
||||
startPage();
|
||||
List<CropPhase> list = cropPhaseService.selectCropPhaseList(cropPhase);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出作物生长阶段列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:phase:export')")
|
||||
@Log(title = "作物生长阶段", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CropPhase cropPhase)
|
||||
{
|
||||
List<CropPhase> list = cropPhaseService.selectCropPhaseList(cropPhase);
|
||||
ExcelUtil<CropPhase> util = new ExcelUtil<CropPhase>(CropPhase.class);
|
||||
util.exportExcel(response, list, "作物生长阶段数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取作物生长阶段详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:phase:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(cropPhaseService.selectCropPhaseById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增作物生长阶段
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:phase:add')")
|
||||
@Log(title = "作物生长阶段", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CropPhase cropPhase)
|
||||
{
|
||||
return toAjax(cropPhaseService.insertCropPhase(cropPhase));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改作物生长阶段
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:phase:edit')")
|
||||
@Log(title = "作物生长阶段", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CropPhase cropPhase)
|
||||
{
|
||||
return toAjax(cropPhaseService.updateCropPhase(cropPhase));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除作物生长阶段
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:phase:remove')")
|
||||
@Log(title = "作物生长阶段", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(cropPhaseService.deleteCropPhaseByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.CsaFarmer;
|
||||
import com.jlt.csa.service.ICsaFarmerService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 私家农场会员Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/farmer")
|
||||
public class CsaFarmerController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICsaFarmerService csaFarmerService;
|
||||
|
||||
/**
|
||||
* 查询私家农场会员列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:farmer:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CsaFarmer csaFarmer)
|
||||
{
|
||||
startPage();
|
||||
List<CsaFarmer> list = csaFarmerService.selectCsaFarmerList(csaFarmer);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出私家农场会员列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:farmer:export')")
|
||||
@Log(title = "私家农场会员", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CsaFarmer csaFarmer)
|
||||
{
|
||||
List<CsaFarmer> list = csaFarmerService.selectCsaFarmerList(csaFarmer);
|
||||
ExcelUtil<CsaFarmer> util = new ExcelUtil<CsaFarmer>(CsaFarmer.class);
|
||||
util.exportExcel(response, list, "私家农场会员数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取私家农场会员详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:farmer:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(csaFarmerService.selectCsaFarmerById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增私家农场会员
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:farmer:add')")
|
||||
@Log(title = "私家农场会员", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CsaFarmer csaFarmer)
|
||||
{
|
||||
return toAjax(csaFarmerService.insertCsaFarmer(csaFarmer));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改私家农场会员
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:farmer:edit')")
|
||||
@Log(title = "私家农场会员", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CsaFarmer csaFarmer)
|
||||
{
|
||||
return toAjax(csaFarmerService.updateCsaFarmer(csaFarmer));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除私家农场会员
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:farmer:remove')")
|
||||
@Log(title = "私家农场会员", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(csaFarmerService.deleteCsaFarmerByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.CsaMemberCard;
|
||||
import com.jlt.csa.service.ICsaMemberCardService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 会员卡Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/card")
|
||||
public class CsaMemberCardController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ICsaMemberCardService csaMemberCardService;
|
||||
|
||||
/**
|
||||
* 查询会员卡列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:card:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CsaMemberCard csaMemberCard)
|
||||
{
|
||||
startPage();
|
||||
List<CsaMemberCard> list = csaMemberCardService.selectCsaMemberCardList(csaMemberCard);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出会员卡列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:card:export')")
|
||||
@Log(title = "会员卡", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, CsaMemberCard csaMemberCard)
|
||||
{
|
||||
List<CsaMemberCard> list = csaMemberCardService.selectCsaMemberCardList(csaMemberCard);
|
||||
ExcelUtil<CsaMemberCard> util = new ExcelUtil<CsaMemberCard>(CsaMemberCard.class);
|
||||
util.exportExcel(response, list, "会员卡数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取会员卡详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:card:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(csaMemberCardService.selectCsaMemberCardById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增会员卡
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:card:add')")
|
||||
@Log(title = "会员卡", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody CsaMemberCard csaMemberCard)
|
||||
{
|
||||
return toAjax(csaMemberCardService.insertCsaMemberCard(csaMemberCard));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改会员卡
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:card:edit')")
|
||||
@Log(title = "会员卡", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody CsaMemberCard csaMemberCard)
|
||||
{
|
||||
return toAjax(csaMemberCardService.updateCsaMemberCard(csaMemberCard));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会员卡
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:card:remove')")
|
||||
@Log(title = "会员卡", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(csaMemberCardService.deleteCsaMemberCardByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.GardenLogAttach;
|
||||
import com.jlt.csa.service.IGardenLogAttachService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 菜地日志附件Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/attach")
|
||||
public class GardenLogAttachController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IGardenLogAttachService gardenLogAttachService;
|
||||
|
||||
/**
|
||||
* 查询菜地日志附件列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:attach:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(GardenLogAttach gardenLogAttach)
|
||||
{
|
||||
startPage();
|
||||
List<GardenLogAttach> list = gardenLogAttachService.selectGardenLogAttachList(gardenLogAttach);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出菜地日志附件列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:attach:export')")
|
||||
@Log(title = "菜地日志附件", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GardenLogAttach gardenLogAttach)
|
||||
{
|
||||
List<GardenLogAttach> list = gardenLogAttachService.selectGardenLogAttachList(gardenLogAttach);
|
||||
ExcelUtil<GardenLogAttach> util = new ExcelUtil<GardenLogAttach>(GardenLogAttach.class);
|
||||
util.exportExcel(response, list, "菜地日志附件数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取菜地日志附件详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:attach:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(gardenLogAttachService.selectGardenLogAttachById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增菜地日志附件
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:attach:add')")
|
||||
@Log(title = "菜地日志附件", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody GardenLogAttach gardenLogAttach)
|
||||
{
|
||||
return toAjax(gardenLogAttachService.insertGardenLogAttach(gardenLogAttach));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改菜地日志附件
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:attach:edit')")
|
||||
@Log(title = "菜地日志附件", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody GardenLogAttach gardenLogAttach)
|
||||
{
|
||||
return toAjax(gardenLogAttachService.updateGardenLogAttach(gardenLogAttach));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除菜地日志附件
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:attach:remove')")
|
||||
@Log(title = "菜地日志附件", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(gardenLogAttachService.deleteGardenLogAttachByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.GardenLog;
|
||||
import com.jlt.csa.service.IGardenLogService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 菜地日志Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/log")
|
||||
public class GardenLogController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IGardenLogService gardenLogService;
|
||||
|
||||
/**
|
||||
* 查询菜地日志列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:log:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(GardenLog gardenLog)
|
||||
{
|
||||
startPage();
|
||||
List<GardenLog> list = gardenLogService.selectGardenLogList(gardenLog);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出菜地日志列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:log:export')")
|
||||
@Log(title = "菜地日志", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GardenLog gardenLog)
|
||||
{
|
||||
List<GardenLog> list = gardenLogService.selectGardenLogList(gardenLog);
|
||||
ExcelUtil<GardenLog> util = new ExcelUtil<GardenLog>(GardenLog.class);
|
||||
util.exportExcel(response, list, "菜地日志数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取菜地日志详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:log:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(gardenLogService.selectGardenLogById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增菜地日志
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:log:add')")
|
||||
@Log(title = "菜地日志", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody GardenLog gardenLog)
|
||||
{
|
||||
return toAjax(gardenLogService.insertGardenLog(gardenLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改菜地日志
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:log:edit')")
|
||||
@Log(title = "菜地日志", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody GardenLog gardenLog)
|
||||
{
|
||||
return toAjax(gardenLogService.updateGardenLog(gardenLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除菜地日志
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:log:remove')")
|
||||
@Log(title = "菜地日志", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(gardenLogService.deleteGardenLogByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.GardenStrain;
|
||||
import com.jlt.csa.service.IGardenStrainService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 菜地品种Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/strain")
|
||||
public class GardenStrainController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IGardenStrainService gardenStrainService;
|
||||
|
||||
/**
|
||||
* 查询菜地品种列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:strain:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(GardenStrain gardenStrain)
|
||||
{
|
||||
startPage();
|
||||
List<GardenStrain> list = gardenStrainService.selectGardenStrainList(gardenStrain);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出菜地品种列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:strain:export')")
|
||||
@Log(title = "菜地品种", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, GardenStrain gardenStrain)
|
||||
{
|
||||
List<GardenStrain> list = gardenStrainService.selectGardenStrainList(gardenStrain);
|
||||
ExcelUtil<GardenStrain> util = new ExcelUtil<GardenStrain>(GardenStrain.class);
|
||||
util.exportExcel(response, list, "菜地品种数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取菜地品种详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:strain:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(gardenStrainService.selectGardenStrainById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增菜地品种
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:strain:add')")
|
||||
@Log(title = "菜地品种", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody GardenStrain gardenStrain)
|
||||
{
|
||||
return toAjax(gardenStrainService.insertGardenStrain(gardenStrain));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改菜地品种
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:strain:edit')")
|
||||
@Log(title = "菜地品种", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody GardenStrain gardenStrain)
|
||||
{
|
||||
return toAjax(gardenStrainService.updateGardenStrain(gardenStrain));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除菜地品种
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:strain:remove')")
|
||||
@Log(title = "菜地品种", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(gardenStrainService.deleteGardenStrainByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.PickDetail;
|
||||
import com.jlt.csa.service.IPickDetailService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 采摘任务明细Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/detail")
|
||||
public class PickDetailController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IPickDetailService pickDetailService;
|
||||
|
||||
/**
|
||||
* 查询采摘任务明细列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:detail:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PickDetail pickDetail)
|
||||
{
|
||||
startPage();
|
||||
List<PickDetail> list = pickDetailService.selectPickDetailList(pickDetail);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出采摘任务明细列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:detail:export')")
|
||||
@Log(title = "采摘任务明细", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, PickDetail pickDetail)
|
||||
{
|
||||
List<PickDetail> list = pickDetailService.selectPickDetailList(pickDetail);
|
||||
ExcelUtil<PickDetail> util = new ExcelUtil<PickDetail>(PickDetail.class);
|
||||
util.exportExcel(response, list, "采摘任务明细数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取采摘任务明细详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:detail:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(pickDetailService.selectPickDetailById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增采摘任务明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:detail:add')")
|
||||
@Log(title = "采摘任务明细", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody PickDetail pickDetail)
|
||||
{
|
||||
return toAjax(pickDetailService.insertPickDetail(pickDetail));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改采摘任务明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:detail:edit')")
|
||||
@Log(title = "采摘任务明细", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody PickDetail pickDetail)
|
||||
{
|
||||
return toAjax(pickDetailService.updatePickDetail(pickDetail));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除采摘任务明细
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:detail:remove')")
|
||||
@Log(title = "采摘任务明细", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(pickDetailService.deletePickDetailByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
package com.jlt.csa.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.jlt.csa.domain.TendTask;
|
||||
import com.jlt.csa.service.ITendTaskService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 打理任务Controller
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/csa/task")
|
||||
public class TendTaskController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ITendTaskService tendTaskService;
|
||||
|
||||
/**
|
||||
* 查询打理任务列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:task:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TendTask tendTask)
|
||||
{
|
||||
startPage();
|
||||
List<TendTask> list = tendTaskService.selectTendTaskList(tendTask);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出打理任务列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:task:export')")
|
||||
@Log(title = "打理任务", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, TendTask tendTask)
|
||||
{
|
||||
List<TendTask> list = tendTaskService.selectTendTaskList(tendTask);
|
||||
ExcelUtil<TendTask> util = new ExcelUtil<TendTask>(TendTask.class);
|
||||
util.exportExcel(response, list, "打理任务数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取打理任务详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:task:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(tendTaskService.selectTendTaskById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增打理任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:task:add')")
|
||||
@Log(title = "打理任务", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TendTask tendTask)
|
||||
{
|
||||
return toAjax(tendTaskService.insertTendTask(tendTask));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改打理任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:task:edit')")
|
||||
@Log(title = "打理任务", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TendTask tendTask)
|
||||
{
|
||||
return toAjax(tendTaskService.updateTendTask(tendTask));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除打理任务
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('csa:task:remove')")
|
||||
@Log(title = "打理任务", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(tendTaskService.deleteTendTaskByIds(ids));
|
||||
}
|
||||
}
|
167
private-farm/src/main/java/com/jlt/csa/domain/ArchedRecord.java
Normal file
167
private-farm/src/main/java/com/jlt/csa/domain/ArchedRecord.java
Normal file
@ -0,0 +1,167 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 拱棚使用记录对象 csa_arched_record
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public class ArchedRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 拱棚使用记录id */
|
||||
private Long id;
|
||||
|
||||
/** 会员id */
|
||||
private Long memberId;
|
||||
|
||||
/** 菜地id */
|
||||
private Long gardenId;
|
||||
|
||||
/** 对应年份 */
|
||||
@Excel(name = "对应年份")
|
||||
private Long yearNo;
|
||||
|
||||
/** 消耗年份 */
|
||||
private Long consumYear;
|
||||
|
||||
/** 剩余年份 */
|
||||
@Excel(name = "剩余年份")
|
||||
private Long remainingYears;
|
||||
|
||||
/** 操作人id */
|
||||
@Excel(name = "操作人id")
|
||||
private Long doerId;
|
||||
|
||||
/** 处理时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date doTime;
|
||||
|
||||
/** 有效状态 */
|
||||
@Excel(name = "有效状态")
|
||||
private String status;
|
||||
|
||||
/** 删除标志 */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setMemberId(Long memberId)
|
||||
{
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
public Long getMemberId()
|
||||
{
|
||||
return memberId;
|
||||
}
|
||||
public void setGardenId(Long gardenId)
|
||||
{
|
||||
this.gardenId = gardenId;
|
||||
}
|
||||
|
||||
public Long getGardenId()
|
||||
{
|
||||
return gardenId;
|
||||
}
|
||||
public void setYearNo(Long yearNo)
|
||||
{
|
||||
this.yearNo = yearNo;
|
||||
}
|
||||
|
||||
public Long getYearNo()
|
||||
{
|
||||
return yearNo;
|
||||
}
|
||||
public void setConsumYear(Long consumYear)
|
||||
{
|
||||
this.consumYear = consumYear;
|
||||
}
|
||||
|
||||
public Long getConsumYear()
|
||||
{
|
||||
return consumYear;
|
||||
}
|
||||
public void setRemainingYears(Long remainingYears)
|
||||
{
|
||||
this.remainingYears = remainingYears;
|
||||
}
|
||||
|
||||
public Long getRemainingYears()
|
||||
{
|
||||
return remainingYears;
|
||||
}
|
||||
public void setDoerId(Long doerId)
|
||||
{
|
||||
this.doerId = doerId;
|
||||
}
|
||||
|
||||
public Long getDoerId()
|
||||
{
|
||||
return doerId;
|
||||
}
|
||||
public void setDoTime(Date doTime)
|
||||
{
|
||||
this.doTime = doTime;
|
||||
}
|
||||
|
||||
public Date getDoTime()
|
||||
{
|
||||
return doTime;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("memberId", getMemberId())
|
||||
.append("gardenId", getGardenId())
|
||||
.append("yearNo", getYearNo())
|
||||
.append("consumYear", getConsumYear())
|
||||
.append("remainingYears", getRemainingYears())
|
||||
.append("doerId", getDoerId())
|
||||
.append("doTime", getDoTime())
|
||||
.append("status", getStatus())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
170
private-farm/src/main/java/com/jlt/csa/domain/CoinRecord.java
Normal file
170
private-farm/src/main/java/com/jlt/csa/domain/CoinRecord.java
Normal file
@ -0,0 +1,170 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 金币记录对象 csa_coin_record
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public class CoinRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 记录id */
|
||||
private Long id;
|
||||
|
||||
/** 会员id */
|
||||
@Excel(name = "会员id")
|
||||
private Long memberId;
|
||||
|
||||
/** 业务id */
|
||||
private Long opId;
|
||||
|
||||
/** 业务类型 */
|
||||
@Excel(name = "业务类型")
|
||||
private String opType;
|
||||
|
||||
/** 金币花费 */
|
||||
@Excel(name = "金币花费")
|
||||
private BigDecimal coins;
|
||||
|
||||
/** 金币余额 */
|
||||
@Excel(name = "金币余额")
|
||||
private BigDecimal coinBalance;
|
||||
|
||||
/** 描述 */
|
||||
@Excel(name = "描述")
|
||||
private String description;
|
||||
|
||||
/** 业务发生时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "业务发生时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date opTime;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private String status;
|
||||
|
||||
/** 删除标志 */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setMemberId(Long memberId)
|
||||
{
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
public Long getMemberId()
|
||||
{
|
||||
return memberId;
|
||||
}
|
||||
public void setOpId(Long opId)
|
||||
{
|
||||
this.opId = opId;
|
||||
}
|
||||
|
||||
public Long getOpId()
|
||||
{
|
||||
return opId;
|
||||
}
|
||||
public void setOpType(String opType)
|
||||
{
|
||||
this.opType = opType;
|
||||
}
|
||||
|
||||
public String getOpType()
|
||||
{
|
||||
return opType;
|
||||
}
|
||||
public void setCoins(BigDecimal coins)
|
||||
{
|
||||
this.coins = coins;
|
||||
}
|
||||
|
||||
public BigDecimal getCoins()
|
||||
{
|
||||
return coins;
|
||||
}
|
||||
public void setCoinBalance(BigDecimal coinBalance)
|
||||
{
|
||||
this.coinBalance = coinBalance;
|
||||
}
|
||||
|
||||
public BigDecimal getCoinBalance()
|
||||
{
|
||||
return coinBalance;
|
||||
}
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public void setOpTime(Date opTime)
|
||||
{
|
||||
this.opTime = opTime;
|
||||
}
|
||||
|
||||
public Date getOpTime()
|
||||
{
|
||||
return opTime;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("memberId", getMemberId())
|
||||
.append("opId", getOpId())
|
||||
.append("opType", getOpType())
|
||||
.append("coins", getCoins())
|
||||
.append("coinBalance", getCoinBalance())
|
||||
.append("description", getDescription())
|
||||
.append("opTime", getOpTime())
|
||||
.append("status", getStatus())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,199 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 沟通记录对象 csa_communicate_record
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public class CommunicateRecord extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 沟通日志记录id */
|
||||
private Long id;
|
||||
|
||||
/** 会员 */
|
||||
@Excel(name = "会员")
|
||||
private Long memberId;
|
||||
|
||||
/** 菜地id */
|
||||
@Excel(name = "菜地id")
|
||||
private Long gardenId;
|
||||
|
||||
/** 发布人 */
|
||||
@Excel(name = "发布人")
|
||||
private Long recorder;
|
||||
|
||||
/** 种植任务id */
|
||||
@Excel(name = "种植任务id")
|
||||
private Long taskId;
|
||||
|
||||
/** 沟通类型 */
|
||||
@Excel(name = "沟通类型")
|
||||
private String commType;
|
||||
|
||||
/** 沟通内容 */
|
||||
@Excel(name = "沟通内容")
|
||||
private String content;
|
||||
|
||||
/** 处理结果 */
|
||||
@Excel(name = "处理结果")
|
||||
private String result;
|
||||
|
||||
/** 是否处理 */
|
||||
@Excel(name = "是否处理")
|
||||
private String isCompleted;
|
||||
|
||||
/** 沟通时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "沟通时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date commTime;
|
||||
|
||||
/** 处理时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date doTime;
|
||||
|
||||
/** 删除标志 */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setMemberId(Long memberId)
|
||||
{
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
public Long getMemberId()
|
||||
{
|
||||
return memberId;
|
||||
}
|
||||
public void setGardenId(Long gardenId)
|
||||
{
|
||||
this.gardenId = gardenId;
|
||||
}
|
||||
|
||||
public Long getGardenId()
|
||||
{
|
||||
return gardenId;
|
||||
}
|
||||
public void setRecorder(Long recorder)
|
||||
{
|
||||
this.recorder = recorder;
|
||||
}
|
||||
|
||||
public Long getRecorder()
|
||||
{
|
||||
return recorder;
|
||||
}
|
||||
public void setTaskId(Long taskId)
|
||||
{
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public Long getTaskId()
|
||||
{
|
||||
return taskId;
|
||||
}
|
||||
public void setCommType(String commType)
|
||||
{
|
||||
this.commType = commType;
|
||||
}
|
||||
|
||||
public String getCommType()
|
||||
{
|
||||
return commType;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setResult(String result)
|
||||
{
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
public String getResult()
|
||||
{
|
||||
return result;
|
||||
}
|
||||
public void setIsCompleted(String isCompleted)
|
||||
{
|
||||
this.isCompleted = isCompleted;
|
||||
}
|
||||
|
||||
public String getIsCompleted()
|
||||
{
|
||||
return isCompleted;
|
||||
}
|
||||
public void setCommTime(Date commTime)
|
||||
{
|
||||
this.commTime = commTime;
|
||||
}
|
||||
|
||||
public Date getCommTime()
|
||||
{
|
||||
return commTime;
|
||||
}
|
||||
public void setDoTime(Date doTime)
|
||||
{
|
||||
this.doTime = doTime;
|
||||
}
|
||||
|
||||
public Date getDoTime()
|
||||
{
|
||||
return doTime;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("memberId", getMemberId())
|
||||
.append("gardenId", getGardenId())
|
||||
.append("recorder", getRecorder())
|
||||
.append("taskId", getTaskId())
|
||||
.append("commType", getCommType())
|
||||
.append("content", getContent())
|
||||
.append("result", getResult())
|
||||
.append("isCompleted", getIsCompleted())
|
||||
.append("commTime", getCommTime())
|
||||
.append("doTime", getDoTime())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
123
private-farm/src/main/java/com/jlt/csa/domain/CropFiles.java
Normal file
123
private-farm/src/main/java/com/jlt/csa/domain/CropFiles.java
Normal file
@ -0,0 +1,123 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 作物档案对象 csa_crop_files
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-25
|
||||
*/
|
||||
public class CropFiles extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 作物档案id */
|
||||
private Long id;
|
||||
|
||||
/** 作物名称 */
|
||||
@Excel(name = "作物名称")
|
||||
private String name;
|
||||
|
||||
/** 种植指南 */
|
||||
private String plantGuide;
|
||||
|
||||
/** 代表图片 */
|
||||
@Excel(name = "代表图片")
|
||||
private String picture;
|
||||
|
||||
/** 作物描述 */
|
||||
private String description;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private String status;
|
||||
|
||||
/** 删除标志 */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setPlantGuide(String plantGuide)
|
||||
{
|
||||
this.plantGuide = plantGuide;
|
||||
}
|
||||
|
||||
public String getPlantGuide()
|
||||
{
|
||||
return plantGuide;
|
||||
}
|
||||
public void setPicture(String picture)
|
||||
{
|
||||
this.picture = picture;
|
||||
}
|
||||
|
||||
public String getPicture()
|
||||
{
|
||||
return picture;
|
||||
}
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("plantGuide", getPlantGuide())
|
||||
.append("picture", getPicture())
|
||||
.append("description", getDescription())
|
||||
.append("status", getStatus())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
124
private-farm/src/main/java/com/jlt/csa/domain/CropPhase.java
Normal file
124
private-farm/src/main/java/com/jlt/csa/domain/CropPhase.java
Normal file
@ -0,0 +1,124 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 作物生长阶段对象 csa_crop_phase
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
public class CropPhase extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 阶段id */
|
||||
private Long id;
|
||||
|
||||
/** 作物id */
|
||||
private Long cropId;
|
||||
|
||||
/** 阶段名称 */
|
||||
@Excel(name = "阶段名称")
|
||||
private String name;
|
||||
|
||||
/** 产出 */
|
||||
@Excel(name = "产出")
|
||||
private String production;
|
||||
|
||||
/** 代表图片 */
|
||||
@Excel(name = "代表图片")
|
||||
private String picture;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private String status;
|
||||
|
||||
/** 删除标志 */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCropId(Long cropId)
|
||||
{
|
||||
this.cropId = cropId;
|
||||
}
|
||||
|
||||
public Long getCropId()
|
||||
{
|
||||
return cropId;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setProduction(String production)
|
||||
{
|
||||
this.production = production;
|
||||
}
|
||||
|
||||
public String getProduction()
|
||||
{
|
||||
return production;
|
||||
}
|
||||
public void setPicture(String picture)
|
||||
{
|
||||
this.picture = picture;
|
||||
}
|
||||
|
||||
public String getPicture()
|
||||
{
|
||||
return picture;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("cropId", getCropId())
|
||||
.append("name", getName())
|
||||
.append("production", getProduction())
|
||||
.append("picture", getPicture())
|
||||
.append("status", getStatus())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
200
private-farm/src/main/java/com/jlt/csa/domain/CsaFarmer.java
Normal file
200
private-farm/src/main/java/com/jlt/csa/domain/CsaFarmer.java
Normal file
@ -0,0 +1,200 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 私家农场会员对象 csa_farmer
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
public class CsaFarmer extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 会员id */
|
||||
private Long id;
|
||||
|
||||
/** 会员姓名 */
|
||||
@Excel(name = "会员姓名")
|
||||
private String name;
|
||||
|
||||
/** 性别 */
|
||||
@Excel(name = "性别")
|
||||
private String gender;
|
||||
|
||||
/** 金币余额 */
|
||||
@Excel(name = "金币余额")
|
||||
private BigDecimal coins;
|
||||
|
||||
/** 账户余额 */
|
||||
@Excel(name = "账户余额")
|
||||
private BigDecimal balance;
|
||||
|
||||
/** 重量余额 */
|
||||
@Excel(name = "重量余额")
|
||||
private BigDecimal weight;
|
||||
|
||||
/** 拱棚年限余额 */
|
||||
@Excel(name = "拱棚年限余额")
|
||||
private Integer archedYears;
|
||||
|
||||
/** 加入日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "加入日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date joinDate;
|
||||
|
||||
/** 到期日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "到期日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date dueDate;
|
||||
|
||||
/** 是否过期 */
|
||||
@Excel(name = "是否过期")
|
||||
private String isExpire;
|
||||
|
||||
/** 状态(0正常 1停用) */
|
||||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
||||
private String status;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
public void setGender(String gender)
|
||||
{
|
||||
this.gender = gender;
|
||||
}
|
||||
|
||||
public String getGender()
|
||||
{
|
||||
return gender;
|
||||
}
|
||||
public void setCoins(BigDecimal coins)
|
||||
{
|
||||
this.coins = coins;
|
||||
}
|
||||
|
||||
public BigDecimal getCoins()
|
||||
{
|
||||
return coins;
|
||||
}
|
||||
public void setBalance(BigDecimal balance)
|
||||
{
|
||||
this.balance = balance;
|
||||
}
|
||||
|
||||
public BigDecimal getBalance()
|
||||
{
|
||||
return balance;
|
||||
}
|
||||
public void setWeight(BigDecimal weight)
|
||||
{
|
||||
this.weight = weight;
|
||||
}
|
||||
|
||||
public BigDecimal getWeight()
|
||||
{
|
||||
return weight;
|
||||
}
|
||||
public void setArchedYears(Integer archedYears)
|
||||
{
|
||||
this.archedYears = archedYears;
|
||||
}
|
||||
|
||||
public Integer getArchedYears()
|
||||
{
|
||||
return archedYears;
|
||||
}
|
||||
public void setJoinDate(Date joinDate)
|
||||
{
|
||||
this.joinDate = joinDate;
|
||||
}
|
||||
|
||||
public Date getJoinDate()
|
||||
{
|
||||
return joinDate;
|
||||
}
|
||||
public void setDueDate(Date dueDate)
|
||||
{
|
||||
this.dueDate = dueDate;
|
||||
}
|
||||
|
||||
public Date getDueDate()
|
||||
{
|
||||
return dueDate;
|
||||
}
|
||||
public void setIsExpire(String isExpire)
|
||||
{
|
||||
this.isExpire = isExpire;
|
||||
}
|
||||
|
||||
public String getIsExpire()
|
||||
{
|
||||
return isExpire;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("name", getName())
|
||||
.append("gender", getGender())
|
||||
.append("coins", getCoins())
|
||||
.append("balance", getBalance())
|
||||
.append("weight", getWeight())
|
||||
.append("archedYears", getArchedYears())
|
||||
.append("joinDate", getJoinDate())
|
||||
.append("dueDate", getDueDate())
|
||||
.append("isExpire", getIsExpire())
|
||||
.append("status", getStatus())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
226
private-farm/src/main/java/com/jlt/csa/domain/CsaMemberCard.java
Normal file
226
private-farm/src/main/java/com/jlt/csa/domain/CsaMemberCard.java
Normal file
@ -0,0 +1,226 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 会员卡对象 csa_member_card
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
public class CsaMemberCard extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 卡id */
|
||||
private Long id;
|
||||
|
||||
/** 卡号 */
|
||||
@Excel(name = "卡号")
|
||||
private String cardno;
|
||||
|
||||
/** 密码 */
|
||||
private String passwd;
|
||||
|
||||
/** 激活有效期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "激活有效期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date activationValidity;
|
||||
|
||||
/** 可用状态 */
|
||||
@Excel(name = "可用状态")
|
||||
private String usabilityStatus;
|
||||
|
||||
/** 激活状态 */
|
||||
@Excel(name = "激活状态")
|
||||
private String activeStatus;
|
||||
|
||||
/** 平方米 */
|
||||
@Excel(name = "平方米")
|
||||
private BigDecimal m2;
|
||||
|
||||
/** 土地年限 */
|
||||
@Excel(name = "土地年限")
|
||||
private Integer landYears;
|
||||
|
||||
/** 拱棚年限 */
|
||||
@Excel(name = "拱棚年限")
|
||||
private Integer archedYears;
|
||||
|
||||
/** 金币 */
|
||||
@Excel(name = "金币")
|
||||
private BigDecimal coins;
|
||||
|
||||
/** 金额 */
|
||||
@Excel(name = "金额")
|
||||
private BigDecimal balance;
|
||||
|
||||
/** 重量 */
|
||||
@Excel(name = "重量")
|
||||
private BigDecimal weight;
|
||||
|
||||
/** 套餐代码 */
|
||||
@Excel(name = "套餐代码")
|
||||
private String setMeal;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setCardno(String cardno)
|
||||
{
|
||||
this.cardno = cardno;
|
||||
}
|
||||
|
||||
public String getCardno()
|
||||
{
|
||||
return cardno;
|
||||
}
|
||||
public void setPasswd(String passwd)
|
||||
{
|
||||
this.passwd = passwd;
|
||||
}
|
||||
|
||||
public String getPasswd()
|
||||
{
|
||||
return passwd;
|
||||
}
|
||||
public void setActivationValidity(Date activationValidity)
|
||||
{
|
||||
this.activationValidity = activationValidity;
|
||||
}
|
||||
|
||||
public Date getActivationValidity()
|
||||
{
|
||||
return activationValidity;
|
||||
}
|
||||
public void setUsabilityStatus(String usabilityStatus)
|
||||
{
|
||||
this.usabilityStatus = usabilityStatus;
|
||||
}
|
||||
|
||||
public String getUsabilityStatus()
|
||||
{
|
||||
return usabilityStatus;
|
||||
}
|
||||
public void setActiveStatus(String activeStatus)
|
||||
{
|
||||
this.activeStatus = activeStatus;
|
||||
}
|
||||
|
||||
public String getActiveStatus()
|
||||
{
|
||||
return activeStatus;
|
||||
}
|
||||
public void setM2(BigDecimal m2)
|
||||
{
|
||||
this.m2 = m2;
|
||||
}
|
||||
|
||||
public BigDecimal getM2()
|
||||
{
|
||||
return m2;
|
||||
}
|
||||
public void setLandYears(Integer landYears)
|
||||
{
|
||||
this.landYears = landYears;
|
||||
}
|
||||
|
||||
public Integer getLandYears()
|
||||
{
|
||||
return landYears;
|
||||
}
|
||||
public void setArchedYears(Integer archedYears)
|
||||
{
|
||||
this.archedYears = archedYears;
|
||||
}
|
||||
|
||||
public Integer getArchedYears()
|
||||
{
|
||||
return archedYears;
|
||||
}
|
||||
public void setCoins(BigDecimal coins)
|
||||
{
|
||||
this.coins = coins;
|
||||
}
|
||||
|
||||
public BigDecimal getCoins()
|
||||
{
|
||||
return coins;
|
||||
}
|
||||
public void setBalance(BigDecimal balance)
|
||||
{
|
||||
this.balance = balance;
|
||||
}
|
||||
|
||||
public BigDecimal getBalance()
|
||||
{
|
||||
return balance;
|
||||
}
|
||||
public void setWeight(BigDecimal weight)
|
||||
{
|
||||
this.weight = weight;
|
||||
}
|
||||
|
||||
public BigDecimal getWeight()
|
||||
{
|
||||
return weight;
|
||||
}
|
||||
public void setSetMeal(String setMeal)
|
||||
{
|
||||
this.setMeal = setMeal;
|
||||
}
|
||||
|
||||
public String getSetMeal()
|
||||
{
|
||||
return setMeal;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("cardno", getCardno())
|
||||
.append("passwd", getPasswd())
|
||||
.append("activationValidity", getActivationValidity())
|
||||
.append("usabilityStatus", getUsabilityStatus())
|
||||
.append("activeStatus", getActiveStatus())
|
||||
.append("m2", getM2())
|
||||
.append("landYears", getLandYears())
|
||||
.append("archedYears", getArchedYears())
|
||||
.append("coins", getCoins())
|
||||
.append("balance", getBalance())
|
||||
.append("weight", getWeight())
|
||||
.append("setMeal", getSetMeal())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -47,10 +47,6 @@ public class Garden extends BaseEntity
|
||||
/** 客服人员id */
|
||||
private Long contacterId;
|
||||
|
||||
/** 金币 */
|
||||
@Excel(name = "金币")
|
||||
private BigDecimal coins;
|
||||
|
||||
/** 耕作状态 */
|
||||
private String isFarming;
|
||||
|
||||
@ -148,15 +144,6 @@ public class Garden extends BaseEntity
|
||||
{
|
||||
return contacterId;
|
||||
}
|
||||
public void setCoins(BigDecimal coins)
|
||||
{
|
||||
this.coins = coins;
|
||||
}
|
||||
|
||||
public BigDecimal getCoins()
|
||||
{
|
||||
return coins;
|
||||
}
|
||||
public void setIsFarming(String isFarming)
|
||||
{
|
||||
this.isFarming = isFarming;
|
||||
@ -215,7 +202,6 @@ public class Garden extends BaseEntity
|
||||
.append("managerId", getManagerId())
|
||||
.append("workerId", getWorkerId())
|
||||
.append("contacterId", getContacterId())
|
||||
.append("coins", getCoins())
|
||||
.append("isFarming", getIsFarming())
|
||||
.append("isSelled", getIsSelled())
|
||||
.append("isCompleted", getIsCompleted())
|
||||
|
170
private-farm/src/main/java/com/jlt/csa/domain/GardenLog.java
Normal file
170
private-farm/src/main/java/com/jlt/csa/domain/GardenLog.java
Normal file
@ -0,0 +1,170 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 菜地日志对象 csa_garden_log
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public class GardenLog extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 菜地日志id */
|
||||
private Long id;
|
||||
|
||||
/** 会员 */
|
||||
@Excel(name = "会员")
|
||||
private Long memberId;
|
||||
|
||||
/** 菜地 */
|
||||
@Excel(name = "菜地")
|
||||
private Long gardenId;
|
||||
|
||||
/** 种植任务 */
|
||||
@Excel(name = "种植任务")
|
||||
private Long taskId;
|
||||
|
||||
/** 日志类型 */
|
||||
@Excel(name = "日志类型")
|
||||
private String logType;
|
||||
|
||||
/** 日志内容 */
|
||||
@Excel(name = "日志内容")
|
||||
private String content;
|
||||
|
||||
/** 发布时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date publishTime;
|
||||
|
||||
/** 发布人 */
|
||||
@Excel(name = "发布人")
|
||||
private Long publisher;
|
||||
|
||||
/** 发布状态 */
|
||||
@Excel(name = "发布状态")
|
||||
private String publishStatus;
|
||||
|
||||
/** 删除标志 */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setMemberId(Long memberId)
|
||||
{
|
||||
this.memberId = memberId;
|
||||
}
|
||||
|
||||
public Long getMemberId()
|
||||
{
|
||||
return memberId;
|
||||
}
|
||||
public void setGardenId(Long gardenId)
|
||||
{
|
||||
this.gardenId = gardenId;
|
||||
}
|
||||
|
||||
public Long getGardenId()
|
||||
{
|
||||
return gardenId;
|
||||
}
|
||||
public void setTaskId(Long taskId)
|
||||
{
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public Long getTaskId()
|
||||
{
|
||||
return taskId;
|
||||
}
|
||||
public void setLogType(String logType)
|
||||
{
|
||||
this.logType = logType;
|
||||
}
|
||||
|
||||
public String getLogType()
|
||||
{
|
||||
return logType;
|
||||
}
|
||||
public void setContent(String content)
|
||||
{
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContent()
|
||||
{
|
||||
return content;
|
||||
}
|
||||
public void setPublishTime(Date publishTime)
|
||||
{
|
||||
this.publishTime = publishTime;
|
||||
}
|
||||
|
||||
public Date getPublishTime()
|
||||
{
|
||||
return publishTime;
|
||||
}
|
||||
public void setPublisher(Long publisher)
|
||||
{
|
||||
this.publisher = publisher;
|
||||
}
|
||||
|
||||
public Long getPublisher()
|
||||
{
|
||||
return publisher;
|
||||
}
|
||||
public void setPublishStatus(String publishStatus)
|
||||
{
|
||||
this.publishStatus = publishStatus;
|
||||
}
|
||||
|
||||
public String getPublishStatus()
|
||||
{
|
||||
return publishStatus;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("memberId", getMemberId())
|
||||
.append("gardenId", getGardenId())
|
||||
.append("taskId", getTaskId())
|
||||
.append("logType", getLogType())
|
||||
.append("content", getContent())
|
||||
.append("publishTime", getPublishTime())
|
||||
.append("publisher", getPublisher())
|
||||
.append("publishStatus", getPublishStatus())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,169 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 菜地日志附件对象 csa_garden_log_attach
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public class GardenLogAttach extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 附件id */
|
||||
private Long id;
|
||||
|
||||
/** 菜地日志 */
|
||||
private Long logId;
|
||||
|
||||
/** 附件类型 */
|
||||
@Excel(name = "附件类型")
|
||||
private String attachType;
|
||||
|
||||
/** 文件名 */
|
||||
@Excel(name = "文件名")
|
||||
private String filename;
|
||||
|
||||
/** URL */
|
||||
@Excel(name = "URL")
|
||||
private String url;
|
||||
|
||||
/** 附件宽度 */
|
||||
@Excel(name = "附件宽度")
|
||||
private Long width;
|
||||
|
||||
/** 附件高度 */
|
||||
@Excel(name = "附件高度")
|
||||
private Long height;
|
||||
|
||||
/** 字节数 */
|
||||
@Excel(name = "字节数")
|
||||
private Long bytes;
|
||||
|
||||
/** 发布时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date publishTime;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setLogId(Long logId)
|
||||
{
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public Long getLogId()
|
||||
{
|
||||
return logId;
|
||||
}
|
||||
public void setAttachType(String attachType)
|
||||
{
|
||||
this.attachType = attachType;
|
||||
}
|
||||
|
||||
public String getAttachType()
|
||||
{
|
||||
return attachType;
|
||||
}
|
||||
public void setFilename(String filename)
|
||||
{
|
||||
this.filename = filename;
|
||||
}
|
||||
|
||||
public String getFilename()
|
||||
{
|
||||
return filename;
|
||||
}
|
||||
public void setUrl(String url)
|
||||
{
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getUrl()
|
||||
{
|
||||
return url;
|
||||
}
|
||||
public void setWidth(Long width)
|
||||
{
|
||||
this.width = width;
|
||||
}
|
||||
|
||||
public Long getWidth()
|
||||
{
|
||||
return width;
|
||||
}
|
||||
public void setHeight(Long height)
|
||||
{
|
||||
this.height = height;
|
||||
}
|
||||
|
||||
public Long getHeight()
|
||||
{
|
||||
return height;
|
||||
}
|
||||
public void setBytes(Long bytes)
|
||||
{
|
||||
this.bytes = bytes;
|
||||
}
|
||||
|
||||
public Long getBytes()
|
||||
{
|
||||
return bytes;
|
||||
}
|
||||
public void setPublishTime(Date publishTime)
|
||||
{
|
||||
this.publishTime = publishTime;
|
||||
}
|
||||
|
||||
public Date getPublishTime()
|
||||
{
|
||||
return publishTime;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("logId", getLogId())
|
||||
.append("attachType", getAttachType())
|
||||
.append("filename", getFilename())
|
||||
.append("url", getUrl())
|
||||
.append("width", getWidth())
|
||||
.append("height", getHeight())
|
||||
.append("bytes", getBytes())
|
||||
.append("publishTime", getPublishTime())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
242
private-farm/src/main/java/com/jlt/csa/domain/GardenStrain.java
Normal file
242
private-farm/src/main/java/com/jlt/csa/domain/GardenStrain.java
Normal file
@ -0,0 +1,242 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 菜地品种对象 csa_garden_strain
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public class GardenStrain extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 菜地品种id */
|
||||
private Long id;
|
||||
|
||||
/** 菜地 */
|
||||
private Long gardenId;
|
||||
|
||||
/** 种植任务 */
|
||||
@Excel(name = "种植任务")
|
||||
private Long taskId;
|
||||
|
||||
/** 作物id */
|
||||
@Excel(name = "作物id")
|
||||
private Long cropId;
|
||||
|
||||
/** 作物阶段 */
|
||||
@Excel(name = "作物阶段")
|
||||
private Long cropPhaseId;
|
||||
|
||||
/** 平方米 */
|
||||
@Excel(name = "平方米")
|
||||
private BigDecimal m2;
|
||||
|
||||
/** 产出重量 */
|
||||
@Excel(name = "产出重量")
|
||||
private BigDecimal outputWeight;
|
||||
|
||||
/** 是否确定 */
|
||||
@Excel(name = "是否确定")
|
||||
private String isDefinite;
|
||||
|
||||
/** 是否种植 */
|
||||
@Excel(name = "是否种植")
|
||||
private String isPlanted;
|
||||
|
||||
/** 是否拉秧 */
|
||||
@Excel(name = "是否拉秧")
|
||||
private String isEnded;
|
||||
|
||||
/** 确定时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "确定时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date definiteDate;
|
||||
|
||||
/** 种植日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "种植日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date plantedDate;
|
||||
|
||||
/** 拉秧日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "拉秧日期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date endedDate;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private String status;
|
||||
|
||||
/** 删除标志 */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGardenId(Long gardenId)
|
||||
{
|
||||
this.gardenId = gardenId;
|
||||
}
|
||||
|
||||
public Long getGardenId()
|
||||
{
|
||||
return gardenId;
|
||||
}
|
||||
public void setTaskId(Long taskId)
|
||||
{
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public Long getTaskId()
|
||||
{
|
||||
return taskId;
|
||||
}
|
||||
public void setCropId(Long cropId)
|
||||
{
|
||||
this.cropId = cropId;
|
||||
}
|
||||
|
||||
public Long getCropId()
|
||||
{
|
||||
return cropId;
|
||||
}
|
||||
public void setCropPhaseId(Long cropPhaseId)
|
||||
{
|
||||
this.cropPhaseId = cropPhaseId;
|
||||
}
|
||||
|
||||
public Long getCropPhaseId()
|
||||
{
|
||||
return cropPhaseId;
|
||||
}
|
||||
public void setM2(BigDecimal m2)
|
||||
{
|
||||
this.m2 = m2;
|
||||
}
|
||||
|
||||
public BigDecimal getM2()
|
||||
{
|
||||
return m2;
|
||||
}
|
||||
public void setOutputWeight(BigDecimal outputWeight)
|
||||
{
|
||||
this.outputWeight = outputWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getOutputWeight()
|
||||
{
|
||||
return outputWeight;
|
||||
}
|
||||
public void setIsDefinite(String isDefinite)
|
||||
{
|
||||
this.isDefinite = isDefinite;
|
||||
}
|
||||
|
||||
public String getIsDefinite()
|
||||
{
|
||||
return isDefinite;
|
||||
}
|
||||
public void setIsPlanted(String isPlanted)
|
||||
{
|
||||
this.isPlanted = isPlanted;
|
||||
}
|
||||
|
||||
public String getIsPlanted()
|
||||
{
|
||||
return isPlanted;
|
||||
}
|
||||
public void setIsEnded(String isEnded)
|
||||
{
|
||||
this.isEnded = isEnded;
|
||||
}
|
||||
|
||||
public String getIsEnded()
|
||||
{
|
||||
return isEnded;
|
||||
}
|
||||
public void setDefiniteDate(Date definiteDate)
|
||||
{
|
||||
this.definiteDate = definiteDate;
|
||||
}
|
||||
|
||||
public Date getDefiniteDate()
|
||||
{
|
||||
return definiteDate;
|
||||
}
|
||||
public void setPlantedDate(Date plantedDate)
|
||||
{
|
||||
this.plantedDate = plantedDate;
|
||||
}
|
||||
|
||||
public Date getPlantedDate()
|
||||
{
|
||||
return plantedDate;
|
||||
}
|
||||
public void setEndedDate(Date endedDate)
|
||||
{
|
||||
this.endedDate = endedDate;
|
||||
}
|
||||
|
||||
public Date getEndedDate()
|
||||
{
|
||||
return endedDate;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("gardenId", getGardenId())
|
||||
.append("taskId", getTaskId())
|
||||
.append("cropId", getCropId())
|
||||
.append("cropPhaseId", getCropPhaseId())
|
||||
.append("m2", getM2())
|
||||
.append("outputWeight", getOutputWeight())
|
||||
.append("isDefinite", getIsDefinite())
|
||||
.append("isPlanted", getIsPlanted())
|
||||
.append("isEnded", getIsEnded())
|
||||
.append("definiteDate", getDefiniteDate())
|
||||
.append("plantedDate", getPlantedDate())
|
||||
.append("endedDate", getEndedDate())
|
||||
.append("status", getStatus())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
124
private-farm/src/main/java/com/jlt/csa/domain/PickDetail.java
Normal file
124
private-farm/src/main/java/com/jlt/csa/domain/PickDetail.java
Normal file
@ -0,0 +1,124 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 采摘任务明细对象 csa_pick_detail
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public class PickDetail extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 采摘明细id */
|
||||
private Long id;
|
||||
|
||||
/** 任务id */
|
||||
private Long taskId;
|
||||
|
||||
/** 菜地品种id */
|
||||
private Long strainId;
|
||||
|
||||
/** 计划重量 */
|
||||
@Excel(name = "计划重量")
|
||||
private BigDecimal planWeight;
|
||||
|
||||
/** 实际重量 */
|
||||
@Excel(name = "实际重量")
|
||||
private BigDecimal resultWeight;
|
||||
|
||||
/** 是否处理完毕 */
|
||||
@Excel(name = "是否处理完毕")
|
||||
private String isCompleted;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setTaskId(Long taskId)
|
||||
{
|
||||
this.taskId = taskId;
|
||||
}
|
||||
|
||||
public Long getTaskId()
|
||||
{
|
||||
return taskId;
|
||||
}
|
||||
public void setStrainId(Long strainId)
|
||||
{
|
||||
this.strainId = strainId;
|
||||
}
|
||||
|
||||
public Long getStrainId()
|
||||
{
|
||||
return strainId;
|
||||
}
|
||||
public void setPlanWeight(BigDecimal planWeight)
|
||||
{
|
||||
this.planWeight = planWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getPlanWeight()
|
||||
{
|
||||
return planWeight;
|
||||
}
|
||||
public void setResultWeight(BigDecimal resultWeight)
|
||||
{
|
||||
this.resultWeight = resultWeight;
|
||||
}
|
||||
|
||||
public BigDecimal getResultWeight()
|
||||
{
|
||||
return resultWeight;
|
||||
}
|
||||
public void setIsCompleted(String isCompleted)
|
||||
{
|
||||
this.isCompleted = isCompleted;
|
||||
}
|
||||
|
||||
public String getIsCompleted()
|
||||
{
|
||||
return isCompleted;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("taskId", getTaskId())
|
||||
.append("strainId", getStrainId())
|
||||
.append("planWeight", getPlanWeight())
|
||||
.append("resultWeight", getResultWeight())
|
||||
.append("isCompleted", getIsCompleted())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
240
private-farm/src/main/java/com/jlt/csa/domain/TendTask.java
Normal file
240
private-farm/src/main/java/com/jlt/csa/domain/TendTask.java
Normal file
@ -0,0 +1,240 @@
|
||||
package com.jlt.csa.domain;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 打理任务对象 csa_tend_task
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public class TendTask extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 任务id */
|
||||
private Long id;
|
||||
|
||||
/** 菜地id */
|
||||
@Excel(name = "菜地id")
|
||||
private Long gardenId;
|
||||
|
||||
/** 任务类型 */
|
||||
private String taskType;
|
||||
|
||||
/** 任务子类型 */
|
||||
private String taskSubtype;
|
||||
|
||||
/** 任务描述 */
|
||||
@Excel(name = "任务描述")
|
||||
private String description;
|
||||
|
||||
/** 任务阶段 */
|
||||
@Excel(name = "任务阶段")
|
||||
private String executionPhase;
|
||||
|
||||
/** 金币花费 */
|
||||
@Excel(name = "金币花费")
|
||||
private BigDecimal coins;
|
||||
|
||||
/** 任务产生时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "任务产生时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date taskTime;
|
||||
|
||||
/** 反馈时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "反馈时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date feedbackTime;
|
||||
|
||||
/** 反馈结果 */
|
||||
@Excel(name = "反馈结果")
|
||||
private String feedbackResult;
|
||||
|
||||
/** 执行人 */
|
||||
@Excel(name = "执行人")
|
||||
private Long executor;
|
||||
|
||||
/** 反馈人 */
|
||||
@Excel(name = "反馈人")
|
||||
private Long feedbacker;
|
||||
|
||||
/** 是否处理完毕 */
|
||||
@Excel(name = "是否处理完毕")
|
||||
private String isCompleted;
|
||||
|
||||
/** 状态(0正常 1停用) */
|
||||
@Excel(name = "状态", readConverterExp = "0=正常,1=停用")
|
||||
private String status;
|
||||
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
private String delFlag;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setGardenId(Long gardenId)
|
||||
{
|
||||
this.gardenId = gardenId;
|
||||
}
|
||||
|
||||
public Long getGardenId()
|
||||
{
|
||||
return gardenId;
|
||||
}
|
||||
public void setTaskType(String taskType)
|
||||
{
|
||||
this.taskType = taskType;
|
||||
}
|
||||
|
||||
public String getTaskType()
|
||||
{
|
||||
return taskType;
|
||||
}
|
||||
public void setTaskSubtype(String taskSubtype)
|
||||
{
|
||||
this.taskSubtype = taskSubtype;
|
||||
}
|
||||
|
||||
public String getTaskSubtype()
|
||||
{
|
||||
return taskSubtype;
|
||||
}
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
public void setExecutionPhase(String executionPhase)
|
||||
{
|
||||
this.executionPhase = executionPhase;
|
||||
}
|
||||
|
||||
public String getExecutionPhase()
|
||||
{
|
||||
return executionPhase;
|
||||
}
|
||||
public void setCoins(BigDecimal coins)
|
||||
{
|
||||
this.coins = coins;
|
||||
}
|
||||
|
||||
public BigDecimal getCoins()
|
||||
{
|
||||
return coins;
|
||||
}
|
||||
public void setTaskTime(Date taskTime)
|
||||
{
|
||||
this.taskTime = taskTime;
|
||||
}
|
||||
|
||||
public Date getTaskTime()
|
||||
{
|
||||
return taskTime;
|
||||
}
|
||||
public void setFeedbackTime(Date feedbackTime)
|
||||
{
|
||||
this.feedbackTime = feedbackTime;
|
||||
}
|
||||
|
||||
public Date getFeedbackTime()
|
||||
{
|
||||
return feedbackTime;
|
||||
}
|
||||
public void setFeedbackResult(String feedbackResult)
|
||||
{
|
||||
this.feedbackResult = feedbackResult;
|
||||
}
|
||||
|
||||
public String getFeedbackResult()
|
||||
{
|
||||
return feedbackResult;
|
||||
}
|
||||
public void setExecutor(Long executor)
|
||||
{
|
||||
this.executor = executor;
|
||||
}
|
||||
|
||||
public Long getExecutor()
|
||||
{
|
||||
return executor;
|
||||
}
|
||||
public void setFeedbacker(Long feedbacker)
|
||||
{
|
||||
this.feedbacker = feedbacker;
|
||||
}
|
||||
|
||||
public Long getFeedbacker()
|
||||
{
|
||||
return feedbacker;
|
||||
}
|
||||
public void setIsCompleted(String isCompleted)
|
||||
{
|
||||
this.isCompleted = isCompleted;
|
||||
}
|
||||
|
||||
public String getIsCompleted()
|
||||
{
|
||||
return isCompleted;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
public void setDelFlag(String delFlag)
|
||||
{
|
||||
this.delFlag = delFlag;
|
||||
}
|
||||
|
||||
public String getDelFlag()
|
||||
{
|
||||
return delFlag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("gardenId", getGardenId())
|
||||
.append("taskType", getTaskType())
|
||||
.append("taskSubtype", getTaskSubtype())
|
||||
.append("description", getDescription())
|
||||
.append("executionPhase", getExecutionPhase())
|
||||
.append("coins", getCoins())
|
||||
.append("taskTime", getTaskTime())
|
||||
.append("feedbackTime", getFeedbackTime())
|
||||
.append("feedbackResult", getFeedbackResult())
|
||||
.append("executor", getExecutor())
|
||||
.append("feedbacker", getFeedbacker())
|
||||
.append("isCompleted", getIsCompleted())
|
||||
.append("status", getStatus())
|
||||
.append("delFlag", getDelFlag())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.ArchedRecord;
|
||||
|
||||
/**
|
||||
* 拱棚使用记录Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface ArchedRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询拱棚使用记录
|
||||
*
|
||||
* @param id 拱棚使用记录主键
|
||||
* @return 拱棚使用记录
|
||||
*/
|
||||
public ArchedRecord selectArchedRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询拱棚使用记录列表
|
||||
*
|
||||
* @param archedRecord 拱棚使用记录
|
||||
* @return 拱棚使用记录集合
|
||||
*/
|
||||
public List<ArchedRecord> selectArchedRecordList(ArchedRecord archedRecord);
|
||||
|
||||
/**
|
||||
* 新增拱棚使用记录
|
||||
*
|
||||
* @param archedRecord 拱棚使用记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertArchedRecord(ArchedRecord archedRecord);
|
||||
|
||||
/**
|
||||
* 修改拱棚使用记录
|
||||
*
|
||||
* @param archedRecord 拱棚使用记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateArchedRecord(ArchedRecord archedRecord);
|
||||
|
||||
/**
|
||||
* 删除拱棚使用记录
|
||||
*
|
||||
* @param id 拱棚使用记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteArchedRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除拱棚使用记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteArchedRecordByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CoinRecord;
|
||||
|
||||
/**
|
||||
* 金币记录Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface CoinRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询金币记录
|
||||
*
|
||||
* @param id 金币记录主键
|
||||
* @return 金币记录
|
||||
*/
|
||||
public CoinRecord selectCoinRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询金币记录列表
|
||||
*
|
||||
* @param coinRecord 金币记录
|
||||
* @return 金币记录集合
|
||||
*/
|
||||
public List<CoinRecord> selectCoinRecordList(CoinRecord coinRecord);
|
||||
|
||||
/**
|
||||
* 新增金币记录
|
||||
*
|
||||
* @param coinRecord 金币记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCoinRecord(CoinRecord coinRecord);
|
||||
|
||||
/**
|
||||
* 修改金币记录
|
||||
*
|
||||
* @param coinRecord 金币记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCoinRecord(CoinRecord coinRecord);
|
||||
|
||||
/**
|
||||
* 删除金币记录
|
||||
*
|
||||
* @param id 金币记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCoinRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除金币记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCoinRecordByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CommunicateRecord;
|
||||
|
||||
/**
|
||||
* 沟通记录Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface CommunicateRecordMapper
|
||||
{
|
||||
/**
|
||||
* 查询沟通记录
|
||||
*
|
||||
* @param id 沟通记录主键
|
||||
* @return 沟通记录
|
||||
*/
|
||||
public CommunicateRecord selectCommunicateRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询沟通记录列表
|
||||
*
|
||||
* @param communicateRecord 沟通记录
|
||||
* @return 沟通记录集合
|
||||
*/
|
||||
public List<CommunicateRecord> selectCommunicateRecordList(CommunicateRecord communicateRecord);
|
||||
|
||||
/**
|
||||
* 新增沟通记录
|
||||
*
|
||||
* @param communicateRecord 沟通记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCommunicateRecord(CommunicateRecord communicateRecord);
|
||||
|
||||
/**
|
||||
* 修改沟通记录
|
||||
*
|
||||
* @param communicateRecord 沟通记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCommunicateRecord(CommunicateRecord communicateRecord);
|
||||
|
||||
/**
|
||||
* 删除沟通记录
|
||||
*
|
||||
* @param id 沟通记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCommunicateRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除沟通记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCommunicateRecordByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CropFiles;
|
||||
|
||||
/**
|
||||
* 作物档案Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-25
|
||||
*/
|
||||
public interface CropFilesMapper
|
||||
{
|
||||
/**
|
||||
* 查询作物档案
|
||||
*
|
||||
* @param id 作物档案主键
|
||||
* @return 作物档案
|
||||
*/
|
||||
public CropFiles selectCropFilesById(Long id);
|
||||
|
||||
/**
|
||||
* 查询作物档案列表
|
||||
*
|
||||
* @param cropFiles 作物档案
|
||||
* @return 作物档案集合
|
||||
*/
|
||||
public List<CropFiles> selectCropFilesList(CropFiles cropFiles);
|
||||
|
||||
/**
|
||||
* 新增作物档案
|
||||
*
|
||||
* @param cropFiles 作物档案
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCropFiles(CropFiles cropFiles);
|
||||
|
||||
/**
|
||||
* 修改作物档案
|
||||
*
|
||||
* @param cropFiles 作物档案
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCropFiles(CropFiles cropFiles);
|
||||
|
||||
/**
|
||||
* 删除作物档案
|
||||
*
|
||||
* @param id 作物档案主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCropFilesById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除作物档案
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCropFilesByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CropPhase;
|
||||
|
||||
/**
|
||||
* 作物生长阶段Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
public interface CropPhaseMapper
|
||||
{
|
||||
/**
|
||||
* 查询作物生长阶段
|
||||
*
|
||||
* @param id 作物生长阶段主键
|
||||
* @return 作物生长阶段
|
||||
*/
|
||||
public CropPhase selectCropPhaseById(Long id);
|
||||
|
||||
/**
|
||||
* 查询作物生长阶段列表
|
||||
*
|
||||
* @param cropPhase 作物生长阶段
|
||||
* @return 作物生长阶段集合
|
||||
*/
|
||||
public List<CropPhase> selectCropPhaseList(CropPhase cropPhase);
|
||||
|
||||
/**
|
||||
* 新增作物生长阶段
|
||||
*
|
||||
* @param cropPhase 作物生长阶段
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCropPhase(CropPhase cropPhase);
|
||||
|
||||
/**
|
||||
* 修改作物生长阶段
|
||||
*
|
||||
* @param cropPhase 作物生长阶段
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCropPhase(CropPhase cropPhase);
|
||||
|
||||
/**
|
||||
* 删除作物生长阶段
|
||||
*
|
||||
* @param id 作物生长阶段主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCropPhaseById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除作物生长阶段
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCropPhaseByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CsaFarmer;
|
||||
|
||||
/**
|
||||
* 私家农场会员Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
public interface CsaFarmerMapper
|
||||
{
|
||||
/**
|
||||
* 查询私家农场会员
|
||||
*
|
||||
* @param id 私家农场会员主键
|
||||
* @return 私家农场会员
|
||||
*/
|
||||
public CsaFarmer selectCsaFarmerById(Long id);
|
||||
|
||||
/**
|
||||
* 查询私家农场会员列表
|
||||
*
|
||||
* @param csaFarmer 私家农场会员
|
||||
* @return 私家农场会员集合
|
||||
*/
|
||||
public List<CsaFarmer> selectCsaFarmerList(CsaFarmer csaFarmer);
|
||||
|
||||
/**
|
||||
* 新增私家农场会员
|
||||
*
|
||||
* @param csaFarmer 私家农场会员
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCsaFarmer(CsaFarmer csaFarmer);
|
||||
|
||||
/**
|
||||
* 修改私家农场会员
|
||||
*
|
||||
* @param csaFarmer 私家农场会员
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCsaFarmer(CsaFarmer csaFarmer);
|
||||
|
||||
/**
|
||||
* 删除私家农场会员
|
||||
*
|
||||
* @param id 私家农场会员主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCsaFarmerById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除私家农场会员
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCsaFarmerByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CsaMemberCard;
|
||||
|
||||
/**
|
||||
* 会员卡Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
public interface CsaMemberCardMapper
|
||||
{
|
||||
/**
|
||||
* 查询会员卡
|
||||
*
|
||||
* @param id 会员卡主键
|
||||
* @return 会员卡
|
||||
*/
|
||||
public CsaMemberCard selectCsaMemberCardById(Long id);
|
||||
|
||||
/**
|
||||
* 查询会员卡列表
|
||||
*
|
||||
* @param csaMemberCard 会员卡
|
||||
* @return 会员卡集合
|
||||
*/
|
||||
public List<CsaMemberCard> selectCsaMemberCardList(CsaMemberCard csaMemberCard);
|
||||
|
||||
/**
|
||||
* 新增会员卡
|
||||
*
|
||||
* @param csaMemberCard 会员卡
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCsaMemberCard(CsaMemberCard csaMemberCard);
|
||||
|
||||
/**
|
||||
* 修改会员卡
|
||||
*
|
||||
* @param csaMemberCard 会员卡
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCsaMemberCard(CsaMemberCard csaMemberCard);
|
||||
|
||||
/**
|
||||
* 删除会员卡
|
||||
*
|
||||
* @param id 会员卡主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCsaMemberCardById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除会员卡
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCsaMemberCardByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.GardenLogAttach;
|
||||
|
||||
/**
|
||||
* 菜地日志附件Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface GardenLogAttachMapper
|
||||
{
|
||||
/**
|
||||
* 查询菜地日志附件
|
||||
*
|
||||
* @param id 菜地日志附件主键
|
||||
* @return 菜地日志附件
|
||||
*/
|
||||
public GardenLogAttach selectGardenLogAttachById(Long id);
|
||||
|
||||
/**
|
||||
* 查询菜地日志附件列表
|
||||
*
|
||||
* @param gardenLogAttach 菜地日志附件
|
||||
* @return 菜地日志附件集合
|
||||
*/
|
||||
public List<GardenLogAttach> selectGardenLogAttachList(GardenLogAttach gardenLogAttach);
|
||||
|
||||
/**
|
||||
* 新增菜地日志附件
|
||||
*
|
||||
* @param gardenLogAttach 菜地日志附件
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGardenLogAttach(GardenLogAttach gardenLogAttach);
|
||||
|
||||
/**
|
||||
* 修改菜地日志附件
|
||||
*
|
||||
* @param gardenLogAttach 菜地日志附件
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGardenLogAttach(GardenLogAttach gardenLogAttach);
|
||||
|
||||
/**
|
||||
* 删除菜地日志附件
|
||||
*
|
||||
* @param id 菜地日志附件主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenLogAttachById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除菜地日志附件
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenLogAttachByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.GardenLog;
|
||||
|
||||
/**
|
||||
* 菜地日志Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface GardenLogMapper
|
||||
{
|
||||
/**
|
||||
* 查询菜地日志
|
||||
*
|
||||
* @param id 菜地日志主键
|
||||
* @return 菜地日志
|
||||
*/
|
||||
public GardenLog selectGardenLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询菜地日志列表
|
||||
*
|
||||
* @param gardenLog 菜地日志
|
||||
* @return 菜地日志集合
|
||||
*/
|
||||
public List<GardenLog> selectGardenLogList(GardenLog gardenLog);
|
||||
|
||||
/**
|
||||
* 新增菜地日志
|
||||
*
|
||||
* @param gardenLog 菜地日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGardenLog(GardenLog gardenLog);
|
||||
|
||||
/**
|
||||
* 修改菜地日志
|
||||
*
|
||||
* @param gardenLog 菜地日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGardenLog(GardenLog gardenLog);
|
||||
|
||||
/**
|
||||
* 删除菜地日志
|
||||
*
|
||||
* @param id 菜地日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenLogById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除菜地日志
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenLogByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.GardenStrain;
|
||||
|
||||
/**
|
||||
* 菜地品种Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface GardenStrainMapper
|
||||
{
|
||||
/**
|
||||
* 查询菜地品种
|
||||
*
|
||||
* @param id 菜地品种主键
|
||||
* @return 菜地品种
|
||||
*/
|
||||
public GardenStrain selectGardenStrainById(Long id);
|
||||
|
||||
/**
|
||||
* 查询菜地品种列表
|
||||
*
|
||||
* @param gardenStrain 菜地品种
|
||||
* @return 菜地品种集合
|
||||
*/
|
||||
public List<GardenStrain> selectGardenStrainList(GardenStrain gardenStrain);
|
||||
|
||||
/**
|
||||
* 新增菜地品种
|
||||
*
|
||||
* @param gardenStrain 菜地品种
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGardenStrain(GardenStrain gardenStrain);
|
||||
|
||||
/**
|
||||
* 修改菜地品种
|
||||
*
|
||||
* @param gardenStrain 菜地品种
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGardenStrain(GardenStrain gardenStrain);
|
||||
|
||||
/**
|
||||
* 删除菜地品种
|
||||
*
|
||||
* @param id 菜地品种主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenStrainById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除菜地品种
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenStrainByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.PickDetail;
|
||||
|
||||
/**
|
||||
* 采摘任务明细Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface PickDetailMapper
|
||||
{
|
||||
/**
|
||||
* 查询采摘任务明细
|
||||
*
|
||||
* @param id 采摘任务明细主键
|
||||
* @return 采摘任务明细
|
||||
*/
|
||||
public PickDetail selectPickDetailById(Long id);
|
||||
|
||||
/**
|
||||
* 查询采摘任务明细列表
|
||||
*
|
||||
* @param pickDetail 采摘任务明细
|
||||
* @return 采摘任务明细集合
|
||||
*/
|
||||
public List<PickDetail> selectPickDetailList(PickDetail pickDetail);
|
||||
|
||||
/**
|
||||
* 新增采摘任务明细
|
||||
*
|
||||
* @param pickDetail 采摘任务明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPickDetail(PickDetail pickDetail);
|
||||
|
||||
/**
|
||||
* 修改采摘任务明细
|
||||
*
|
||||
* @param pickDetail 采摘任务明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePickDetail(PickDetail pickDetail);
|
||||
|
||||
/**
|
||||
* 删除采摘任务明细
|
||||
*
|
||||
* @param id 采摘任务明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePickDetailById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除采摘任务明细
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePickDetailByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.TendTask;
|
||||
|
||||
/**
|
||||
* 打理任务Mapper接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface TendTaskMapper
|
||||
{
|
||||
/**
|
||||
* 查询打理任务
|
||||
*
|
||||
* @param id 打理任务主键
|
||||
* @return 打理任务
|
||||
*/
|
||||
public TendTask selectTendTaskById(Long id);
|
||||
|
||||
/**
|
||||
* 查询打理任务列表
|
||||
*
|
||||
* @param tendTask 打理任务
|
||||
* @return 打理任务集合
|
||||
*/
|
||||
public List<TendTask> selectTendTaskList(TendTask tendTask);
|
||||
|
||||
/**
|
||||
* 新增打理任务
|
||||
*
|
||||
* @param tendTask 打理任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTendTask(TendTask tendTask);
|
||||
|
||||
/**
|
||||
* 修改打理任务
|
||||
*
|
||||
* @param tendTask 打理任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTendTask(TendTask tendTask);
|
||||
|
||||
/**
|
||||
* 删除打理任务
|
||||
*
|
||||
* @param id 打理任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTendTaskById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除打理任务
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTendTaskByIds(Long[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.ArchedRecord;
|
||||
|
||||
/**
|
||||
* 拱棚使用记录Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface IArchedRecordService
|
||||
{
|
||||
/**
|
||||
* 查询拱棚使用记录
|
||||
*
|
||||
* @param id 拱棚使用记录主键
|
||||
* @return 拱棚使用记录
|
||||
*/
|
||||
public ArchedRecord selectArchedRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询拱棚使用记录列表
|
||||
*
|
||||
* @param archedRecord 拱棚使用记录
|
||||
* @return 拱棚使用记录集合
|
||||
*/
|
||||
public List<ArchedRecord> selectArchedRecordList(ArchedRecord archedRecord);
|
||||
|
||||
/**
|
||||
* 新增拱棚使用记录
|
||||
*
|
||||
* @param archedRecord 拱棚使用记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertArchedRecord(ArchedRecord archedRecord);
|
||||
|
||||
/**
|
||||
* 修改拱棚使用记录
|
||||
*
|
||||
* @param archedRecord 拱棚使用记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateArchedRecord(ArchedRecord archedRecord);
|
||||
|
||||
/**
|
||||
* 批量删除拱棚使用记录
|
||||
*
|
||||
* @param ids 需要删除的拱棚使用记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteArchedRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除拱棚使用记录信息
|
||||
*
|
||||
* @param id 拱棚使用记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteArchedRecordById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CoinRecord;
|
||||
|
||||
/**
|
||||
* 金币记录Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface ICoinRecordService
|
||||
{
|
||||
/**
|
||||
* 查询金币记录
|
||||
*
|
||||
* @param id 金币记录主键
|
||||
* @return 金币记录
|
||||
*/
|
||||
public CoinRecord selectCoinRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询金币记录列表
|
||||
*
|
||||
* @param coinRecord 金币记录
|
||||
* @return 金币记录集合
|
||||
*/
|
||||
public List<CoinRecord> selectCoinRecordList(CoinRecord coinRecord);
|
||||
|
||||
/**
|
||||
* 新增金币记录
|
||||
*
|
||||
* @param coinRecord 金币记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCoinRecord(CoinRecord coinRecord);
|
||||
|
||||
/**
|
||||
* 修改金币记录
|
||||
*
|
||||
* @param coinRecord 金币记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCoinRecord(CoinRecord coinRecord);
|
||||
|
||||
/**
|
||||
* 批量删除金币记录
|
||||
*
|
||||
* @param ids 需要删除的金币记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCoinRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除金币记录信息
|
||||
*
|
||||
* @param id 金币记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCoinRecordById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CommunicateRecord;
|
||||
|
||||
/**
|
||||
* 沟通记录Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface ICommunicateRecordService
|
||||
{
|
||||
/**
|
||||
* 查询沟通记录
|
||||
*
|
||||
* @param id 沟通记录主键
|
||||
* @return 沟通记录
|
||||
*/
|
||||
public CommunicateRecord selectCommunicateRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询沟通记录列表
|
||||
*
|
||||
* @param communicateRecord 沟通记录
|
||||
* @return 沟通记录集合
|
||||
*/
|
||||
public List<CommunicateRecord> selectCommunicateRecordList(CommunicateRecord communicateRecord);
|
||||
|
||||
/**
|
||||
* 新增沟通记录
|
||||
*
|
||||
* @param communicateRecord 沟通记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCommunicateRecord(CommunicateRecord communicateRecord);
|
||||
|
||||
/**
|
||||
* 修改沟通记录
|
||||
*
|
||||
* @param communicateRecord 沟通记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCommunicateRecord(CommunicateRecord communicateRecord);
|
||||
|
||||
/**
|
||||
* 批量删除沟通记录
|
||||
*
|
||||
* @param ids 需要删除的沟通记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCommunicateRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除沟通记录信息
|
||||
*
|
||||
* @param id 沟通记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCommunicateRecordById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CropFiles;
|
||||
|
||||
/**
|
||||
* 作物档案Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-25
|
||||
*/
|
||||
public interface ICropFilesService
|
||||
{
|
||||
/**
|
||||
* 查询作物档案
|
||||
*
|
||||
* @param id 作物档案主键
|
||||
* @return 作物档案
|
||||
*/
|
||||
public CropFiles selectCropFilesById(Long id);
|
||||
|
||||
/**
|
||||
* 查询作物档案列表
|
||||
*
|
||||
* @param cropFiles 作物档案
|
||||
* @return 作物档案集合
|
||||
*/
|
||||
public List<CropFiles> selectCropFilesList(CropFiles cropFiles);
|
||||
|
||||
/**
|
||||
* 新增作物档案
|
||||
*
|
||||
* @param cropFiles 作物档案
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCropFiles(CropFiles cropFiles);
|
||||
|
||||
/**
|
||||
* 修改作物档案
|
||||
*
|
||||
* @param cropFiles 作物档案
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCropFiles(CropFiles cropFiles);
|
||||
|
||||
/**
|
||||
* 批量删除作物档案
|
||||
*
|
||||
* @param ids 需要删除的作物档案主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCropFilesByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除作物档案信息
|
||||
*
|
||||
* @param id 作物档案主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCropFilesById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CropPhase;
|
||||
|
||||
/**
|
||||
* 作物生长阶段Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
public interface ICropPhaseService
|
||||
{
|
||||
/**
|
||||
* 查询作物生长阶段
|
||||
*
|
||||
* @param id 作物生长阶段主键
|
||||
* @return 作物生长阶段
|
||||
*/
|
||||
public CropPhase selectCropPhaseById(Long id);
|
||||
|
||||
/**
|
||||
* 查询作物生长阶段列表
|
||||
*
|
||||
* @param cropPhase 作物生长阶段
|
||||
* @return 作物生长阶段集合
|
||||
*/
|
||||
public List<CropPhase> selectCropPhaseList(CropPhase cropPhase);
|
||||
|
||||
/**
|
||||
* 新增作物生长阶段
|
||||
*
|
||||
* @param cropPhase 作物生长阶段
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCropPhase(CropPhase cropPhase);
|
||||
|
||||
/**
|
||||
* 修改作物生长阶段
|
||||
*
|
||||
* @param cropPhase 作物生长阶段
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCropPhase(CropPhase cropPhase);
|
||||
|
||||
/**
|
||||
* 批量删除作物生长阶段
|
||||
*
|
||||
* @param ids 需要删除的作物生长阶段主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCropPhaseByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除作物生长阶段信息
|
||||
*
|
||||
* @param id 作物生长阶段主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCropPhaseById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CsaFarmer;
|
||||
|
||||
/**
|
||||
* 私家农场会员Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
public interface ICsaFarmerService
|
||||
{
|
||||
/**
|
||||
* 查询私家农场会员
|
||||
*
|
||||
* @param id 私家农场会员主键
|
||||
* @return 私家农场会员
|
||||
*/
|
||||
public CsaFarmer selectCsaFarmerById(Long id);
|
||||
|
||||
/**
|
||||
* 查询私家农场会员列表
|
||||
*
|
||||
* @param csaFarmer 私家农场会员
|
||||
* @return 私家农场会员集合
|
||||
*/
|
||||
public List<CsaFarmer> selectCsaFarmerList(CsaFarmer csaFarmer);
|
||||
|
||||
/**
|
||||
* 新增私家农场会员
|
||||
*
|
||||
* @param csaFarmer 私家农场会员
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCsaFarmer(CsaFarmer csaFarmer);
|
||||
|
||||
/**
|
||||
* 修改私家农场会员
|
||||
*
|
||||
* @param csaFarmer 私家农场会员
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCsaFarmer(CsaFarmer csaFarmer);
|
||||
|
||||
/**
|
||||
* 批量删除私家农场会员
|
||||
*
|
||||
* @param ids 需要删除的私家农场会员主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCsaFarmerByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除私家农场会员信息
|
||||
*
|
||||
* @param id 私家农场会员主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCsaFarmerById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.CsaMemberCard;
|
||||
|
||||
/**
|
||||
* 会员卡Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
public interface ICsaMemberCardService
|
||||
{
|
||||
/**
|
||||
* 查询会员卡
|
||||
*
|
||||
* @param id 会员卡主键
|
||||
* @return 会员卡
|
||||
*/
|
||||
public CsaMemberCard selectCsaMemberCardById(Long id);
|
||||
|
||||
/**
|
||||
* 查询会员卡列表
|
||||
*
|
||||
* @param csaMemberCard 会员卡
|
||||
* @return 会员卡集合
|
||||
*/
|
||||
public List<CsaMemberCard> selectCsaMemberCardList(CsaMemberCard csaMemberCard);
|
||||
|
||||
/**
|
||||
* 新增会员卡
|
||||
*
|
||||
* @param csaMemberCard 会员卡
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCsaMemberCard(CsaMemberCard csaMemberCard);
|
||||
|
||||
/**
|
||||
* 修改会员卡
|
||||
*
|
||||
* @param csaMemberCard 会员卡
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCsaMemberCard(CsaMemberCard csaMemberCard);
|
||||
|
||||
/**
|
||||
* 批量删除会员卡
|
||||
*
|
||||
* @param ids 需要删除的会员卡主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCsaMemberCardByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除会员卡信息
|
||||
*
|
||||
* @param id 会员卡主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCsaMemberCardById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.GardenLogAttach;
|
||||
|
||||
/**
|
||||
* 菜地日志附件Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface IGardenLogAttachService
|
||||
{
|
||||
/**
|
||||
* 查询菜地日志附件
|
||||
*
|
||||
* @param id 菜地日志附件主键
|
||||
* @return 菜地日志附件
|
||||
*/
|
||||
public GardenLogAttach selectGardenLogAttachById(Long id);
|
||||
|
||||
/**
|
||||
* 查询菜地日志附件列表
|
||||
*
|
||||
* @param gardenLogAttach 菜地日志附件
|
||||
* @return 菜地日志附件集合
|
||||
*/
|
||||
public List<GardenLogAttach> selectGardenLogAttachList(GardenLogAttach gardenLogAttach);
|
||||
|
||||
/**
|
||||
* 新增菜地日志附件
|
||||
*
|
||||
* @param gardenLogAttach 菜地日志附件
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGardenLogAttach(GardenLogAttach gardenLogAttach);
|
||||
|
||||
/**
|
||||
* 修改菜地日志附件
|
||||
*
|
||||
* @param gardenLogAttach 菜地日志附件
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGardenLogAttach(GardenLogAttach gardenLogAttach);
|
||||
|
||||
/**
|
||||
* 批量删除菜地日志附件
|
||||
*
|
||||
* @param ids 需要删除的菜地日志附件主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenLogAttachByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除菜地日志附件信息
|
||||
*
|
||||
* @param id 菜地日志附件主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenLogAttachById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.GardenLog;
|
||||
|
||||
/**
|
||||
* 菜地日志Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface IGardenLogService
|
||||
{
|
||||
/**
|
||||
* 查询菜地日志
|
||||
*
|
||||
* @param id 菜地日志主键
|
||||
* @return 菜地日志
|
||||
*/
|
||||
public GardenLog selectGardenLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询菜地日志列表
|
||||
*
|
||||
* @param gardenLog 菜地日志
|
||||
* @return 菜地日志集合
|
||||
*/
|
||||
public List<GardenLog> selectGardenLogList(GardenLog gardenLog);
|
||||
|
||||
/**
|
||||
* 新增菜地日志
|
||||
*
|
||||
* @param gardenLog 菜地日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGardenLog(GardenLog gardenLog);
|
||||
|
||||
/**
|
||||
* 修改菜地日志
|
||||
*
|
||||
* @param gardenLog 菜地日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGardenLog(GardenLog gardenLog);
|
||||
|
||||
/**
|
||||
* 批量删除菜地日志
|
||||
*
|
||||
* @param ids 需要删除的菜地日志主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenLogByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除菜地日志信息
|
||||
*
|
||||
* @param id 菜地日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenLogById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.GardenStrain;
|
||||
|
||||
/**
|
||||
* 菜地品种Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface IGardenStrainService
|
||||
{
|
||||
/**
|
||||
* 查询菜地品种
|
||||
*
|
||||
* @param id 菜地品种主键
|
||||
* @return 菜地品种
|
||||
*/
|
||||
public GardenStrain selectGardenStrainById(Long id);
|
||||
|
||||
/**
|
||||
* 查询菜地品种列表
|
||||
*
|
||||
* @param gardenStrain 菜地品种
|
||||
* @return 菜地品种集合
|
||||
*/
|
||||
public List<GardenStrain> selectGardenStrainList(GardenStrain gardenStrain);
|
||||
|
||||
/**
|
||||
* 新增菜地品种
|
||||
*
|
||||
* @param gardenStrain 菜地品种
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertGardenStrain(GardenStrain gardenStrain);
|
||||
|
||||
/**
|
||||
* 修改菜地品种
|
||||
*
|
||||
* @param gardenStrain 菜地品种
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateGardenStrain(GardenStrain gardenStrain);
|
||||
|
||||
/**
|
||||
* 批量删除菜地品种
|
||||
*
|
||||
* @param ids 需要删除的菜地品种主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenStrainByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除菜地品种信息
|
||||
*
|
||||
* @param id 菜地品种主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteGardenStrainById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.PickDetail;
|
||||
|
||||
/**
|
||||
* 采摘任务明细Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface IPickDetailService
|
||||
{
|
||||
/**
|
||||
* 查询采摘任务明细
|
||||
*
|
||||
* @param id 采摘任务明细主键
|
||||
* @return 采摘任务明细
|
||||
*/
|
||||
public PickDetail selectPickDetailById(Long id);
|
||||
|
||||
/**
|
||||
* 查询采摘任务明细列表
|
||||
*
|
||||
* @param pickDetail 采摘任务明细
|
||||
* @return 采摘任务明细集合
|
||||
*/
|
||||
public List<PickDetail> selectPickDetailList(PickDetail pickDetail);
|
||||
|
||||
/**
|
||||
* 新增采摘任务明细
|
||||
*
|
||||
* @param pickDetail 采摘任务明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPickDetail(PickDetail pickDetail);
|
||||
|
||||
/**
|
||||
* 修改采摘任务明细
|
||||
*
|
||||
* @param pickDetail 采摘任务明细
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePickDetail(PickDetail pickDetail);
|
||||
|
||||
/**
|
||||
* 批量删除采摘任务明细
|
||||
*
|
||||
* @param ids 需要删除的采摘任务明细主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePickDetailByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除采摘任务明细信息
|
||||
*
|
||||
* @param id 采摘任务明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePickDetailById(Long id);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.jlt.csa.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.jlt.csa.domain.TendTask;
|
||||
|
||||
/**
|
||||
* 打理任务Service接口
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
public interface ITendTaskService
|
||||
{
|
||||
/**
|
||||
* 查询打理任务
|
||||
*
|
||||
* @param id 打理任务主键
|
||||
* @return 打理任务
|
||||
*/
|
||||
public TendTask selectTendTaskById(Long id);
|
||||
|
||||
/**
|
||||
* 查询打理任务列表
|
||||
*
|
||||
* @param tendTask 打理任务
|
||||
* @return 打理任务集合
|
||||
*/
|
||||
public List<TendTask> selectTendTaskList(TendTask tendTask);
|
||||
|
||||
/**
|
||||
* 新增打理任务
|
||||
*
|
||||
* @param tendTask 打理任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertTendTask(TendTask tendTask);
|
||||
|
||||
/**
|
||||
* 修改打理任务
|
||||
*
|
||||
* @param tendTask 打理任务
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateTendTask(TendTask tendTask);
|
||||
|
||||
/**
|
||||
* 批量删除打理任务
|
||||
*
|
||||
* @param ids 需要删除的打理任务主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTendTaskByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除打理任务信息
|
||||
*
|
||||
* @param id 打理任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteTendTaskById(Long id);
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.ArchedRecordMapper;
|
||||
import com.jlt.csa.domain.ArchedRecord;
|
||||
import com.jlt.csa.service.IArchedRecordService;
|
||||
|
||||
/**
|
||||
* 拱棚使用记录Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@Service
|
||||
public class ArchedRecordServiceImpl implements IArchedRecordService
|
||||
{
|
||||
@Autowired
|
||||
private ArchedRecordMapper archedRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询拱棚使用记录
|
||||
*
|
||||
* @param id 拱棚使用记录主键
|
||||
* @return 拱棚使用记录
|
||||
*/
|
||||
@Override
|
||||
public ArchedRecord selectArchedRecordById(Long id)
|
||||
{
|
||||
return archedRecordMapper.selectArchedRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询拱棚使用记录列表
|
||||
*
|
||||
* @param archedRecord 拱棚使用记录
|
||||
* @return 拱棚使用记录
|
||||
*/
|
||||
@Override
|
||||
public List<ArchedRecord> selectArchedRecordList(ArchedRecord archedRecord)
|
||||
{
|
||||
return archedRecordMapper.selectArchedRecordList(archedRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增拱棚使用记录
|
||||
*
|
||||
* @param archedRecord 拱棚使用记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertArchedRecord(ArchedRecord archedRecord)
|
||||
{
|
||||
archedRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return archedRecordMapper.insertArchedRecord(archedRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改拱棚使用记录
|
||||
*
|
||||
* @param archedRecord 拱棚使用记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateArchedRecord(ArchedRecord archedRecord)
|
||||
{
|
||||
archedRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return archedRecordMapper.updateArchedRecord(archedRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除拱棚使用记录
|
||||
*
|
||||
* @param ids 需要删除的拱棚使用记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteArchedRecordByIds(Long[] ids)
|
||||
{
|
||||
return archedRecordMapper.deleteArchedRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除拱棚使用记录信息
|
||||
*
|
||||
* @param id 拱棚使用记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteArchedRecordById(Long id)
|
||||
{
|
||||
return archedRecordMapper.deleteArchedRecordById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.CoinRecordMapper;
|
||||
import com.jlt.csa.domain.CoinRecord;
|
||||
import com.jlt.csa.service.ICoinRecordService;
|
||||
|
||||
/**
|
||||
* 金币记录Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@Service
|
||||
public class CoinRecordServiceImpl implements ICoinRecordService
|
||||
{
|
||||
@Autowired
|
||||
private CoinRecordMapper coinRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询金币记录
|
||||
*
|
||||
* @param id 金币记录主键
|
||||
* @return 金币记录
|
||||
*/
|
||||
@Override
|
||||
public CoinRecord selectCoinRecordById(Long id)
|
||||
{
|
||||
return coinRecordMapper.selectCoinRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询金币记录列表
|
||||
*
|
||||
* @param coinRecord 金币记录
|
||||
* @return 金币记录
|
||||
*/
|
||||
@Override
|
||||
public List<CoinRecord> selectCoinRecordList(CoinRecord coinRecord)
|
||||
{
|
||||
return coinRecordMapper.selectCoinRecordList(coinRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增金币记录
|
||||
*
|
||||
* @param coinRecord 金币记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCoinRecord(CoinRecord coinRecord)
|
||||
{
|
||||
coinRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return coinRecordMapper.insertCoinRecord(coinRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改金币记录
|
||||
*
|
||||
* @param coinRecord 金币记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCoinRecord(CoinRecord coinRecord)
|
||||
{
|
||||
coinRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return coinRecordMapper.updateCoinRecord(coinRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除金币记录
|
||||
*
|
||||
* @param ids 需要删除的金币记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCoinRecordByIds(Long[] ids)
|
||||
{
|
||||
return coinRecordMapper.deleteCoinRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除金币记录信息
|
||||
*
|
||||
* @param id 金币记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCoinRecordById(Long id)
|
||||
{
|
||||
return coinRecordMapper.deleteCoinRecordById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.CommunicateRecordMapper;
|
||||
import com.jlt.csa.domain.CommunicateRecord;
|
||||
import com.jlt.csa.service.ICommunicateRecordService;
|
||||
|
||||
/**
|
||||
* 沟通记录Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@Service
|
||||
public class CommunicateRecordServiceImpl implements ICommunicateRecordService
|
||||
{
|
||||
@Autowired
|
||||
private CommunicateRecordMapper communicateRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询沟通记录
|
||||
*
|
||||
* @param id 沟通记录主键
|
||||
* @return 沟通记录
|
||||
*/
|
||||
@Override
|
||||
public CommunicateRecord selectCommunicateRecordById(Long id)
|
||||
{
|
||||
return communicateRecordMapper.selectCommunicateRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询沟通记录列表
|
||||
*
|
||||
* @param communicateRecord 沟通记录
|
||||
* @return 沟通记录
|
||||
*/
|
||||
@Override
|
||||
public List<CommunicateRecord> selectCommunicateRecordList(CommunicateRecord communicateRecord)
|
||||
{
|
||||
return communicateRecordMapper.selectCommunicateRecordList(communicateRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增沟通记录
|
||||
*
|
||||
* @param communicateRecord 沟通记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCommunicateRecord(CommunicateRecord communicateRecord)
|
||||
{
|
||||
communicateRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return communicateRecordMapper.insertCommunicateRecord(communicateRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改沟通记录
|
||||
*
|
||||
* @param communicateRecord 沟通记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCommunicateRecord(CommunicateRecord communicateRecord)
|
||||
{
|
||||
communicateRecord.setUpdateTime(DateUtils.getNowDate());
|
||||
return communicateRecordMapper.updateCommunicateRecord(communicateRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除沟通记录
|
||||
*
|
||||
* @param ids 需要删除的沟通记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCommunicateRecordByIds(Long[] ids)
|
||||
{
|
||||
return communicateRecordMapper.deleteCommunicateRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除沟通记录信息
|
||||
*
|
||||
* @param id 沟通记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCommunicateRecordById(Long id)
|
||||
{
|
||||
return communicateRecordMapper.deleteCommunicateRecordById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.CropFilesMapper;
|
||||
import com.jlt.csa.domain.CropFiles;
|
||||
import com.jlt.csa.service.ICropFilesService;
|
||||
|
||||
/**
|
||||
* 作物档案Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-25
|
||||
*/
|
||||
@Service
|
||||
public class CropFilesServiceImpl implements ICropFilesService
|
||||
{
|
||||
@Autowired
|
||||
private CropFilesMapper cropFilesMapper;
|
||||
|
||||
/**
|
||||
* 查询作物档案
|
||||
*
|
||||
* @param id 作物档案主键
|
||||
* @return 作物档案
|
||||
*/
|
||||
@Override
|
||||
public CropFiles selectCropFilesById(Long id)
|
||||
{
|
||||
return cropFilesMapper.selectCropFilesById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询作物档案列表
|
||||
*
|
||||
* @param cropFiles 作物档案
|
||||
* @return 作物档案
|
||||
*/
|
||||
@Override
|
||||
public List<CropFiles> selectCropFilesList(CropFiles cropFiles)
|
||||
{
|
||||
return cropFilesMapper.selectCropFilesList(cropFiles);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增作物档案
|
||||
*
|
||||
* @param cropFiles 作物档案
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCropFiles(CropFiles cropFiles)
|
||||
{
|
||||
cropFiles.setCreateTime(DateUtils.getNowDate());
|
||||
return cropFilesMapper.insertCropFiles(cropFiles);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改作物档案
|
||||
*
|
||||
* @param cropFiles 作物档案
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCropFiles(CropFiles cropFiles)
|
||||
{
|
||||
cropFiles.setUpdateTime(DateUtils.getNowDate());
|
||||
return cropFilesMapper.updateCropFiles(cropFiles);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除作物档案
|
||||
*
|
||||
* @param ids 需要删除的作物档案主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCropFilesByIds(Long[] ids)
|
||||
{
|
||||
return cropFilesMapper.deleteCropFilesByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除作物档案信息
|
||||
*
|
||||
* @param id 作物档案主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCropFilesById(Long id)
|
||||
{
|
||||
return cropFilesMapper.deleteCropFilesById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.CropPhaseMapper;
|
||||
import com.jlt.csa.domain.CropPhase;
|
||||
import com.jlt.csa.service.ICropPhaseService;
|
||||
|
||||
/**
|
||||
* 作物生长阶段Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
@Service
|
||||
public class CropPhaseServiceImpl implements ICropPhaseService
|
||||
{
|
||||
@Autowired
|
||||
private CropPhaseMapper cropPhaseMapper;
|
||||
|
||||
/**
|
||||
* 查询作物生长阶段
|
||||
*
|
||||
* @param id 作物生长阶段主键
|
||||
* @return 作物生长阶段
|
||||
*/
|
||||
@Override
|
||||
public CropPhase selectCropPhaseById(Long id)
|
||||
{
|
||||
return cropPhaseMapper.selectCropPhaseById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询作物生长阶段列表
|
||||
*
|
||||
* @param cropPhase 作物生长阶段
|
||||
* @return 作物生长阶段
|
||||
*/
|
||||
@Override
|
||||
public List<CropPhase> selectCropPhaseList(CropPhase cropPhase)
|
||||
{
|
||||
return cropPhaseMapper.selectCropPhaseList(cropPhase);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增作物生长阶段
|
||||
*
|
||||
* @param cropPhase 作物生长阶段
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCropPhase(CropPhase cropPhase)
|
||||
{
|
||||
cropPhase.setCreateTime(DateUtils.getNowDate());
|
||||
return cropPhaseMapper.insertCropPhase(cropPhase);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改作物生长阶段
|
||||
*
|
||||
* @param cropPhase 作物生长阶段
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCropPhase(CropPhase cropPhase)
|
||||
{
|
||||
cropPhase.setUpdateTime(DateUtils.getNowDate());
|
||||
return cropPhaseMapper.updateCropPhase(cropPhase);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除作物生长阶段
|
||||
*
|
||||
* @param ids 需要删除的作物生长阶段主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCropPhaseByIds(Long[] ids)
|
||||
{
|
||||
return cropPhaseMapper.deleteCropPhaseByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除作物生长阶段信息
|
||||
*
|
||||
* @param id 作物生长阶段主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCropPhaseById(Long id)
|
||||
{
|
||||
return cropPhaseMapper.deleteCropPhaseById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.CsaFarmerMapper;
|
||||
import com.jlt.csa.domain.CsaFarmer;
|
||||
import com.jlt.csa.service.ICsaFarmerService;
|
||||
|
||||
/**
|
||||
* 私家农场会员Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
@Service
|
||||
public class CsaFarmerServiceImpl implements ICsaFarmerService
|
||||
{
|
||||
@Autowired
|
||||
private CsaFarmerMapper csaFarmerMapper;
|
||||
|
||||
/**
|
||||
* 查询私家农场会员
|
||||
*
|
||||
* @param id 私家农场会员主键
|
||||
* @return 私家农场会员
|
||||
*/
|
||||
@Override
|
||||
public CsaFarmer selectCsaFarmerById(Long id)
|
||||
{
|
||||
return csaFarmerMapper.selectCsaFarmerById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询私家农场会员列表
|
||||
*
|
||||
* @param csaFarmer 私家农场会员
|
||||
* @return 私家农场会员
|
||||
*/
|
||||
@Override
|
||||
public List<CsaFarmer> selectCsaFarmerList(CsaFarmer csaFarmer)
|
||||
{
|
||||
return csaFarmerMapper.selectCsaFarmerList(csaFarmer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增私家农场会员
|
||||
*
|
||||
* @param csaFarmer 私家农场会员
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCsaFarmer(CsaFarmer csaFarmer)
|
||||
{
|
||||
csaFarmer.setCreateTime(DateUtils.getNowDate());
|
||||
return csaFarmerMapper.insertCsaFarmer(csaFarmer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改私家农场会员
|
||||
*
|
||||
* @param csaFarmer 私家农场会员
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCsaFarmer(CsaFarmer csaFarmer)
|
||||
{
|
||||
csaFarmer.setUpdateTime(DateUtils.getNowDate());
|
||||
return csaFarmerMapper.updateCsaFarmer(csaFarmer);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除私家农场会员
|
||||
*
|
||||
* @param ids 需要删除的私家农场会员主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCsaFarmerByIds(Long[] ids)
|
||||
{
|
||||
return csaFarmerMapper.deleteCsaFarmerByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除私家农场会员信息
|
||||
*
|
||||
* @param id 私家农场会员主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCsaFarmerById(Long id)
|
||||
{
|
||||
return csaFarmerMapper.deleteCsaFarmerById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.CsaMemberCardMapper;
|
||||
import com.jlt.csa.domain.CsaMemberCard;
|
||||
import com.jlt.csa.service.ICsaMemberCardService;
|
||||
|
||||
/**
|
||||
* 会员卡Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-26
|
||||
*/
|
||||
@Service
|
||||
public class CsaMemberCardServiceImpl implements ICsaMemberCardService
|
||||
{
|
||||
@Autowired
|
||||
private CsaMemberCardMapper csaMemberCardMapper;
|
||||
|
||||
/**
|
||||
* 查询会员卡
|
||||
*
|
||||
* @param id 会员卡主键
|
||||
* @return 会员卡
|
||||
*/
|
||||
@Override
|
||||
public CsaMemberCard selectCsaMemberCardById(Long id)
|
||||
{
|
||||
return csaMemberCardMapper.selectCsaMemberCardById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询会员卡列表
|
||||
*
|
||||
* @param csaMemberCard 会员卡
|
||||
* @return 会员卡
|
||||
*/
|
||||
@Override
|
||||
public List<CsaMemberCard> selectCsaMemberCardList(CsaMemberCard csaMemberCard)
|
||||
{
|
||||
return csaMemberCardMapper.selectCsaMemberCardList(csaMemberCard);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增会员卡
|
||||
*
|
||||
* @param csaMemberCard 会员卡
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCsaMemberCard(CsaMemberCard csaMemberCard)
|
||||
{
|
||||
csaMemberCard.setCreateTime(DateUtils.getNowDate());
|
||||
return csaMemberCardMapper.insertCsaMemberCard(csaMemberCard);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改会员卡
|
||||
*
|
||||
* @param csaMemberCard 会员卡
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCsaMemberCard(CsaMemberCard csaMemberCard)
|
||||
{
|
||||
csaMemberCard.setUpdateTime(DateUtils.getNowDate());
|
||||
return csaMemberCardMapper.updateCsaMemberCard(csaMemberCard);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除会员卡
|
||||
*
|
||||
* @param ids 需要删除的会员卡主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCsaMemberCardByIds(Long[] ids)
|
||||
{
|
||||
return csaMemberCardMapper.deleteCsaMemberCardByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除会员卡信息
|
||||
*
|
||||
* @param id 会员卡主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCsaMemberCardById(Long id)
|
||||
{
|
||||
return csaMemberCardMapper.deleteCsaMemberCardById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.GardenLogAttachMapper;
|
||||
import com.jlt.csa.domain.GardenLogAttach;
|
||||
import com.jlt.csa.service.IGardenLogAttachService;
|
||||
|
||||
/**
|
||||
* 菜地日志附件Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@Service
|
||||
public class GardenLogAttachServiceImpl implements IGardenLogAttachService
|
||||
{
|
||||
@Autowired
|
||||
private GardenLogAttachMapper gardenLogAttachMapper;
|
||||
|
||||
/**
|
||||
* 查询菜地日志附件
|
||||
*
|
||||
* @param id 菜地日志附件主键
|
||||
* @return 菜地日志附件
|
||||
*/
|
||||
@Override
|
||||
public GardenLogAttach selectGardenLogAttachById(Long id)
|
||||
{
|
||||
return gardenLogAttachMapper.selectGardenLogAttachById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询菜地日志附件列表
|
||||
*
|
||||
* @param gardenLogAttach 菜地日志附件
|
||||
* @return 菜地日志附件
|
||||
*/
|
||||
@Override
|
||||
public List<GardenLogAttach> selectGardenLogAttachList(GardenLogAttach gardenLogAttach)
|
||||
{
|
||||
return gardenLogAttachMapper.selectGardenLogAttachList(gardenLogAttach);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增菜地日志附件
|
||||
*
|
||||
* @param gardenLogAttach 菜地日志附件
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertGardenLogAttach(GardenLogAttach gardenLogAttach)
|
||||
{
|
||||
gardenLogAttach.setCreateTime(DateUtils.getNowDate());
|
||||
return gardenLogAttachMapper.insertGardenLogAttach(gardenLogAttach);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改菜地日志附件
|
||||
*
|
||||
* @param gardenLogAttach 菜地日志附件
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateGardenLogAttach(GardenLogAttach gardenLogAttach)
|
||||
{
|
||||
gardenLogAttach.setUpdateTime(DateUtils.getNowDate());
|
||||
return gardenLogAttachMapper.updateGardenLogAttach(gardenLogAttach);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除菜地日志附件
|
||||
*
|
||||
* @param ids 需要删除的菜地日志附件主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGardenLogAttachByIds(Long[] ids)
|
||||
{
|
||||
return gardenLogAttachMapper.deleteGardenLogAttachByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除菜地日志附件信息
|
||||
*
|
||||
* @param id 菜地日志附件主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGardenLogAttachById(Long id)
|
||||
{
|
||||
return gardenLogAttachMapper.deleteGardenLogAttachById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.GardenLogMapper;
|
||||
import com.jlt.csa.domain.GardenLog;
|
||||
import com.jlt.csa.service.IGardenLogService;
|
||||
|
||||
/**
|
||||
* 菜地日志Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@Service
|
||||
public class GardenLogServiceImpl implements IGardenLogService
|
||||
{
|
||||
@Autowired
|
||||
private GardenLogMapper gardenLogMapper;
|
||||
|
||||
/**
|
||||
* 查询菜地日志
|
||||
*
|
||||
* @param id 菜地日志主键
|
||||
* @return 菜地日志
|
||||
*/
|
||||
@Override
|
||||
public GardenLog selectGardenLogById(Long id)
|
||||
{
|
||||
return gardenLogMapper.selectGardenLogById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询菜地日志列表
|
||||
*
|
||||
* @param gardenLog 菜地日志
|
||||
* @return 菜地日志
|
||||
*/
|
||||
@Override
|
||||
public List<GardenLog> selectGardenLogList(GardenLog gardenLog)
|
||||
{
|
||||
return gardenLogMapper.selectGardenLogList(gardenLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增菜地日志
|
||||
*
|
||||
* @param gardenLog 菜地日志
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertGardenLog(GardenLog gardenLog)
|
||||
{
|
||||
gardenLog.setCreateTime(DateUtils.getNowDate());
|
||||
return gardenLogMapper.insertGardenLog(gardenLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改菜地日志
|
||||
*
|
||||
* @param gardenLog 菜地日志
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateGardenLog(GardenLog gardenLog)
|
||||
{
|
||||
gardenLog.setUpdateTime(DateUtils.getNowDate());
|
||||
return gardenLogMapper.updateGardenLog(gardenLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除菜地日志
|
||||
*
|
||||
* @param ids 需要删除的菜地日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGardenLogByIds(Long[] ids)
|
||||
{
|
||||
return gardenLogMapper.deleteGardenLogByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除菜地日志信息
|
||||
*
|
||||
* @param id 菜地日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGardenLogById(Long id)
|
||||
{
|
||||
return gardenLogMapper.deleteGardenLogById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.GardenStrainMapper;
|
||||
import com.jlt.csa.domain.GardenStrain;
|
||||
import com.jlt.csa.service.IGardenStrainService;
|
||||
|
||||
/**
|
||||
* 菜地品种Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@Service
|
||||
public class GardenStrainServiceImpl implements IGardenStrainService
|
||||
{
|
||||
@Autowired
|
||||
private GardenStrainMapper gardenStrainMapper;
|
||||
|
||||
/**
|
||||
* 查询菜地品种
|
||||
*
|
||||
* @param id 菜地品种主键
|
||||
* @return 菜地品种
|
||||
*/
|
||||
@Override
|
||||
public GardenStrain selectGardenStrainById(Long id)
|
||||
{
|
||||
return gardenStrainMapper.selectGardenStrainById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询菜地品种列表
|
||||
*
|
||||
* @param gardenStrain 菜地品种
|
||||
* @return 菜地品种
|
||||
*/
|
||||
@Override
|
||||
public List<GardenStrain> selectGardenStrainList(GardenStrain gardenStrain)
|
||||
{
|
||||
return gardenStrainMapper.selectGardenStrainList(gardenStrain);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增菜地品种
|
||||
*
|
||||
* @param gardenStrain 菜地品种
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertGardenStrain(GardenStrain gardenStrain)
|
||||
{
|
||||
gardenStrain.setCreateTime(DateUtils.getNowDate());
|
||||
return gardenStrainMapper.insertGardenStrain(gardenStrain);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改菜地品种
|
||||
*
|
||||
* @param gardenStrain 菜地品种
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateGardenStrain(GardenStrain gardenStrain)
|
||||
{
|
||||
gardenStrain.setUpdateTime(DateUtils.getNowDate());
|
||||
return gardenStrainMapper.updateGardenStrain(gardenStrain);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除菜地品种
|
||||
*
|
||||
* @param ids 需要删除的菜地品种主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGardenStrainByIds(Long[] ids)
|
||||
{
|
||||
return gardenStrainMapper.deleteGardenStrainByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除菜地品种信息
|
||||
*
|
||||
* @param id 菜地品种主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteGardenStrainById(Long id)
|
||||
{
|
||||
return gardenStrainMapper.deleteGardenStrainById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.PickDetailMapper;
|
||||
import com.jlt.csa.domain.PickDetail;
|
||||
import com.jlt.csa.service.IPickDetailService;
|
||||
|
||||
/**
|
||||
* 采摘任务明细Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@Service
|
||||
public class PickDetailServiceImpl implements IPickDetailService
|
||||
{
|
||||
@Autowired
|
||||
private PickDetailMapper pickDetailMapper;
|
||||
|
||||
/**
|
||||
* 查询采摘任务明细
|
||||
*
|
||||
* @param id 采摘任务明细主键
|
||||
* @return 采摘任务明细
|
||||
*/
|
||||
@Override
|
||||
public PickDetail selectPickDetailById(Long id)
|
||||
{
|
||||
return pickDetailMapper.selectPickDetailById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询采摘任务明细列表
|
||||
*
|
||||
* @param pickDetail 采摘任务明细
|
||||
* @return 采摘任务明细
|
||||
*/
|
||||
@Override
|
||||
public List<PickDetail> selectPickDetailList(PickDetail pickDetail)
|
||||
{
|
||||
return pickDetailMapper.selectPickDetailList(pickDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增采摘任务明细
|
||||
*
|
||||
* @param pickDetail 采摘任务明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPickDetail(PickDetail pickDetail)
|
||||
{
|
||||
pickDetail.setCreateTime(DateUtils.getNowDate());
|
||||
return pickDetailMapper.insertPickDetail(pickDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改采摘任务明细
|
||||
*
|
||||
* @param pickDetail 采摘任务明细
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePickDetail(PickDetail pickDetail)
|
||||
{
|
||||
pickDetail.setUpdateTime(DateUtils.getNowDate());
|
||||
return pickDetailMapper.updatePickDetail(pickDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除采摘任务明细
|
||||
*
|
||||
* @param ids 需要删除的采摘任务明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePickDetailByIds(Long[] ids)
|
||||
{
|
||||
return pickDetailMapper.deletePickDetailByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除采摘任务明细信息
|
||||
*
|
||||
* @param id 采摘任务明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePickDetailById(Long id)
|
||||
{
|
||||
return pickDetailMapper.deletePickDetailById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.jlt.csa.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jlt.csa.mapper.TendTaskMapper;
|
||||
import com.jlt.csa.domain.TendTask;
|
||||
import com.jlt.csa.service.ITendTaskService;
|
||||
|
||||
/**
|
||||
* 打理任务Service业务层处理
|
||||
*
|
||||
* @author JiaLeitao
|
||||
* @date 2022-03-27
|
||||
*/
|
||||
@Service
|
||||
public class TendTaskServiceImpl implements ITendTaskService
|
||||
{
|
||||
@Autowired
|
||||
private TendTaskMapper tendTaskMapper;
|
||||
|
||||
/**
|
||||
* 查询打理任务
|
||||
*
|
||||
* @param id 打理任务主键
|
||||
* @return 打理任务
|
||||
*/
|
||||
@Override
|
||||
public TendTask selectTendTaskById(Long id)
|
||||
{
|
||||
return tendTaskMapper.selectTendTaskById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询打理任务列表
|
||||
*
|
||||
* @param tendTask 打理任务
|
||||
* @return 打理任务
|
||||
*/
|
||||
@Override
|
||||
public List<TendTask> selectTendTaskList(TendTask tendTask)
|
||||
{
|
||||
return tendTaskMapper.selectTendTaskList(tendTask);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增打理任务
|
||||
*
|
||||
* @param tendTask 打理任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertTendTask(TendTask tendTask)
|
||||
{
|
||||
tendTask.setCreateTime(DateUtils.getNowDate());
|
||||
return tendTaskMapper.insertTendTask(tendTask);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改打理任务
|
||||
*
|
||||
* @param tendTask 打理任务
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateTendTask(TendTask tendTask)
|
||||
{
|
||||
tendTask.setUpdateTime(DateUtils.getNowDate());
|
||||
return tendTaskMapper.updateTendTask(tendTask);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除打理任务
|
||||
*
|
||||
* @param ids 需要删除的打理任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTendTaskByIds(Long[] ids)
|
||||
{
|
||||
return tendTaskMapper.deleteTendTaskByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除打理任务信息
|
||||
*
|
||||
* @param id 打理任务主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteTendTaskById(Long id)
|
||||
{
|
||||
return tendTaskMapper.deleteTendTaskById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,113 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.ArchedRecordMapper">
|
||||
|
||||
<resultMap type="ArchedRecord" id="ArchedRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="memberId" column="member_id" />
|
||||
<result property="gardenId" column="garden_id" />
|
||||
<result property="yearNo" column="year_no" />
|
||||
<result property="consumYear" column="consum_year" />
|
||||
<result property="remainingYears" column="remaining_years" />
|
||||
<result property="doerId" column="doer_id" />
|
||||
<result property="doTime" column="do_time" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectArchedRecordVo">
|
||||
select id, member_id, garden_id, year_no, consum_year, remaining_years, doer_id, do_time, status, del_flag, create_by, create_time, update_by, update_time, remark from csa_arched_record
|
||||
</sql>
|
||||
|
||||
<select id="selectArchedRecordList" parameterType="ArchedRecord" resultMap="ArchedRecordResult">
|
||||
<include refid="selectArchedRecordVo"/>
|
||||
<where>
|
||||
<if test="memberId != null "> and member_id = #{memberId}</if>
|
||||
<if test="gardenId != null "> and garden_id = #{gardenId}</if>
|
||||
<if test="yearNo != null "> and year_no = #{yearNo}</if>
|
||||
<if test="doerId != null "> and doer_id = #{doerId}</if>
|
||||
<if test="doTime != null "> and do_time = #{doTime}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectArchedRecordById" parameterType="Long" resultMap="ArchedRecordResult">
|
||||
<include refid="selectArchedRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertArchedRecord" parameterType="ArchedRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_arched_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">member_id,</if>
|
||||
<if test="gardenId != null">garden_id,</if>
|
||||
<if test="yearNo != null">year_no,</if>
|
||||
<if test="consumYear != null">consum_year,</if>
|
||||
<if test="remainingYears != null">remaining_years,</if>
|
||||
<if test="doerId != null">doer_id,</if>
|
||||
<if test="doTime != null">do_time,</if>
|
||||
<if test="status != null and status != ''">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">#{memberId},</if>
|
||||
<if test="gardenId != null">#{gardenId},</if>
|
||||
<if test="yearNo != null">#{yearNo},</if>
|
||||
<if test="consumYear != null">#{consumYear},</if>
|
||||
<if test="remainingYears != null">#{remainingYears},</if>
|
||||
<if test="doerId != null">#{doerId},</if>
|
||||
<if test="doTime != null">#{doTime},</if>
|
||||
<if test="status != null and status != ''">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateArchedRecord" parameterType="ArchedRecord">
|
||||
update csa_arched_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="memberId != null">member_id = #{memberId},</if>
|
||||
<if test="gardenId != null">garden_id = #{gardenId},</if>
|
||||
<if test="yearNo != null">year_no = #{yearNo},</if>
|
||||
<if test="consumYear != null">consum_year = #{consumYear},</if>
|
||||
<if test="remainingYears != null">remaining_years = #{remainingYears},</if>
|
||||
<if test="doerId != null">doer_id = #{doerId},</if>
|
||||
<if test="doTime != null">do_time = #{doTime},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteArchedRecordById" parameterType="Long">
|
||||
delete from csa_arched_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteArchedRecordByIds" parameterType="String">
|
||||
delete from csa_arched_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
110
private-farm/src/main/resources/mapper/csa/CoinRecordMapper.xml
Normal file
110
private-farm/src/main/resources/mapper/csa/CoinRecordMapper.xml
Normal file
@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.CoinRecordMapper">
|
||||
|
||||
<resultMap type="CoinRecord" id="CoinRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="memberId" column="member_id" />
|
||||
<result property="opId" column="op_id" />
|
||||
<result property="opType" column="op_type" />
|
||||
<result property="coins" column="coins" />
|
||||
<result property="coinBalance" column="coin_balance" />
|
||||
<result property="description" column="description" />
|
||||
<result property="opTime" column="op_time" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCoinRecordVo">
|
||||
select id, member_id, op_id, op_type, coins, coin_balance, description, op_time, status, del_flag, create_by, create_time, update_by, update_time, remark from csa_coin_record
|
||||
</sql>
|
||||
|
||||
<select id="selectCoinRecordList" parameterType="CoinRecord" resultMap="CoinRecordResult">
|
||||
<include refid="selectCoinRecordVo"/>
|
||||
<where>
|
||||
<if test="memberId != null "> and member_id = #{memberId}</if>
|
||||
<if test="opType != null and opType != ''"> and op_type = #{opType}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCoinRecordById" parameterType="Long" resultMap="CoinRecordResult">
|
||||
<include refid="selectCoinRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCoinRecord" parameterType="CoinRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_coin_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">member_id,</if>
|
||||
<if test="opId != null">op_id,</if>
|
||||
<if test="opType != null and opType != ''">op_type,</if>
|
||||
<if test="coins != null">coins,</if>
|
||||
<if test="coinBalance != null">coin_balance,</if>
|
||||
<if test="description != null">description,</if>
|
||||
<if test="opTime != null">op_time,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">#{memberId},</if>
|
||||
<if test="opId != null">#{opId},</if>
|
||||
<if test="opType != null and opType != ''">#{opType},</if>
|
||||
<if test="coins != null">#{coins},</if>
|
||||
<if test="coinBalance != null">#{coinBalance},</if>
|
||||
<if test="description != null">#{description},</if>
|
||||
<if test="opTime != null">#{opTime},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCoinRecord" parameterType="CoinRecord">
|
||||
update csa_coin_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="memberId != null">member_id = #{memberId},</if>
|
||||
<if test="opId != null">op_id = #{opId},</if>
|
||||
<if test="opType != null and opType != ''">op_type = #{opType},</if>
|
||||
<if test="coins != null">coins = #{coins},</if>
|
||||
<if test="coinBalance != null">coin_balance = #{coinBalance},</if>
|
||||
<if test="description != null">description = #{description},</if>
|
||||
<if test="opTime != null">op_time = #{opTime},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCoinRecordById" parameterType="Long">
|
||||
delete from csa_coin_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCoinRecordByIds" parameterType="String">
|
||||
delete from csa_coin_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.CommunicateRecordMapper">
|
||||
|
||||
<resultMap type="CommunicateRecord" id="CommunicateRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="memberId" column="member_id" />
|
||||
<result property="gardenId" column="garden_id" />
|
||||
<result property="recorder" column="recorder" />
|
||||
<result property="taskId" column="task_id" />
|
||||
<result property="commType" column="comm_type" />
|
||||
<result property="content" column="content" />
|
||||
<result property="result" column="result" />
|
||||
<result property="isCompleted" column="is_completed" />
|
||||
<result property="commTime" column="comm_time" />
|
||||
<result property="doTime" column="do_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCommunicateRecordVo">
|
||||
select id, member_id, garden_id, recorder, task_id, comm_type, content, result, is_completed, comm_time, do_time, del_flag, create_by, create_time, update_by, update_time, remark from csa_communicate_record
|
||||
</sql>
|
||||
|
||||
<select id="selectCommunicateRecordList" parameterType="CommunicateRecord" resultMap="CommunicateRecordResult">
|
||||
<include refid="selectCommunicateRecordVo"/>
|
||||
<where>
|
||||
<if test="memberId != null "> and member_id = #{memberId}</if>
|
||||
<if test="gardenId != null "> and garden_id = #{gardenId}</if>
|
||||
<if test="recorder != null "> and recorder = #{recorder}</if>
|
||||
<if test="taskId != null "> and task_id = #{taskId}</if>
|
||||
<if test="commType != null and commType != ''"> and comm_type = #{commType}</if>
|
||||
<if test="isCompleted != null and isCompleted != ''"> and is_completed = #{isCompleted}</if>
|
||||
<if test="commTime != null "> and comm_time = #{commTime}</if>
|
||||
<if test="doTime != null "> and do_time = #{doTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCommunicateRecordById" parameterType="Long" resultMap="CommunicateRecordResult">
|
||||
<include refid="selectCommunicateRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCommunicateRecord" parameterType="CommunicateRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_communicate_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">member_id,</if>
|
||||
<if test="gardenId != null">garden_id,</if>
|
||||
<if test="recorder != null">recorder,</if>
|
||||
<if test="taskId != null">task_id,</if>
|
||||
<if test="commType != null and commType != ''">comm_type,</if>
|
||||
<if test="content != null and content != ''">content,</if>
|
||||
<if test="result != null">result,</if>
|
||||
<if test="isCompleted != null">is_completed,</if>
|
||||
<if test="commTime != null">comm_time,</if>
|
||||
<if test="doTime != null">do_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">#{memberId},</if>
|
||||
<if test="gardenId != null">#{gardenId},</if>
|
||||
<if test="recorder != null">#{recorder},</if>
|
||||
<if test="taskId != null">#{taskId},</if>
|
||||
<if test="commType != null and commType != ''">#{commType},</if>
|
||||
<if test="content != null and content != ''">#{content},</if>
|
||||
<if test="result != null">#{result},</if>
|
||||
<if test="isCompleted != null">#{isCompleted},</if>
|
||||
<if test="commTime != null">#{commTime},</if>
|
||||
<if test="doTime != null">#{doTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCommunicateRecord" parameterType="CommunicateRecord">
|
||||
update csa_communicate_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="memberId != null">member_id = #{memberId},</if>
|
||||
<if test="gardenId != null">garden_id = #{gardenId},</if>
|
||||
<if test="recorder != null">recorder = #{recorder},</if>
|
||||
<if test="taskId != null">task_id = #{taskId},</if>
|
||||
<if test="commType != null and commType != ''">comm_type = #{commType},</if>
|
||||
<if test="content != null and content != ''">content = #{content},</if>
|
||||
<if test="result != null">result = #{result},</if>
|
||||
<if test="isCompleted != null">is_completed = #{isCompleted},</if>
|
||||
<if test="commTime != null">comm_time = #{commTime},</if>
|
||||
<if test="doTime != null">do_time = #{doTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCommunicateRecordById" parameterType="Long">
|
||||
delete from csa_communicate_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCommunicateRecordByIds" parameterType="String">
|
||||
delete from csa_communicate_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.CropFilesMapper">
|
||||
|
||||
<resultMap type="CropFiles" id="CropFilesResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="plantGuide" column="plant_guide" />
|
||||
<result property="picture" column="picture" />
|
||||
<result property="description" column="description" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCropFilesVo">
|
||||
select id, name, plant_guide, picture, description, status, del_flag, create_by, create_time, update_by, update_time, remark from csa_crop_files
|
||||
</sql>
|
||||
|
||||
<select id="selectCropFilesList" parameterType="CropFiles" resultMap="CropFilesResult">
|
||||
<include refid="selectCropFilesVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCropFilesById" parameterType="Long" resultMap="CropFilesResult">
|
||||
<include refid="selectCropFilesVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCropFiles" parameterType="CropFiles" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_crop_files
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="plantGuide != null">plant_guide,</if>
|
||||
<if test="picture != null">picture,</if>
|
||||
<if test="description != null">description,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="plantGuide != null">#{plantGuide},</if>
|
||||
<if test="picture != null">#{picture},</if>
|
||||
<if test="description != null">#{description},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCropFiles" parameterType="CropFiles">
|
||||
update csa_crop_files
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="plantGuide != null">plant_guide = #{plantGuide},</if>
|
||||
<if test="picture != null">picture = #{picture},</if>
|
||||
<if test="description != null">description = #{description},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCropFilesById" parameterType="Long">
|
||||
delete from csa_crop_files where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCropFilesByIds" parameterType="String">
|
||||
delete from csa_crop_files where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,98 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.CropPhaseMapper">
|
||||
|
||||
<resultMap type="CropPhase" id="CropPhaseResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cropId" column="crop_id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="production" column="production" />
|
||||
<result property="picture" column="picture" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCropPhaseVo">
|
||||
select id, crop_id, name, production, picture, status, del_flag, create_by, create_time, update_by, update_time, remark from csa_crop_phase
|
||||
</sql>
|
||||
|
||||
<select id="selectCropPhaseList" parameterType="CropPhase" resultMap="CropPhaseResult">
|
||||
<include refid="selectCropPhaseVo"/>
|
||||
<where>
|
||||
<if test="cropId != null "> and crop_id = #{cropId}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCropPhaseById" parameterType="Long" resultMap="CropPhaseResult">
|
||||
<include refid="selectCropPhaseVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCropPhase" parameterType="CropPhase" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_crop_phase
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cropId != null">crop_id,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="production != null">production,</if>
|
||||
<if test="picture != null">picture,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cropId != null">#{cropId},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="production != null">#{production},</if>
|
||||
<if test="picture != null">#{picture},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCropPhase" parameterType="CropPhase">
|
||||
update csa_crop_phase
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cropId != null">crop_id = #{cropId},</if>
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="production != null">production = #{production},</if>
|
||||
<if test="picture != null">picture = #{picture},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCropPhaseById" parameterType="Long">
|
||||
delete from csa_crop_phase where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCropPhaseByIds" parameterType="String">
|
||||
delete from csa_crop_phase where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
119
private-farm/src/main/resources/mapper/csa/CsaFarmerMapper.xml
Normal file
119
private-farm/src/main/resources/mapper/csa/CsaFarmerMapper.xml
Normal file
@ -0,0 +1,119 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.CsaFarmerMapper">
|
||||
|
||||
<resultMap type="CsaFarmer" id="CsaFarmerResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="gender" column="gender" />
|
||||
<result property="coins" column="coins" />
|
||||
<result property="balance" column="balance" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="archedYears" column="arched_years" />
|
||||
<result property="joinDate" column="join_date" />
|
||||
<result property="dueDate" column="due_date" />
|
||||
<result property="isExpire" column="is_expire" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCsaFarmerVo">
|
||||
select id, name, gender, coins, balance, weight, arched_years, join_date, due_date, is_expire, status, del_flag, create_by, create_time, update_by, update_time, remark from csa_farmer
|
||||
</sql>
|
||||
|
||||
<select id="selectCsaFarmerList" parameterType="CsaFarmer" resultMap="CsaFarmerResult">
|
||||
<include refid="selectCsaFarmerVo"/>
|
||||
<where>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="dueDate != null "> and due_date = #{dueDate}</if>
|
||||
<if test="isExpire != null and isExpire != ''"> and is_expire = #{isExpire}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCsaFarmerById" parameterType="Long" resultMap="CsaFarmerResult">
|
||||
<include refid="selectCsaFarmerVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCsaFarmer" parameterType="CsaFarmer" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_farmer
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="gender != null">gender,</if>
|
||||
<if test="coins != null">coins,</if>
|
||||
<if test="balance != null">balance,</if>
|
||||
<if test="weight != null">weight,</if>
|
||||
<if test="archedYears != null">arched_years,</if>
|
||||
<if test="joinDate != null">join_date,</if>
|
||||
<if test="dueDate != null">due_date,</if>
|
||||
<if test="isExpire != null">is_expire,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="gender != null">#{gender},</if>
|
||||
<if test="coins != null">#{coins},</if>
|
||||
<if test="balance != null">#{balance},</if>
|
||||
<if test="weight != null">#{weight},</if>
|
||||
<if test="archedYears != null">#{archedYears},</if>
|
||||
<if test="joinDate != null">#{joinDate},</if>
|
||||
<if test="dueDate != null">#{dueDate},</if>
|
||||
<if test="isExpire != null">#{isExpire},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCsaFarmer" parameterType="CsaFarmer">
|
||||
update csa_farmer
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="gender != null">gender = #{gender},</if>
|
||||
<if test="coins != null">coins = #{coins},</if>
|
||||
<if test="balance != null">balance = #{balance},</if>
|
||||
<if test="weight != null">weight = #{weight},</if>
|
||||
<if test="archedYears != null">arched_years = #{archedYears},</if>
|
||||
<if test="joinDate != null">join_date = #{joinDate},</if>
|
||||
<if test="dueDate != null">due_date = #{dueDate},</if>
|
||||
<if test="isExpire != null">is_expire = #{isExpire},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCsaFarmerById" parameterType="Long">
|
||||
delete from csa_farmer where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCsaFarmerByIds" parameterType="String">
|
||||
delete from csa_farmer where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.CsaMemberCardMapper">
|
||||
|
||||
<resultMap type="CsaMemberCard" id="CsaMemberCardResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cardno" column="cardno" />
|
||||
<result property="passwd" column="passwd" />
|
||||
<result property="activationValidity" column="activation_validity" />
|
||||
<result property="usabilityStatus" column="usability_status" />
|
||||
<result property="activeStatus" column="active_status" />
|
||||
<result property="m2" column="m2" />
|
||||
<result property="landYears" column="land_years" />
|
||||
<result property="archedYears" column="arched_years" />
|
||||
<result property="coins" column="coins" />
|
||||
<result property="balance" column="balance" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="setMeal" column="set_meal" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCsaMemberCardVo">
|
||||
select id, cardno, passwd, activation_validity, usability_status, active_status, m2, land_years, arched_years, coins, balance, weight, set_meal, del_flag, create_by, create_time, update_by, update_time, remark from csa_member_card
|
||||
</sql>
|
||||
|
||||
<select id="selectCsaMemberCardList" parameterType="CsaMemberCard" resultMap="CsaMemberCardResult">
|
||||
<include refid="selectCsaMemberCardVo"/>
|
||||
<where>
|
||||
<if test="cardno != null and cardno != ''"> and cardno = #{cardno}</if>
|
||||
<if test="usabilityStatus != null and usabilityStatus != ''"> and usability_status = #{usabilityStatus}</if>
|
||||
<if test="activeStatus != null and activeStatus != ''"> and active_status = #{activeStatus}</if>
|
||||
<if test="landYears != null "> and land_years = #{landYears}</if>
|
||||
<if test="archedYears != null "> and arched_years = #{archedYears}</if>
|
||||
<if test="setMeal != null and setMeal != ''"> and set_meal = #{setMeal}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCsaMemberCardById" parameterType="Long" resultMap="CsaMemberCardResult">
|
||||
<include refid="selectCsaMemberCardVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCsaMemberCard" parameterType="CsaMemberCard" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_member_card
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cardno != null and cardno != ''">cardno,</if>
|
||||
<if test="passwd != null and passwd != ''">passwd,</if>
|
||||
<if test="activationValidity != null">activation_validity,</if>
|
||||
<if test="usabilityStatus != null">usability_status,</if>
|
||||
<if test="activeStatus != null">active_status,</if>
|
||||
<if test="m2 != null">m2,</if>
|
||||
<if test="landYears != null">land_years,</if>
|
||||
<if test="archedYears != null">arched_years,</if>
|
||||
<if test="coins != null">coins,</if>
|
||||
<if test="balance != null">balance,</if>
|
||||
<if test="weight != null">weight,</if>
|
||||
<if test="setMeal != null">set_meal,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cardno != null and cardno != ''">#{cardno},</if>
|
||||
<if test="passwd != null and passwd != ''">#{passwd},</if>
|
||||
<if test="activationValidity != null">#{activationValidity},</if>
|
||||
<if test="usabilityStatus != null">#{usabilityStatus},</if>
|
||||
<if test="activeStatus != null">#{activeStatus},</if>
|
||||
<if test="m2 != null">#{m2},</if>
|
||||
<if test="landYears != null">#{landYears},</if>
|
||||
<if test="archedYears != null">#{archedYears},</if>
|
||||
<if test="coins != null">#{coins},</if>
|
||||
<if test="balance != null">#{balance},</if>
|
||||
<if test="weight != null">#{weight},</if>
|
||||
<if test="setMeal != null">#{setMeal},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCsaMemberCard" parameterType="CsaMemberCard">
|
||||
update csa_member_card
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cardno != null and cardno != ''">cardno = #{cardno},</if>
|
||||
<if test="passwd != null and passwd != ''">passwd = #{passwd},</if>
|
||||
<if test="activationValidity != null">activation_validity = #{activationValidity},</if>
|
||||
<if test="usabilityStatus != null">usability_status = #{usabilityStatus},</if>
|
||||
<if test="activeStatus != null">active_status = #{activeStatus},</if>
|
||||
<if test="m2 != null">m2 = #{m2},</if>
|
||||
<if test="landYears != null">land_years = #{landYears},</if>
|
||||
<if test="archedYears != null">arched_years = #{archedYears},</if>
|
||||
<if test="coins != null">coins = #{coins},</if>
|
||||
<if test="balance != null">balance = #{balance},</if>
|
||||
<if test="weight != null">weight = #{weight},</if>
|
||||
<if test="setMeal != null">set_meal = #{setMeal},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCsaMemberCardById" parameterType="Long">
|
||||
delete from csa_member_card where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCsaMemberCardByIds" parameterType="String">
|
||||
delete from csa_member_card where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.GardenLogAttachMapper">
|
||||
|
||||
<resultMap type="GardenLogAttach" id="GardenLogAttachResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="logId" column="log_id" />
|
||||
<result property="attachType" column="attach_type" />
|
||||
<result property="filename" column="filename" />
|
||||
<result property="url" column="url" />
|
||||
<result property="width" column="width" />
|
||||
<result property="height" column="height" />
|
||||
<result property="bytes" column="bytes" />
|
||||
<result property="publishTime" column="publish_time" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGardenLogAttachVo">
|
||||
select id, log_id, attach_type, filename, url, width, height, bytes, publish_time, del_flag, create_by, create_time, update_by, update_time, remark from csa_garden_log_attach
|
||||
</sql>
|
||||
|
||||
<select id="selectGardenLogAttachList" parameterType="GardenLogAttach" resultMap="GardenLogAttachResult">
|
||||
<include refid="selectGardenLogAttachVo"/>
|
||||
<where>
|
||||
<if test="logId != null "> and log_id = #{logId}</if>
|
||||
<if test="attachType != null and attachType != ''"> and attach_type = #{attachType}</if>
|
||||
<if test="publishTime != null "> and publish_time = #{publishTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGardenLogAttachById" parameterType="Long" resultMap="GardenLogAttachResult">
|
||||
<include refid="selectGardenLogAttachVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertGardenLogAttach" parameterType="GardenLogAttach" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_garden_log_attach
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="logId != null">log_id,</if>
|
||||
<if test="attachType != null and attachType != ''">attach_type,</if>
|
||||
<if test="filename != null">filename,</if>
|
||||
<if test="url != null">url,</if>
|
||||
<if test="width != null">width,</if>
|
||||
<if test="height != null">height,</if>
|
||||
<if test="bytes != null">bytes,</if>
|
||||
<if test="publishTime != null">publish_time,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="logId != null">#{logId},</if>
|
||||
<if test="attachType != null and attachType != ''">#{attachType},</if>
|
||||
<if test="filename != null">#{filename},</if>
|
||||
<if test="url != null">#{url},</if>
|
||||
<if test="width != null">#{width},</if>
|
||||
<if test="height != null">#{height},</if>
|
||||
<if test="bytes != null">#{bytes},</if>
|
||||
<if test="publishTime != null">#{publishTime},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGardenLogAttach" parameterType="GardenLogAttach">
|
||||
update csa_garden_log_attach
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="logId != null">log_id = #{logId},</if>
|
||||
<if test="attachType != null and attachType != ''">attach_type = #{attachType},</if>
|
||||
<if test="filename != null">filename = #{filename},</if>
|
||||
<if test="url != null">url = #{url},</if>
|
||||
<if test="width != null">width = #{width},</if>
|
||||
<if test="height != null">height = #{height},</if>
|
||||
<if test="bytes != null">bytes = #{bytes},</if>
|
||||
<if test="publishTime != null">publish_time = #{publishTime},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGardenLogAttachById" parameterType="Long">
|
||||
delete from csa_garden_log_attach where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGardenLogAttachByIds" parameterType="String">
|
||||
delete from csa_garden_log_attach where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
114
private-farm/src/main/resources/mapper/csa/GardenLogMapper.xml
Normal file
114
private-farm/src/main/resources/mapper/csa/GardenLogMapper.xml
Normal file
@ -0,0 +1,114 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.GardenLogMapper">
|
||||
|
||||
<resultMap type="GardenLog" id="GardenLogResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="memberId" column="member_id" />
|
||||
<result property="gardenId" column="garden_id" />
|
||||
<result property="taskId" column="task_id" />
|
||||
<result property="logType" column="log_type" />
|
||||
<result property="content" column="content" />
|
||||
<result property="publishTime" column="publish_time" />
|
||||
<result property="publisher" column="publisher" />
|
||||
<result property="publishStatus" column="publish_status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGardenLogVo">
|
||||
select id, member_id, garden_id, task_id, log_type, content, publish_time, publisher, publish_status, del_flag, create_by, create_time, update_by, update_time, remark from csa_garden_log
|
||||
</sql>
|
||||
|
||||
<select id="selectGardenLogList" parameterType="GardenLog" resultMap="GardenLogResult">
|
||||
<include refid="selectGardenLogVo"/>
|
||||
<where>
|
||||
<if test="memberId != null "> and member_id = #{memberId}</if>
|
||||
<if test="gardenId != null "> and garden_id = #{gardenId}</if>
|
||||
<if test="taskId != null "> and task_id = #{taskId}</if>
|
||||
<if test="logType != null and logType != ''"> and log_type = #{logType}</if>
|
||||
<if test="publishTime != null "> and publish_time = #{publishTime}</if>
|
||||
<if test="publisher != null "> and publisher = #{publisher}</if>
|
||||
<if test="publishStatus != null and publishStatus != ''"> and publish_status = #{publishStatus}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGardenLogById" parameterType="Long" resultMap="GardenLogResult">
|
||||
<include refid="selectGardenLogVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertGardenLog" parameterType="GardenLog" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_garden_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">member_id,</if>
|
||||
<if test="gardenId != null">garden_id,</if>
|
||||
<if test="taskId != null">task_id,</if>
|
||||
<if test="logType != null and logType != ''">log_type,</if>
|
||||
<if test="content != null and content != ''">content,</if>
|
||||
<if test="publishTime != null">publish_time,</if>
|
||||
<if test="publisher != null">publisher,</if>
|
||||
<if test="publishStatus != null and publishStatus != ''">publish_status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">#{memberId},</if>
|
||||
<if test="gardenId != null">#{gardenId},</if>
|
||||
<if test="taskId != null">#{taskId},</if>
|
||||
<if test="logType != null and logType != ''">#{logType},</if>
|
||||
<if test="content != null and content != ''">#{content},</if>
|
||||
<if test="publishTime != null">#{publishTime},</if>
|
||||
<if test="publisher != null">#{publisher},</if>
|
||||
<if test="publishStatus != null and publishStatus != ''">#{publishStatus},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGardenLog" parameterType="GardenLog">
|
||||
update csa_garden_log
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="memberId != null">member_id = #{memberId},</if>
|
||||
<if test="gardenId != null">garden_id = #{gardenId},</if>
|
||||
<if test="taskId != null">task_id = #{taskId},</if>
|
||||
<if test="logType != null and logType != ''">log_type = #{logType},</if>
|
||||
<if test="content != null and content != ''">content = #{content},</if>
|
||||
<if test="publishTime != null">publish_time = #{publishTime},</if>
|
||||
<if test="publisher != null">publisher = #{publisher},</if>
|
||||
<if test="publishStatus != null and publishStatus != ''">publish_status = #{publishStatus},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGardenLogById" parameterType="Long">
|
||||
delete from csa_garden_log where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGardenLogByIds" parameterType="String">
|
||||
delete from csa_garden_log where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -14,7 +14,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="managerId" column="manager_id" />
|
||||
<result property="workerId" column="worker_id" />
|
||||
<result property="contacterId" column="contacter_id" />
|
||||
<result property="coins" column="coins" />
|
||||
<result property="isFarming" column="is_farming" />
|
||||
<result property="isSelled" column="is_selled" />
|
||||
<result property="isCompleted" column="is_completed" />
|
||||
@ -28,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGardenVo">
|
||||
select id, code, zone_code, name, m2, member_id, manager_id, worker_id, contacter_id, coins, is_farming, is_selled, is_completed, status, del_flag, create_by, create_time, update_by, update_time, remark from csa_garden
|
||||
select id, code, zone_code, name, m2, member_id, manager_id, worker_id, contacter_id, is_farming, is_selled, is_completed, status, del_flag, create_by, create_time, update_by, update_time, remark from csa_garden
|
||||
</sql>
|
||||
|
||||
<select id="selectGardenList" parameterType="Garden" resultMap="GardenResult">
|
||||
@ -64,7 +63,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="managerId != null">manager_id,</if>
|
||||
<if test="workerId != null">worker_id,</if>
|
||||
<if test="contacterId != null">contacter_id,</if>
|
||||
<if test="coins != null">coins,</if>
|
||||
<if test="isFarming != null">is_farming,</if>
|
||||
<if test="isSelled != null">is_selled,</if>
|
||||
<if test="isCompleted != null">is_completed,</if>
|
||||
@ -86,7 +84,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="managerId != null">#{managerId},</if>
|
||||
<if test="workerId != null">#{workerId},</if>
|
||||
<if test="contacterId != null">#{contacterId},</if>
|
||||
<if test="coins != null">#{coins},</if>
|
||||
<if test="isFarming != null">#{isFarming},</if>
|
||||
<if test="isSelled != null">#{isSelled},</if>
|
||||
<if test="isCompleted != null">#{isCompleted},</if>
|
||||
@ -111,7 +108,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="managerId != null">manager_id = #{managerId},</if>
|
||||
<if test="workerId != null">worker_id = #{workerId},</if>
|
||||
<if test="contacterId != null">contacter_id = #{contacterId},</if>
|
||||
<if test="coins != null">coins = #{coins},</if>
|
||||
<if test="isFarming != null">is_farming = #{isFarming},</if>
|
||||
<if test="isSelled != null">is_selled = #{isSelled},</if>
|
||||
<if test="isCompleted != null">is_completed = #{isCompleted},</if>
|
||||
|
@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.GardenStrainMapper">
|
||||
|
||||
<resultMap type="GardenStrain" id="GardenStrainResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="gardenId" column="garden_id" />
|
||||
<result property="taskId" column="task_id" />
|
||||
<result property="cropId" column="crop_id" />
|
||||
<result property="cropPhaseId" column="crop_phase_id" />
|
||||
<result property="m2" column="m2" />
|
||||
<result property="outputWeight" column="output_weight" />
|
||||
<result property="isDefinite" column="is_definite" />
|
||||
<result property="isPlanted" column="is_planted" />
|
||||
<result property="isEnded" column="is_ended" />
|
||||
<result property="definiteDate" column="definite_date" />
|
||||
<result property="plantedDate" column="planted_date" />
|
||||
<result property="endedDate" column="ended_date" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectGardenStrainVo">
|
||||
select id, garden_id, task_id, crop_id, crop_phase_id, m2, output_weight, is_definite, is_planted, is_ended, definite_date, planted_date, ended_date, status, del_flag, create_by, create_time, update_by, update_time, remark from csa_garden_strain
|
||||
</sql>
|
||||
|
||||
<select id="selectGardenStrainList" parameterType="GardenStrain" resultMap="GardenStrainResult">
|
||||
<include refid="selectGardenStrainVo"/>
|
||||
<where>
|
||||
<if test="gardenId != null "> and garden_id = #{gardenId}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectGardenStrainById" parameterType="Long" resultMap="GardenStrainResult">
|
||||
<include refid="selectGardenStrainVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertGardenStrain" parameterType="GardenStrain" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_garden_strain
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="gardenId != null">garden_id,</if>
|
||||
<if test="taskId != null">task_id,</if>
|
||||
<if test="cropId != null">crop_id,</if>
|
||||
<if test="cropPhaseId != null">crop_phase_id,</if>
|
||||
<if test="m2 != null">m2,</if>
|
||||
<if test="outputWeight != null">output_weight,</if>
|
||||
<if test="isDefinite != null and isDefinite != ''">is_definite,</if>
|
||||
<if test="isPlanted != null and isPlanted != ''">is_planted,</if>
|
||||
<if test="isEnded != null and isEnded != ''">is_ended,</if>
|
||||
<if test="definiteDate != null">definite_date,</if>
|
||||
<if test="plantedDate != null">planted_date,</if>
|
||||
<if test="endedDate != null">ended_date,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="gardenId != null">#{gardenId},</if>
|
||||
<if test="taskId != null">#{taskId},</if>
|
||||
<if test="cropId != null">#{cropId},</if>
|
||||
<if test="cropPhaseId != null">#{cropPhaseId},</if>
|
||||
<if test="m2 != null">#{m2},</if>
|
||||
<if test="outputWeight != null">#{outputWeight},</if>
|
||||
<if test="isDefinite != null and isDefinite != ''">#{isDefinite},</if>
|
||||
<if test="isPlanted != null and isPlanted != ''">#{isPlanted},</if>
|
||||
<if test="isEnded != null and isEnded != ''">#{isEnded},</if>
|
||||
<if test="definiteDate != null">#{definiteDate},</if>
|
||||
<if test="plantedDate != null">#{plantedDate},</if>
|
||||
<if test="endedDate != null">#{endedDate},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateGardenStrain" parameterType="GardenStrain">
|
||||
update csa_garden_strain
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="gardenId != null">garden_id = #{gardenId},</if>
|
||||
<if test="taskId != null">task_id = #{taskId},</if>
|
||||
<if test="cropId != null">crop_id = #{cropId},</if>
|
||||
<if test="cropPhaseId != null">crop_phase_id = #{cropPhaseId},</if>
|
||||
<if test="m2 != null">m2 = #{m2},</if>
|
||||
<if test="outputWeight != null">output_weight = #{outputWeight},</if>
|
||||
<if test="isDefinite != null and isDefinite != ''">is_definite = #{isDefinite},</if>
|
||||
<if test="isPlanted != null and isPlanted != ''">is_planted = #{isPlanted},</if>
|
||||
<if test="isEnded != null and isEnded != ''">is_ended = #{isEnded},</if>
|
||||
<if test="definiteDate != null">definite_date = #{definiteDate},</if>
|
||||
<if test="plantedDate != null">planted_date = #{plantedDate},</if>
|
||||
<if test="endedDate != null">ended_date = #{endedDate},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteGardenStrainById" parameterType="Long">
|
||||
delete from csa_garden_strain where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteGardenStrainByIds" parameterType="String">
|
||||
delete from csa_garden_strain where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,97 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.PickDetailMapper">
|
||||
|
||||
<resultMap type="PickDetail" id="PickDetailResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="taskId" column="task_id" />
|
||||
<result property="strainId" column="strain_id" />
|
||||
<result property="planWeight" column="plan_weight" />
|
||||
<result property="resultWeight" column="result_weight" />
|
||||
<result property="isCompleted" column="is_completed" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPickDetailVo">
|
||||
select id, task_id, strain_id, plan_weight, result_weight, is_completed, del_flag, create_by, create_time, update_by, update_time, remark from csa_pick_detail
|
||||
</sql>
|
||||
|
||||
<select id="selectPickDetailList" parameterType="PickDetail" resultMap="PickDetailResult">
|
||||
<include refid="selectPickDetailVo"/>
|
||||
<where>
|
||||
<if test="taskId != null "> and task_id = #{taskId}</if>
|
||||
<if test="isCompleted != null and isCompleted != ''"> and is_completed = #{isCompleted}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPickDetailById" parameterType="Long" resultMap="PickDetailResult">
|
||||
<include refid="selectPickDetailVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPickDetail" parameterType="PickDetail" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_pick_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="taskId != null">task_id,</if>
|
||||
<if test="strainId != null">strain_id,</if>
|
||||
<if test="planWeight != null">plan_weight,</if>
|
||||
<if test="resultWeight != null">result_weight,</if>
|
||||
<if test="isCompleted != null and isCompleted != ''">is_completed,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="taskId != null">#{taskId},</if>
|
||||
<if test="strainId != null">#{strainId},</if>
|
||||
<if test="planWeight != null">#{planWeight},</if>
|
||||
<if test="resultWeight != null">#{resultWeight},</if>
|
||||
<if test="isCompleted != null and isCompleted != ''">#{isCompleted},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePickDetail" parameterType="PickDetail">
|
||||
update csa_pick_detail
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="taskId != null">task_id = #{taskId},</if>
|
||||
<if test="strainId != null">strain_id = #{strainId},</if>
|
||||
<if test="planWeight != null">plan_weight = #{planWeight},</if>
|
||||
<if test="resultWeight != null">result_weight = #{resultWeight},</if>
|
||||
<if test="isCompleted != null and isCompleted != ''">is_completed = #{isCompleted},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deletePickDetailById" parameterType="Long">
|
||||
delete from csa_pick_detail where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePickDetailByIds" parameterType="String">
|
||||
delete from csa_pick_detail where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
134
private-farm/src/main/resources/mapper/csa/TendTaskMapper.xml
Normal file
134
private-farm/src/main/resources/mapper/csa/TendTaskMapper.xml
Normal file
@ -0,0 +1,134 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jlt.csa.mapper.TendTaskMapper">
|
||||
|
||||
<resultMap type="TendTask" id="TendTaskResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="gardenId" column="garden_id" />
|
||||
<result property="taskType" column="task_type" />
|
||||
<result property="taskSubtype" column="task_subtype" />
|
||||
<result property="description" column="description" />
|
||||
<result property="executionPhase" column="execution_phase" />
|
||||
<result property="coins" column="coins" />
|
||||
<result property="taskTime" column="task_time" />
|
||||
<result property="feedbackTime" column="feedback_time" />
|
||||
<result property="feedbackResult" column="feedback_result" />
|
||||
<result property="executor" column="executor" />
|
||||
<result property="feedbacker" column="feedbacker" />
|
||||
<result property="isCompleted" column="is_completed" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="remark" column="remark" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTendTaskVo">
|
||||
select id, garden_id, task_type, task_subtype, description, execution_phase, coins, task_time, feedback_time, feedback_result, executor, feedbacker, is_completed, status, del_flag, create_by, create_time, update_by, update_time, remark from csa_tend_task
|
||||
</sql>
|
||||
|
||||
<select id="selectTendTaskList" parameterType="TendTask" resultMap="TendTaskResult">
|
||||
<include refid="selectTendTaskVo"/>
|
||||
<where>
|
||||
<if test="gardenId != null "> and garden_id = #{gardenId}</if>
|
||||
<if test="taskType != null and taskType != ''"> and task_type = #{taskType}</if>
|
||||
<if test="executionPhase != null and executionPhase != ''"> and execution_phase = #{executionPhase}</if>
|
||||
<if test="executor != null "> and executor = #{executor}</if>
|
||||
<if test="feedbacker != null "> and feedbacker = #{feedbacker}</if>
|
||||
<if test="isCompleted != null and isCompleted != ''"> and is_completed = #{isCompleted}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTendTaskById" parameterType="Long" resultMap="TendTaskResult">
|
||||
<include refid="selectTendTaskVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertTendTask" parameterType="TendTask" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into csa_tend_task
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="gardenId != null">garden_id,</if>
|
||||
<if test="taskType != null and taskType != ''">task_type,</if>
|
||||
<if test="taskSubtype != null">task_subtype,</if>
|
||||
<if test="description != null">description,</if>
|
||||
<if test="executionPhase != null and executionPhase != ''">execution_phase,</if>
|
||||
<if test="coins != null">coins,</if>
|
||||
<if test="taskTime != null">task_time,</if>
|
||||
<if test="feedbackTime != null">feedback_time,</if>
|
||||
<if test="feedbackResult != null">feedback_result,</if>
|
||||
<if test="executor != null">executor,</if>
|
||||
<if test="feedbacker != null">feedbacker,</if>
|
||||
<if test="isCompleted != null and isCompleted != ''">is_completed,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="gardenId != null">#{gardenId},</if>
|
||||
<if test="taskType != null and taskType != ''">#{taskType},</if>
|
||||
<if test="taskSubtype != null">#{taskSubtype},</if>
|
||||
<if test="description != null">#{description},</if>
|
||||
<if test="executionPhase != null and executionPhase != ''">#{executionPhase},</if>
|
||||
<if test="coins != null">#{coins},</if>
|
||||
<if test="taskTime != null">#{taskTime},</if>
|
||||
<if test="feedbackTime != null">#{feedbackTime},</if>
|
||||
<if test="feedbackResult != null">#{feedbackResult},</if>
|
||||
<if test="executor != null">#{executor},</if>
|
||||
<if test="feedbacker != null">#{feedbacker},</if>
|
||||
<if test="isCompleted != null and isCompleted != ''">#{isCompleted},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateTendTask" parameterType="TendTask">
|
||||
update csa_tend_task
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="gardenId != null">garden_id = #{gardenId},</if>
|
||||
<if test="taskType != null and taskType != ''">task_type = #{taskType},</if>
|
||||
<if test="taskSubtype != null">task_subtype = #{taskSubtype},</if>
|
||||
<if test="description != null">description = #{description},</if>
|
||||
<if test="executionPhase != null and executionPhase != ''">execution_phase = #{executionPhase},</if>
|
||||
<if test="coins != null">coins = #{coins},</if>
|
||||
<if test="taskTime != null">task_time = #{taskTime},</if>
|
||||
<if test="feedbackTime != null">feedback_time = #{feedbackTime},</if>
|
||||
<if test="feedbackResult != null">feedback_result = #{feedbackResult},</if>
|
||||
<if test="executor != null">executor = #{executor},</if>
|
||||
<if test="feedbacker != null">feedbacker = #{feedbacker},</if>
|
||||
<if test="isCompleted != null and isCompleted != ''">is_completed = #{isCompleted},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteTendTaskById" parameterType="Long">
|
||||
delete from csa_tend_task where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTendTaskByIds" parameterType="String">
|
||||
delete from csa_tend_task where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user