更改设计,暂不支持自定义作物阶段,改成通用阶段,即使用作物id为0的预定义阶段。

重新使用单表生成作物功能,已可用。
This commit is contained in:
jlt
2022-03-31 22:17:11 +08:00
parent dd8026246e
commit 9f1d942078
9 changed files with 164 additions and 257 deletions

View File

@ -2,6 +2,8 @@ package com.jlt.csa.controller;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -25,7 +27,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* 作物档案Controller * 作物档案Controller
* *
* @author 郏磊涛 * @author 郏磊涛
* @date 2022-03-30 * @date 2022-03-31
*/ */
@RestController @RestController
@RequestMapping("/csa/cropfile") @RequestMapping("/csa/cropfile")
@ -37,7 +39,7 @@ public class CropFileController extends BaseController
/** /**
* 查询作物档案列表 * 查询作物档案列表
*/ */
@PreAuthorize("@ss.hasPermi('csa:cropfile:query')") @PreAuthorize("@ss.hasPermi('csa:cropfile:list')")
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(CropFile cropFile) public TableDataInfo list(CropFile cropFile)
{ {
@ -72,29 +74,33 @@ public class CropFileController extends BaseController
/** /**
* 新增作物档案 * 新增作物档案
*/ */
@PreAuthorize("@ss.hasPermi('csa:cropfile:update')") @PreAuthorize("@ss.hasPermi('csa:cropfile:add')")
@Log(title = "作物档案", businessType = BusinessType.INSERT) @Log(title = "作物档案", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody CropFile cropFile) public AjaxResult add(@RequestBody CropFile cropFile)
{ {
cropFile.setCreateBy(getUsername());
cropFile.setCreateTime(DateUtils.getNowDate());
return toAjax(cropFileService.insertCropFile(cropFile)); return toAjax(cropFileService.insertCropFile(cropFile));
} }
/** /**
* 修改作物档案 * 修改作物档案
*/ */
@PreAuthorize("@ss.hasPermi('csa:cropfile:update')") @PreAuthorize("@ss.hasPermi('csa:cropfile:edit')")
@Log(title = "作物档案", businessType = BusinessType.UPDATE) @Log(title = "作物档案", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody CropFile cropFile) public AjaxResult edit(@RequestBody CropFile cropFile)
{ {
cropFile.setUpdateBy(getUsername());
cropFile.setUpdateTime(DateUtils.getNowDate());
return toAjax(cropFileService.updateCropFile(cropFile)); return toAjax(cropFileService.updateCropFile(cropFile));
} }
/** /**
* 删除作物档案 * 删除作物档案
*/ */
@PreAuthorize("@ss.hasPermi('csa:cropfile:update')") @PreAuthorize("@ss.hasPermi('csa:cropfile:remove')")
@Log(title = "作物档案", businessType = BusinessType.DELETE) @Log(title = "作物档案", businessType = BusinessType.DELETE)
@DeleteMapping("/{cropIds}") @DeleteMapping("/{cropIds}")
public AjaxResult remove(@PathVariable Long[] cropIds) public AjaxResult remove(@PathVariable Long[] cropIds)

View File

@ -1,6 +1,5 @@
package com.jlt.csa.domain; package com.jlt.csa.domain;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.annotation.Excel;
@ -10,7 +9,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
* 作物档案对象 csa_crop_file * 作物档案对象 csa_crop_file
* *
* @author 郏磊涛 * @author 郏磊涛
* @date 2022-03-30 * @date 2022-03-31
*/ */
public class CropFile extends BaseEntity public class CropFile extends BaseEntity
{ {
@ -26,24 +25,24 @@ public class CropFile extends BaseEntity
/** 种植指南 */ /** 种植指南 */
private String plantGuide; private String plantGuide;
/** 代表图片 */ /** 配图 */
@Excel(name = "代表图片") @Excel(name = "配图")
private String picture; private String picture;
/** 云配图 */
private String pictureOss;
/** 作物描述 */ /** 作物描述 */
@Excel(name = "作物描述") @Excel(name = "作物描述")
private String description; private String description;
/** 状态 */ /** 可种状态 */
@Excel(name = "状态") @Excel(name = "可种状态")
private String status; private String status;
/** 删除标志 */ /** 删除标志 */
private String delFlag; private String delFlag;
/** 作物生长阶段信息 */
private List<CropPhase> cropPhaseList;
public void setCropId(Long cropId) public void setCropId(Long cropId)
{ {
this.cropId = cropId; this.cropId = cropId;
@ -80,6 +79,15 @@ public class CropFile extends BaseEntity
{ {
return picture; return picture;
} }
public void setPictureOss(String pictureOss)
{
this.pictureOss = pictureOss;
}
public String getPictureOss()
{
return pictureOss;
}
public void setDescription(String description) public void setDescription(String description)
{ {
this.description = description; this.description = description;
@ -108,16 +116,6 @@ public class CropFile extends BaseEntity
return delFlag; return delFlag;
} }
public List<CropPhase> getCropPhaseList()
{
return cropPhaseList;
}
public void setCropPhaseList(List<CropPhase> cropPhaseList)
{
this.cropPhaseList = cropPhaseList;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@ -125,6 +123,7 @@ public class CropFile extends BaseEntity
.append("cropName", getCropName()) .append("cropName", getCropName())
.append("plantGuide", getPlantGuide()) .append("plantGuide", getPlantGuide())
.append("picture", getPicture()) .append("picture", getPicture())
.append("pictureOss", getPictureOss())
.append("description", getDescription()) .append("description", getDescription())
.append("status", getStatus()) .append("status", getStatus())
.append("delFlag", getDelFlag()) .append("delFlag", getDelFlag())
@ -133,7 +132,6 @@ public class CropFile extends BaseEntity
.append("updateBy", getUpdateBy()) .append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime()) .append("updateTime", getUpdateTime())
.append("remark", getRemark()) .append("remark", getRemark())
.append("cropPhaseList", getCropPhaseList())
.toString(); .toString();
} }
} }

View File

@ -2,13 +2,12 @@ package com.jlt.csa.mapper;
import java.util.List; import java.util.List;
import com.jlt.csa.domain.CropFile; import com.jlt.csa.domain.CropFile;
import com.jlt.csa.domain.CropPhase;
/** /**
* 作物档案Mapper接口 * 作物档案Mapper接口
* *
* @author 郏磊涛 * @author 郏磊涛
* @date 2022-03-30 * @date 2022-03-31
*/ */
public interface CropFileMapper public interface CropFileMapper
{ {
@ -59,29 +58,4 @@ public interface CropFileMapper
* @return 结果 * @return 结果
*/ */
public int deleteCropFileByCropIds(Long[] cropIds); public int deleteCropFileByCropIds(Long[] cropIds);
/**
* 批量删除作物生长阶段
*
* @param cropIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteCropPhaseByCropIds(Long[] cropIds);
/**
* 批量新增作物生长阶段
*
* @param cropPhaseList 作物生长阶段列表
* @return 结果
*/
public int batchCropPhase(List<CropPhase> cropPhaseList);
/**
* 通过作物档案主键删除作物生长阶段信息
*
* @param cropId 作物档案ID
* @return 结果
*/
public int deleteCropPhaseByCropId(Long cropId);
} }

View File

@ -7,7 +7,7 @@ import com.jlt.csa.domain.CropFile;
* 作物档案Service接口 * 作物档案Service接口
* *
* @author 郏磊涛 * @author 郏磊涛
* @date 2022-03-30 * @date 2022-03-31
*/ */
public interface ICropFileService public interface ICropFileService
{ {

View File

@ -4,10 +4,6 @@ import java.util.List;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.ArrayList;
import com.ruoyi.common.utils.StringUtils;
import org.springframework.transaction.annotation.Transactional;
import com.jlt.csa.domain.CropPhase;
import com.jlt.csa.mapper.CropFileMapper; import com.jlt.csa.mapper.CropFileMapper;
import com.jlt.csa.domain.CropFile; import com.jlt.csa.domain.CropFile;
import com.jlt.csa.service.ICropFileService; import com.jlt.csa.service.ICropFileService;
@ -16,7 +12,7 @@ import com.jlt.csa.service.ICropFileService;
* 作物档案Service业务层处理 * 作物档案Service业务层处理
* *
* @author 郏磊涛 * @author 郏磊涛
* @date 2022-03-30 * @date 2022-03-31
*/ */
@Service @Service
public class CropFileServiceImpl implements ICropFileService public class CropFileServiceImpl implements ICropFileService
@ -54,14 +50,10 @@ public class CropFileServiceImpl implements ICropFileService
* @param cropFile 作物档案 * @param cropFile 作物档案
* @return 结果 * @return 结果
*/ */
@Transactional
@Override @Override
public int insertCropFile(CropFile cropFile) public int insertCropFile(CropFile cropFile)
{ {
cropFile.setCreateTime(DateUtils.getNowDate()); return cropFileMapper.insertCropFile(cropFile);
int rows = cropFileMapper.insertCropFile(cropFile);
insertCropPhase(cropFile);
return rows;
} }
/** /**
@ -70,13 +62,9 @@ public class CropFileServiceImpl implements ICropFileService
* @param cropFile 作物档案 * @param cropFile 作物档案
* @return 结果 * @return 结果
*/ */
@Transactional
@Override @Override
public int updateCropFile(CropFile cropFile) public int updateCropFile(CropFile cropFile)
{ {
cropFile.setUpdateTime(DateUtils.getNowDate());
cropFileMapper.deleteCropPhaseByCropId(cropFile.getCropId());
insertCropPhase(cropFile);
return cropFileMapper.updateCropFile(cropFile); return cropFileMapper.updateCropFile(cropFile);
} }
@ -86,11 +74,9 @@ public class CropFileServiceImpl implements ICropFileService
* @param cropIds 需要删除的作物档案主键 * @param cropIds 需要删除的作物档案主键
* @return 结果 * @return 结果
*/ */
@Transactional
@Override @Override
public int deleteCropFileByCropIds(Long[] cropIds) public int deleteCropFileByCropIds(Long[] cropIds)
{ {
cropFileMapper.deleteCropPhaseByCropIds(cropIds);
return cropFileMapper.deleteCropFileByCropIds(cropIds); return cropFileMapper.deleteCropFileByCropIds(cropIds);
} }
@ -100,35 +86,9 @@ public class CropFileServiceImpl implements ICropFileService
* @param cropId 作物档案主键 * @param cropId 作物档案主键
* @return 结果 * @return 结果
*/ */
@Transactional
@Override @Override
public int deleteCropFileByCropId(Long cropId) public int deleteCropFileByCropId(Long cropId)
{ {
cropFileMapper.deleteCropPhaseByCropId(cropId);
return cropFileMapper.deleteCropFileByCropId(cropId); return cropFileMapper.deleteCropFileByCropId(cropId);
} }
/**
* 新增作物生长阶段信息
*
* @param cropFile 作物档案对象
*/
public void insertCropPhase(CropFile cropFile)
{
List<CropPhase> cropPhaseList = cropFile.getCropPhaseList();
Long cropId = cropFile.getCropId();
if (StringUtils.isNotNull(cropPhaseList))
{
List<CropPhase> list = new ArrayList<CropPhase>();
for (CropPhase cropPhase : cropPhaseList)
{
cropPhase.setCropId(cropId);
list.add(cropPhase);
}
if (list.size() > 0)
{
cropFileMapper.batchCropPhase(list);
}
}
}
} }

View File

@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="cropName" column="crop_name" /> <result property="cropName" column="crop_name" />
<result property="plantGuide" column="plant_guide" /> <result property="plantGuide" column="plant_guide" />
<result property="picture" column="picture" /> <result property="picture" column="picture" />
<result property="pictureOss" column="picture_oss" />
<result property="description" column="description" /> <result property="description" column="description" />
<result property="status" column="status" /> <result property="status" column="status" />
<result property="delFlag" column="del_flag" /> <result property="delFlag" column="del_flag" />
@ -19,43 +20,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="remark" column="remark" /> <result property="remark" column="remark" />
</resultMap> </resultMap>
<resultMap id="CropFileCropPhaseResult" type="CropFile" extends="CropFileResult">
<collection property="cropPhaseList" notNullColumn="sub_phase_id" javaType="java.util.List" resultMap="CropPhaseResult" />
</resultMap>
<resultMap type="CropPhase" id="CropPhaseResult">
<result property="phaseId" column="sub_phase_id" />
<result property="cropId" column="sub_crop_id" />
<result property="phaseName" column="sub_phase_name" />
<result property="production" column="sub_production" />
<result property="picture" column="sub_picture" />
<result property="status" column="sub_status" />
<result property="delFlag" column="sub_del_flag" />
<result property="createBy" column="sub_create_by" />
<result property="createTime" column="sub_create_time" />
<result property="updateBy" column="sub_update_by" />
<result property="updateTime" column="sub_update_time" />
<result property="remark" column="sub_remark" />
</resultMap>
<sql id="selectCropFileVo"> <sql id="selectCropFileVo">
select crop_id, crop_name, plant_guide, picture, description, status, del_flag, create_by, create_time, update_by, update_time, remark from csa_crop_file select crop_id, crop_name, plant_guide, picture, picture_oss, description, status, del_flag, create_by, create_time, update_by, update_time, remark from csa_crop_file
</sql> </sql>
<select id="selectCropFileList" parameterType="CropFile" resultMap="CropFileResult"> <select id="selectCropFileList" parameterType="CropFile" resultMap="CropFileResult">
<include refid="selectCropFileVo"/> <include refid="selectCropFileVo"/>
<where> <where>
<if test="cropName != null and cropName != ''"> and crop_name like concat('%', #{cropName}, '%')</if> <if test="cropName != null and cropName != ''"> and crop_name like concat('%', #{cropName}, '%')</if>
<if test="picture != null and picture != ''"> and picture = #{picture}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
</where> </where>
</select> </select>
<select id="selectCropFileByCropId" parameterType="Long" resultMap="CropFileCropPhaseResult"> <select id="selectCropFileByCropId" parameterType="Long" resultMap="CropFileResult">
select a.crop_id, a.crop_name, a.plant_guide, a.picture, a.description, a.status, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, <include refid="selectCropFileVo"/>
b.phase_id as sub_phase_id, b.crop_id as sub_crop_id, b.phase_name as sub_phase_name, b.production as sub_production, b.picture as sub_picture, b.status as sub_status, b.del_flag as sub_del_flag, b.create_by as sub_create_by, b.create_time as sub_create_time, b.update_by as sub_update_by, b.update_time as sub_update_time, b.remark as sub_remark where crop_id = #{cropId}
from csa_crop_file a
left join csa_crop_phase b on b.crop_id = a.crop_id
where a.crop_id = #{cropId}
</select> </select>
<insert id="insertCropFile" parameterType="CropFile" useGeneratedKeys="true" keyProperty="cropId"> <insert id="insertCropFile" parameterType="CropFile" useGeneratedKeys="true" keyProperty="cropId">
@ -64,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="cropName != null and cropName != ''">crop_name,</if> <if test="cropName != null and cropName != ''">crop_name,</if>
<if test="plantGuide != null">plant_guide,</if> <if test="plantGuide != null">plant_guide,</if>
<if test="picture != null">picture,</if> <if test="picture != null">picture,</if>
<if test="pictureOss != null">picture_oss,</if>
<if test="description != null">description,</if> <if test="description != null">description,</if>
<if test="status != null">status,</if> <if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if> <if test="delFlag != null">del_flag,</if>
@ -77,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="cropName != null and cropName != ''">#{cropName},</if> <if test="cropName != null and cropName != ''">#{cropName},</if>
<if test="plantGuide != null">#{plantGuide},</if> <if test="plantGuide != null">#{plantGuide},</if>
<if test="picture != null">#{picture},</if> <if test="picture != null">#{picture},</if>
<if test="pictureOss != null">#{pictureOss},</if>
<if test="description != null">#{description},</if> <if test="description != null">#{description},</if>
<if test="status != null">#{status},</if> <if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if> <if test="delFlag != null">#{delFlag},</if>
@ -94,6 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="cropName != null and cropName != ''">crop_name = #{cropName},</if> <if test="cropName != null and cropName != ''">crop_name = #{cropName},</if>
<if test="plantGuide != null">plant_guide = #{plantGuide},</if> <if test="plantGuide != null">plant_guide = #{plantGuide},</if>
<if test="picture != null">picture = #{picture},</if> <if test="picture != null">picture = #{picture},</if>
<if test="pictureOss != null">picture_oss = #{pictureOss},</if>
<if test="description != null">description = #{description},</if> <if test="description != null">description = #{description},</if>
<if test="status != null">status = #{status},</if> <if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if> <if test="delFlag != null">del_flag = #{delFlag},</if>
@ -116,22 +99,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{cropId} #{cropId}
</foreach> </foreach>
</delete> </delete>
<delete id="deleteCropPhaseByCropIds" parameterType="String">
delete from csa_crop_phase where crop_id in
<foreach item="cropId" collection="array" open="(" separator="," close=")">
#{cropId}
</foreach>
</delete>
<delete id="deleteCropPhaseByCropId" parameterType="Long">
delete from csa_crop_phase where crop_id = #{cropId}
</delete>
<insert id="batchCropPhase">
insert into csa_crop_phase( phase_id, crop_id, phase_name, production, picture, status, del_flag, create_by, create_time, update_by, update_time, remark) values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.phaseId}, #{item.cropId}, #{item.phaseName}, #{item.production}, #{item.picture}, #{item.status}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark})
</foreach>
</insert>
</mapper> </mapper>

View File

@ -35,6 +35,19 @@ export function updateCropfile(data) {
}) })
} }
// 更新作物状态
export function changeCropStatus(cropId, status) {
const data = {
cropId: cropId,
status
}
return request({
url: '/csa/cropfile',
method: 'put',
data: data
})
}
// 删除作物档案 // 删除作物档案
export function delCropfile(cropId) { export function delCropfile(cropId) {
return request({ return request({

View File

@ -61,18 +61,34 @@
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="cropfileList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="cropfileList" size="small" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="作物档案id" align="center" prop="cropId" /> <el-table-column label="配图" align="center" prop="picture" width="100">
<el-table-column label="作物名称" align="center" prop="cropName" />
<el-table-column label="代表图片" align="center" prop="picture" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<image-preview :src="scope.row.picture" :width="50" :height="50"/> <image-preview :src="scope.row.picture" :width="64" :height="64"/>
</template>
</el-table-column>
<el-table-column label="作物名称" align="center" prop="cropName">
<template slot-scope="scope">
<el-tag
:key="scope.row.id"
:type="scope.row.status == '0' ? 'success' : 'info'"
:effect="scope.row.status == '0' ? 'dark' : 'plain'">
{{ scope.row.cropName }}
</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="作物描述" align="center" prop="description" /> <el-table-column label="作物描述" align="center" prop="description" />
<el-table-column label="状态" align="center" prop="status" /> <el-table-column label="可种状态" align="center" prop="status">
<el-table-column label="备注" align="center" prop="remark" /> <template slot-scope="scope">
<el-switch
v-model="scope.row.status"
active-value="0"
inactive-value="1"
@change="handleStatusChange(scope.row)"
></el-switch>
</template>
</el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -102,55 +118,17 @@
/> />
<!-- 添加或修改作物档案对话框 --> <!-- 添加或修改作物档案对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="450px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="作物名称" prop="cropName"> <el-form-item label="作物名称" prop="cropName" inline-message="3333">
<el-input v-model="form.cropName" placeholder="请输入作物名称" /> <el-input v-model="form.cropName" placeholder="请输入作物名称" />
</el-form-item> </el-form-item>
<!-- <el-form-item label="种植指南" prop="plantGuide">-->
<!-- <el-input v-model="form.plantGuide" type="textarea" placeholder="请输入内容" />-->
<!-- </el-form-item>-->
<el-form-item label="代表图片">
<image-upload v-model="form.picture"/>
</el-form-item>
<el-form-item label="作物描述" prop="description"> <el-form-item label="作物描述" prop="description">
<el-input v-model="form.description" type="textarea" placeholder="请输入内容" /> <el-input v-model="form.description" type="textarea" rows="3" placeholder="请简要描述作物" />
</el-form-item>
<el-form-item label="作物配图">
<image-upload v-model="form.picture" limit="1" fileSize="0.3" :isShowTip="true" />
</el-form-item> </el-form-item>
<el-divider content-position="center">作物生长阶段信息</el-divider>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddCropPhase">添加</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDeleteCropPhase">删除</el-button>
</el-col>
</el-row>
<el-table :data="cropPhaseList" :row-class-name="rowCropPhaseIndex" @selection-change="handleCropPhaseSelectionChange" ref="cropPhase">
<el-table-column type="selection" width="50" align="center" />
<el-table-column label="序号" align="center" prop="index" width="50"/>
<el-table-column label="阶段名称" prop="phaseName" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.phaseName" placeholder="请输入阶段名称" />
</template>
</el-table-column>
<el-table-column label="产出" prop="production" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.production" placeholder="请输入产出" />
</template>
</el-table-column>
<el-table-column label="状态" prop="status" width="150">
<template slot-scope="scope">
<el-select v-model="scope.row.status" placeholder="请选择状态">
<el-option label="请选择字典生成" value="" />
</el-select>
</template>
</el-table-column>
<el-table-column label="备注" prop="remark" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.remark" placeholder="请输入备注" />
</template>
</el-table-column>
</el-table>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button> <el-button type="primary" @click="submitForm"> </el-button>
@ -161,18 +139,17 @@
</template> </template>
<script> <script>
import { listCropfile, getCropfile, delCropfile, addCropfile, updateCropfile } from "@/api/csa/cropfile"; import { listCropfile, getCropfile, delCropfile, addCropfile, updateCropfile, changeCropStatus } from "@/api/csa/cropfile";
export default { export default {
name: "Cropfile", name: "Cropfile",
dicts: ['sys_normal_disable'],
data() { data() {
return { return {
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 选中数组 // 选中数组
ids: [], ids: [],
// 子表选中数据
checkedCropPhase: [],
// 非单个禁用 // 非单个禁用
single: true, single: true,
// 非多个禁用 // 非多个禁用
@ -183,8 +160,6 @@ export default {
total: 0, total: 0,
// 作物档案表格数据 // 作物档案表格数据
cropfileList: [], cropfileList: [],
// 作物生长阶段表格数据
cropPhaseList: [],
// 弹出层标题 // 弹出层标题
title: "", title: "",
// 是否显示弹出层 // 是否显示弹出层
@ -229,16 +204,9 @@ export default {
this.form = { this.form = {
cropId: null, cropId: null,
cropName: null, cropName: null,
plantGuide: null,
picture: null, picture: null,
description: null, description: null,
status: "0",
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
}; };
this.cropPhaseList = [];
this.resetForm("form"); this.resetForm("form");
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
@ -269,7 +237,6 @@ export default {
const cropId = row.cropId || this.ids const cropId = row.cropId || this.ids
getCropfile(cropId).then(response => { getCropfile(cropId).then(response => {
this.form = response.data; this.form = response.data;
this.cropPhaseList = response.data.cropPhaseList;
this.open = true; this.open = true;
this.title = "修改作物档案"; this.title = "修改作物档案";
}); });
@ -278,7 +245,6 @@ export default {
submitForm() { submitForm() {
this.$refs["form"].validate(valid => { this.$refs["form"].validate(valid => {
if (valid) { if (valid) {
this.form.cropPhaseList = this.cropPhaseList;
if (this.form.cropId != null) { if (this.form.cropId != null) {
updateCropfile(this.form).then(response => { updateCropfile(this.form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
@ -298,42 +264,23 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const cropIds = row.cropId || this.ids; const cropIds = row.cropId || this.ids;
this.$modal.confirm('是否确认删除作物档案编号为"' + cropIds + '"的数据项').then(function() { this.$modal.confirm('是否确认删除作物档案?').then(function() {
return delCropfile(cropIds); return delCropfile(cropIds);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}).catch(() => {}); }).catch(() => {});
}, },
/** 作物生长阶段序号 */ /** 作物状态修改 */
rowCropPhaseIndex({ row, rowIndex }) { handleStatusChange(row) {
row.index = rowIndex + 1; let text = row.status === "0" ? "启用" : "停用";
}, this.$modal.confirm('确认要' + text + '"' + row.cropName + '"吗?').then(function() {
/** 作物生长阶段添加按钮操作 */ return changeCropStatus(row.cropId, row.status);
handleAddCropPhase() { }).then(() => {
let obj = {}; this.$modal.msgSuccess(text + "成功");
obj.phaseName = ""; }).catch(function() {
obj.production = ""; row.status = row.status === "0" ? "1" : "0";
obj.picture = "";
obj.status = "";
obj.remark = "";
this.cropPhaseList.push(obj);
},
/** 作物生长阶段删除按钮操作 */
handleDeleteCropPhase() {
if (this.checkedCropPhase.length == 0) {
this.$modal.msgError("请先选择要删除的作物生长阶段数据");
} else {
const cropPhaseList = this.cropPhaseList;
const checkedCropPhase = this.checkedCropPhase;
this.cropPhaseList = cropPhaseList.filter(function(item) {
return checkedCropPhase.indexOf(item.index) == -1
}); });
}
},
/** 复选框选中数据 */
handleCropPhaseSelectionChange(selection) {
this.checkedCropPhase = selection.map(item => item.index)
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {

View File

@ -11,7 +11,7 @@
Target Server Version : 50731 Target Server Version : 50731
File Encoding : 65001 File Encoding : 65001
Date: 30/03/2022 23:22:02 Date: 31/03/2022 22:16:47
*/ */
SET NAMES utf8mb4; SET NAMES utf8mb4;
@ -136,9 +136,10 @@ CREATE TABLE `csa_crop_file` (
`crop_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '作物档案id', `crop_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '作物档案id',
`crop_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '作物名称', `crop_name` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '作物名称',
`plant_guide` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '种植指南', `plant_guide` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '种植指南',
`picture` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '代表图片', `picture` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '配图',
`picture_oss` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '云配图',
`description` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '作物描述', `description` varchar(1024) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '作物描述',
`status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '状态0正常 1停用', `status` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '可种状态0正常 1停用',
`del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志0代表存在 2代表删除', `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志0代表存在 2代表删除',
`create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime NULL DEFAULT NULL COMMENT '创建时间', `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
@ -146,12 +147,16 @@ CREATE TABLE `csa_crop_file` (
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', `remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`crop_id`) USING BTREE PRIMARY KEY (`crop_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '作物档案' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '作物档案' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
-- Records of csa_crop_file -- Records of csa_crop_file
-- ---------------------------- -- ----------------------------
INSERT INTO `csa_crop_file` VALUES (1, '白菜', NULL, NULL, NULL, '0', '0', '', '2022-03-25 22:33:34', '', '2022-03-25 22:33:42', NULL); INSERT INTO `csa_crop_file` VALUES (1, '白菜', NULL, '/profile/upload/2022/03/31/白菜_20220331195317A003.jpg', NULL, '清脆无丝多叶少梗的白菜', '0', '0', '', '2022-03-25 22:33:34', 'admin', '2022-03-31 22:07:32', NULL);
INSERT INTO `csa_crop_file` VALUES (2, '紫茄子', NULL, '/profile/upload/2022/03/31/茄子_20220331195518A004.jpg', NULL, '紫色茄子富含花青素', '0', '0', '', '2022-03-31 19:55:20', '', '2022-03-31 19:55:43', NULL);
INSERT INTO `csa_crop_file` VALUES (3, '辣椒', NULL, '/profile/upload/2022/03/31/辣椒_20220331195927A005.jpeg', NULL, '辣度适中,皮薄味香', '0', '0', '', '2022-03-31 19:59:29', '', '2022-03-31 20:35:00', NULL);
INSERT INTO `csa_crop_file` VALUES (4, '菜椒', NULL, '/profile/upload/2022/03/31/菜椒_20220331204817A006.jpg', NULL, '口感香脆,营养丰富', '0', '0', '', '2022-03-31 20:48:19', '', '2022-03-31 21:42:02', NULL);
INSERT INTO `csa_crop_file` VALUES (5, '菠菜', NULL, '/profile/upload/2022/03/31/菠菜_20220331205640A008.png', NULL, '冬天怎么少得了菠菜', '0', '0', '', '2022-03-31 20:56:43', '', '2022-03-31 20:57:15', NULL);
-- ---------------------------- -- ----------------------------
-- Table structure for csa_crop_phase -- Table structure for csa_crop_phase
@ -171,11 +176,17 @@ CREATE TABLE `csa_crop_phase` (
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', `remark` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`phase_id`) USING BTREE PRIMARY KEY (`phase_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '作物生长阶段' ROW_FORMAT = Dynamic; ) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '作物生长阶段' ROW_FORMAT = Dynamic;
-- ---------------------------- -- ----------------------------
-- Records of csa_crop_phase -- Records of csa_crop_phase
-- ---------------------------- -- ----------------------------
INSERT INTO `csa_crop_phase` VALUES (0, 0, '备种', '', '', '0', '0', NULL, NULL, NULL, NULL, '');
INSERT INTO `csa_crop_phase` VALUES (1, 0, '播种', '', '', '0', '0', NULL, NULL, NULL, NULL, '');
INSERT INTO `csa_crop_phase` VALUES (2, 0, '幼苗', NULL, NULL, '0', '0', '', NULL, '', NULL, NULL);
INSERT INTO `csa_crop_phase` VALUES (3, 0, '成长', NULL, NULL, '0', '0', '', NULL, '', NULL, NULL);
INSERT INTO `csa_crop_phase` VALUES (4, 0, '成熟', NULL, NULL, '0', '0', '', NULL, '', NULL, NULL);
INSERT INTO `csa_crop_phase` VALUES (5, 0, '拉秧', NULL, NULL, '0', '0', '', NULL, '', NULL, NULL);
-- ---------------------------- -- ----------------------------
-- Table structure for csa_dict_data -- Table structure for csa_dict_data
@ -568,7 +579,7 @@ INSERT INTO `gen_table` VALUES (21, 'csa_garden_log_attach', '菜地日志附件
INSERT INTO `gen_table` VALUES (22, 'csa_garden_strain', '菜地品种', NULL, NULL, 'GardenStrain', 'crud', 'com.jlt.csa', 'csa', 'strain', '菜地品种', 'JiaLeitao', '0', '/', '{\"parentMenuId\":2021}', 'admin', '2022-03-27 17:59:21', '', '2022-03-27 18:02:34', NULL); INSERT INTO `gen_table` VALUES (22, 'csa_garden_strain', '菜地品种', NULL, NULL, 'GardenStrain', 'crud', 'com.jlt.csa', 'csa', 'strain', '菜地品种', 'JiaLeitao', '0', '/', '{\"parentMenuId\":2021}', 'admin', '2022-03-27 17:59:21', '', '2022-03-27 18:02:34', NULL);
INSERT INTO `gen_table` VALUES (23, 'csa_pick_detail', '采摘任务明细', NULL, NULL, 'PickDetail', 'crud', 'com.jlt.csa', 'csa', 'detail', '采摘任务明细', 'JiaLeitao', '0', '/', '{\"parentMenuId\":2021}', 'admin', '2022-03-27 17:59:21', '', '2022-03-27 18:19:02', NULL); INSERT INTO `gen_table` VALUES (23, 'csa_pick_detail', '采摘任务明细', NULL, NULL, 'PickDetail', 'crud', 'com.jlt.csa', 'csa', 'detail', '采摘任务明细', 'JiaLeitao', '0', '/', '{\"parentMenuId\":2021}', 'admin', '2022-03-27 17:59:21', '', '2022-03-27 18:19:02', NULL);
INSERT INTO `gen_table` VALUES (24, 'csa_tend_task', '打理任务', NULL, NULL, 'TendTask', 'crud', 'com.jlt.csa', 'csa', 'task', '打理任务', 'JiaLeitao', '0', '/', '{\"parentMenuId\":\"2021\"}', 'admin', '2022-03-27 17:59:21', '', '2022-03-27 18:12:16', NULL); INSERT INTO `gen_table` VALUES (24, 'csa_tend_task', '打理任务', NULL, NULL, 'TendTask', 'crud', 'com.jlt.csa', 'csa', 'task', '打理任务', 'JiaLeitao', '0', '/', '{\"parentMenuId\":\"2021\"}', 'admin', '2022-03-27 17:59:21', '', '2022-03-27 18:12:16', NULL);
INSERT INTO `gen_table` VALUES (25, 'csa_crop_file', '作物档案', 'csa_crop_phase', 'crop_id', 'CropFile', 'sub', 'com.jlt.csa', 'csa', 'cropfile', '作物档案', '郏磊涛', '0', '/', '{\"parentMenuId\":\"2002\"}', 'admin', '2022-03-30 22:33:19', '', '2022-03-30 22:41:00', NULL); INSERT INTO `gen_table` VALUES (25, 'csa_crop_file', '作物档案', '', '', 'CropFile', 'crud', 'com.jlt.csa', 'csa', 'cropfile', '作物档案', '郏磊涛', '0', '/', '{\"parentMenuId\":\"2002\"}', 'admin', '2022-03-30 22:33:19', '', '2022-03-31 22:03:32', NULL);
INSERT INTO `gen_table` VALUES (27, 'csa_crop_phase', '作物生长阶段', NULL, NULL, 'CropPhase', 'crud', 'com.jlt.csa', 'csa', 'cropphase', '作物生长阶段', '郏磊涛', '0', '/', '{}', 'admin', '2022-03-30 22:38:47', '', '2022-03-30 22:40:17', NULL); INSERT INTO `gen_table` VALUES (27, 'csa_crop_phase', '作物生长阶段', NULL, NULL, 'CropPhase', 'crud', 'com.jlt.csa', 'csa', 'cropphase', '作物生长阶段', '郏磊涛', '0', '/', '{}', 'admin', '2022-03-30 22:38:47', '', '2022-03-30 22:40:17', NULL);
-- ---------------------------- -- ----------------------------
@ -599,7 +610,7 @@ CREATE TABLE `gen_table_column` (
`update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime NULL DEFAULT NULL COMMENT '更新时间', `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`column_id`) USING BTREE PRIMARY KEY (`column_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 380 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成业务表字段' ROW_FORMAT = DYNAMIC; ) ENGINE = InnoDB AUTO_INCREMENT = 381 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '代码生成业务表字段' ROW_FORMAT = DYNAMIC;
-- ---------------------------- -- ----------------------------
-- Records of gen_table_column -- Records of gen_table_column
@ -799,18 +810,18 @@ INSERT INTO `gen_table_column` VALUES (340, '24', 'remark', '备注', 'varchar(1
INSERT INTO `gen_table_column` VALUES (341, '1', 'type', '分区类型', 'varchar(10)', 'String', 'type', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', 'csa_zone_type', 3, '', '2022-03-27 20:47:50', NULL, '2022-03-28 22:04:22'); INSERT INTO `gen_table_column` VALUES (341, '1', 'type', '分区类型', 'varchar(10)', 'String', 'type', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'select', 'csa_zone_type', 3, '', '2022-03-27 20:47:50', NULL, '2022-03-28 22:04:22');
INSERT INTO `gen_table_column` VALUES (342, '1', 'id', '分区id', 'int(11)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, '', '2022-03-28 21:38:50', '', '2022-03-28 22:04:22'); INSERT INTO `gen_table_column` VALUES (342, '1', 'id', '分区id', 'int(11)', 'Long', 'id', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, '', '2022-03-28 21:38:50', '', '2022-03-28 22:04:22');
INSERT INTO `gen_table_column` VALUES (343, '2', 'zone_id', '农场分区', 'int(11)', 'Long', 'zoneId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, '', '2022-03-29 11:37:14', '', '2022-03-29 12:05:51'); INSERT INTO `gen_table_column` VALUES (343, '2', 'zone_id', '农场分区', 'int(11)', 'Long', 'zoneId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, '', '2022-03-29 11:37:14', '', '2022-03-29 12:05:51');
INSERT INTO `gen_table_column` VALUES (344, '25', 'crop_id', '作物档案id', 'int(11)', 'Long', 'cropId', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (344, '25', 'crop_id', '作物档案id', 'int(11)', 'Long', 'cropId', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', NULL, 1, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (345, '25', 'crop_name', '作物名称', 'varchar(32)', 'String', 'cropName', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 2, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (345, '25', 'crop_name', '作物名称', 'varchar(32)', 'String', 'cropName', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 2, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (346, '25', 'plant_guide', '种植指南', 'varchar(1024)', 'String', 'plantGuide', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'textarea', '', 3, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (346, '25', 'plant_guide', '种植指南', 'varchar(1024)', 'String', 'plantGuide', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'textarea', '', 3, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (347, '25', 'picture', '代表图片', 'varchar(255)', 'String', 'picture', '0', '0', NULL, '1', '1', '1', NULL, 'EQ', 'imageUpload', '', 4, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (347, '25', 'picture', '配图', 'varchar(255)', 'String', 'picture', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'imageUpload', '', 4, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (348, '25', 'description', '作物描述', 'varchar(1024)', 'String', 'description', '0', '0', NULL, '1', '1', '1', NULL, 'EQ', 'textarea', '', 5, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (348, '25', 'description', '作物描述', 'varchar(1024)', 'String', 'description', '0', '0', NULL, '1', '1', '1', NULL, 'EQ', 'textarea', '', 6, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (349, '25', 'status', '状态', 'char(1)', 'String', 'status', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'radio', '', 6, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (349, '25', 'status', '可种状态', 'char(1)', 'String', 'status', '0', '0', NULL, '1', '1', '1', '1', 'EQ', 'radio', '', 7, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (350, '25', 'del_flag', '删除标志', 'char(1)', 'String', 'delFlag', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 7, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (350, '25', 'del_flag', '删除标志', 'char(1)', 'String', 'delFlag', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', NULL, 8, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (351, '25', 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 8, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (351, '25', 'create_by', '创建者', 'varchar(64)', 'String', 'createBy', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', NULL, 9, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (352, '25', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'datetime', '', 9, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (352, '25', 'create_time', '创建时间', 'datetime', 'Date', 'createTime', '0', '0', NULL, '1', NULL, NULL, NULL, 'EQ', 'datetime', NULL, 10, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (353, '25', 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 10, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (353, '25', 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', NULL, 11, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (354, '25', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 11, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (354, '25', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', NULL, 12, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (355, '25', 'remark', '备注', 'varchar(100)', 'String', 'remark', '0', '0', NULL, '1', '1', '1', NULL, 'EQ', 'input', '', 12, 'admin', '2022-03-30 22:33:20', '', '2022-03-30 22:41:00'); INSERT INTO `gen_table_column` VALUES (355, '25', 'remark', '备注', 'varchar(100)', 'String', 'remark', '0', '0', NULL, '1', '1', '1', NULL, 'EQ', 'input', '', 13, 'admin', '2022-03-30 22:33:20', NULL, '2022-03-31 22:03:32');
INSERT INTO `gen_table_column` VALUES (368, '27', 'phase_id', '阶段id', 'int(11)', 'Long', 'phaseId', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17'); INSERT INTO `gen_table_column` VALUES (368, '27', 'phase_id', '阶段id', 'int(11)', 'Long', 'phaseId', '1', '1', NULL, '1', NULL, NULL, NULL, 'EQ', 'input', '', 1, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17');
INSERT INTO `gen_table_column` VALUES (369, '27', 'crop_id', '作物', 'int(11)', 'Long', 'cropId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17'); INSERT INTO `gen_table_column` VALUES (369, '27', 'crop_id', '作物', 'int(11)', 'Long', 'cropId', '0', '0', '1', '1', '1', '1', '1', 'EQ', 'input', '', 2, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17');
INSERT INTO `gen_table_column` VALUES (370, '27', 'phase_name', '阶段名称', 'varchar(20)', 'String', 'phaseName', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 3, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17'); INSERT INTO `gen_table_column` VALUES (370, '27', 'phase_name', '阶段名称', 'varchar(20)', 'String', 'phaseName', '0', '0', '1', '1', '1', '1', '1', 'LIKE', 'input', '', 3, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17');
@ -823,6 +834,7 @@ INSERT INTO `gen_table_column` VALUES (376, '27', 'create_time', '创建时间',
INSERT INTO `gen_table_column` VALUES (377, '27', 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 10, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17'); INSERT INTO `gen_table_column` VALUES (377, '27', 'update_by', '更新者', 'varchar(64)', 'String', 'updateBy', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 10, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17');
INSERT INTO `gen_table_column` VALUES (378, '27', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 11, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17'); INSERT INTO `gen_table_column` VALUES (378, '27', 'update_time', '更新时间', 'datetime', 'Date', 'updateTime', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'datetime', '', 11, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17');
INSERT INTO `gen_table_column` VALUES (379, '27', 'remark', '备注', 'varchar(100)', 'String', 'remark', '0', '0', NULL, '1', '1', '1', NULL, 'EQ', 'input', '', 12, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17'); INSERT INTO `gen_table_column` VALUES (379, '27', 'remark', '备注', 'varchar(100)', 'String', 'remark', '0', '0', NULL, '1', '1', '1', NULL, 'EQ', 'input', '', 12, 'admin', '2022-03-30 22:38:48', '', '2022-03-30 22:40:17');
INSERT INTO `gen_table_column` VALUES (380, '25', 'picture_oss', '云配图', 'varchar(100)', 'String', 'pictureOss', '0', '0', NULL, '1', '1', NULL, NULL, 'EQ', 'input', '', 5, '', '2022-03-31 22:02:04', '', '2022-03-31 22:03:32');
-- ---------------------------- -- ----------------------------
-- Table structure for qrtz_blob_triggers -- Table structure for qrtz_blob_triggers
@ -1257,7 +1269,7 @@ CREATE TABLE `sys_logininfor` (
`msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '提示消息', `msg` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '提示消息',
`login_time` datetime NULL DEFAULT NULL COMMENT '访问时间', `login_time` datetime NULL DEFAULT NULL COMMENT '访问时间',
PRIMARY KEY (`info_id`) USING BTREE PRIMARY KEY (`info_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 174 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统访问记录' ROW_FORMAT = DYNAMIC; ) ENGINE = InnoDB AUTO_INCREMENT = 176 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '系统访问记录' ROW_FORMAT = DYNAMIC;
-- ---------------------------- -- ----------------------------
-- Records of sys_logininfor -- Records of sys_logininfor
@ -1336,6 +1348,8 @@ INSERT INTO `sys_logininfor` VALUES (170, 'admin', '127.0.0.1', '内网IP', 'Chr
INSERT INTO `sys_logininfor` VALUES (171, '101', '127.0.0.1', '内网IP', 'Chrome 9', 'Windows 10', '0', '登录成功', '2022-03-29 20:33:33'); INSERT INTO `sys_logininfor` VALUES (171, '101', '127.0.0.1', '内网IP', 'Chrome 9', 'Windows 10', '0', '登录成功', '2022-03-29 20:33:33');
INSERT INTO `sys_logininfor` VALUES (172, 'admin', '127.0.0.1', '内网IP', 'Firefox 9', 'Windows 10', '0', '登录成功', '2022-03-30 22:05:33'); INSERT INTO `sys_logininfor` VALUES (172, 'admin', '127.0.0.1', '内网IP', 'Firefox 9', 'Windows 10', '0', '登录成功', '2022-03-30 22:05:33');
INSERT INTO `sys_logininfor` VALUES (173, '101', '127.0.0.1', '内网IP', 'Chrome 9', 'Windows 10', '0', '登录成功', '2022-03-30 22:05:56'); INSERT INTO `sys_logininfor` VALUES (173, '101', '127.0.0.1', '内网IP', 'Chrome 9', 'Windows 10', '0', '登录成功', '2022-03-30 22:05:56');
INSERT INTO `sys_logininfor` VALUES (174, 'admin', '127.0.0.1', '内网IP', 'Chrome 9', 'Windows 10', '0', '登录成功', '2022-03-31 18:49:33');
INSERT INTO `sys_logininfor` VALUES (175, 'admin', '127.0.0.1', '内网IP', 'Chrome 9', 'Windows 10', '0', '登录成功', '2022-03-31 20:34:10');
-- ---------------------------- -- ----------------------------
-- Table structure for sys_menu -- Table structure for sys_menu
@ -1580,7 +1594,7 @@ CREATE TABLE `sys_oper_log` (
`error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '错误消息', `error_msg` varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '错误消息',
`oper_time` datetime NULL DEFAULT NULL COMMENT '操作时间', `oper_time` datetime NULL DEFAULT NULL COMMENT '操作时间',
PRIMARY KEY (`oper_id`) USING BTREE PRIMARY KEY (`oper_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 440 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '操作日志记录' ROW_FORMAT = DYNAMIC; ) ENGINE = InnoDB AUTO_INCREMENT = 470 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '操作日志记录' ROW_FORMAT = DYNAMIC;
-- ---------------------------- -- ----------------------------
-- Records of sys_oper_log -- Records of sys_oper_log
@ -1925,6 +1939,36 @@ INSERT INTO `sys_oper_log` VALUES (436, '代码生成', 6, 'com.ruoyi.generator.
INSERT INTO `sys_oper_log` VALUES (437, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', NULL, '/tool/gen', '127.0.0.1', '内网IP', '{\"sub\":false,\"functionAuthor\":\"郏磊涛\",\"columns\":[{\"capJavaField\":\"PhaseId\",\"usableColumn\":false,\"columnId\":368,\"isIncrement\":\"1\",\"increment\":true,\"insert\":true,\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"phaseId\",\"htmlType\":\"input\",\"edit\":false,\"query\":false,\"columnComment\":\"阶段id\",\"sort\":1,\"list\":false,\"params\":{},\"javaType\":\"Long\",\"queryType\":\"EQ\",\"columnType\":\"int(11)\",\"createBy\":\"admin\",\"isPk\":\"1\",\"createTime\":1648651128000,\"tableId\":27,\"pk\":true,\"columnName\":\"phase_id\"},{\"capJavaField\":\"CropId\",\"usableColumn\":false,\"columnId\":369,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":true,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"isRequired\":\"1\",\"javaField\":\"cropId\",\"htmlType\":\"input\",\"edit\":true,\"query\":true,\"columnComment\":\"作物\",\"isQuery\":\"1\",\"sort\":2,\"list\":true,\"params\":{},\"javaType\":\"Long\",\"queryType\":\"EQ\",\"columnType\":\"int(11)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648651128000,\"isEdit\":\"1\",\"tableId\":27,\"pk\":false,\"columnName\":\"crop_id\"},{\"capJavaField\":\"PhaseName\",\"usableColumn\":false,\"columnId\":370,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":true,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"isRequired\":\"1\",\"javaField\":\"phaseName\",\"htmlType\":\"input\",\"edit\":true,\"query\":true,\"columnComment\":\"阶段名称\",\"isQuery\":\"1\",\"sort\":3,\"list\":true,\"params\":{},\"javaType\":\"String\",\"queryType\":\"LIKE\",\"columnType\":\"varchar(20)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648651128000,\"isEdit\":\"1\",\"tableId\":27,\"pk\":false,\"columnName\":\"phase_name\"},{\"capJavaField\":\"Production\",\"usableColumn\":false,\"columnId\":371,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"production\",\"htmlType\":\"input\",\"edit\":true,\"query\":false,\"columnComment\":\"产出\",\"sort\":4,\"list\":true,\"params\":{},\"javaType\":\"String\",\"queryType\":\"EQ\",\"columnType\":\"varchar(20)\",\"', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-30 22:40:17'); INSERT INTO `sys_oper_log` VALUES (437, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', NULL, '/tool/gen', '127.0.0.1', '内网IP', '{\"sub\":false,\"functionAuthor\":\"郏磊涛\",\"columns\":[{\"capJavaField\":\"PhaseId\",\"usableColumn\":false,\"columnId\":368,\"isIncrement\":\"1\",\"increment\":true,\"insert\":true,\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"phaseId\",\"htmlType\":\"input\",\"edit\":false,\"query\":false,\"columnComment\":\"阶段id\",\"sort\":1,\"list\":false,\"params\":{},\"javaType\":\"Long\",\"queryType\":\"EQ\",\"columnType\":\"int(11)\",\"createBy\":\"admin\",\"isPk\":\"1\",\"createTime\":1648651128000,\"tableId\":27,\"pk\":true,\"columnName\":\"phase_id\"},{\"capJavaField\":\"CropId\",\"usableColumn\":false,\"columnId\":369,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":true,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"isRequired\":\"1\",\"javaField\":\"cropId\",\"htmlType\":\"input\",\"edit\":true,\"query\":true,\"columnComment\":\"作物\",\"isQuery\":\"1\",\"sort\":2,\"list\":true,\"params\":{},\"javaType\":\"Long\",\"queryType\":\"EQ\",\"columnType\":\"int(11)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648651128000,\"isEdit\":\"1\",\"tableId\":27,\"pk\":false,\"columnName\":\"crop_id\"},{\"capJavaField\":\"PhaseName\",\"usableColumn\":false,\"columnId\":370,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":true,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"isRequired\":\"1\",\"javaField\":\"phaseName\",\"htmlType\":\"input\",\"edit\":true,\"query\":true,\"columnComment\":\"阶段名称\",\"isQuery\":\"1\",\"sort\":3,\"list\":true,\"params\":{},\"javaType\":\"String\",\"queryType\":\"LIKE\",\"columnType\":\"varchar(20)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648651128000,\"isEdit\":\"1\",\"tableId\":27,\"pk\":false,\"columnName\":\"phase_name\"},{\"capJavaField\":\"Production\",\"usableColumn\":false,\"columnId\":371,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"production\",\"htmlType\":\"input\",\"edit\":true,\"query\":false,\"columnComment\":\"产出\",\"sort\":4,\"list\":true,\"params\":{},\"javaType\":\"String\",\"queryType\":\"EQ\",\"columnType\":\"varchar(20)\",\"', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-30 22:40:17');
INSERT INTO `sys_oper_log` VALUES (438, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', NULL, '/tool/gen', '127.0.0.1', '内网IP', '{\"sub\":true,\"subTableName\":\"csa_crop_phase\",\"functionAuthor\":\"郏磊涛\",\"columns\":[{\"capJavaField\":\"CropId\",\"usableColumn\":false,\"columnId\":344,\"isIncrement\":\"1\",\"increment\":true,\"insert\":true,\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"cropId\",\"htmlType\":\"input\",\"edit\":false,\"query\":false,\"columnComment\":\"作物档案id\",\"updateTime\":1648650926000,\"sort\":1,\"list\":false,\"params\":{},\"javaType\":\"Long\",\"queryType\":\"EQ\",\"columnType\":\"int(11)\",\"createBy\":\"admin\",\"isPk\":\"1\",\"createTime\":1648650800000,\"tableId\":25,\"pk\":true,\"columnName\":\"crop_id\"},{\"capJavaField\":\"CropName\",\"usableColumn\":false,\"columnId\":345,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":true,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"isRequired\":\"1\",\"javaField\":\"cropName\",\"htmlType\":\"input\",\"edit\":true,\"query\":true,\"columnComment\":\"作物名称\",\"isQuery\":\"1\",\"updateTime\":1648650926000,\"sort\":2,\"list\":true,\"params\":{},\"javaType\":\"String\",\"queryType\":\"LIKE\",\"columnType\":\"varchar(32)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648650800000,\"isEdit\":\"1\",\"tableId\":25,\"pk\":false,\"columnName\":\"crop_name\"},{\"capJavaField\":\"PlantGuide\",\"usableColumn\":false,\"columnId\":346,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"plantGuide\",\"htmlType\":\"textarea\",\"edit\":true,\"query\":false,\"columnComment\":\"种植指南\",\"updateTime\":1648650926000,\"sort\":3,\"list\":false,\"params\":{},\"javaType\":\"String\",\"queryType\":\"EQ\",\"columnType\":\"varchar(1024)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648650800000,\"isEdit\":\"1\",\"tableId\":25,\"pk\":false,\"columnName\":\"plant_guide\"},{\"capJavaField\":\"Picture\",\"usableColumn\":false,\"columnId\":347,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"picture\",\"htmlType\":\"imageUpload\",\"edit\":true,\"query\":false,\"columnComment\":\"代表图片\",\"upd', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-30 22:41:00'); INSERT INTO `sys_oper_log` VALUES (438, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', NULL, '/tool/gen', '127.0.0.1', '内网IP', '{\"sub\":true,\"subTableName\":\"csa_crop_phase\",\"functionAuthor\":\"郏磊涛\",\"columns\":[{\"capJavaField\":\"CropId\",\"usableColumn\":false,\"columnId\":344,\"isIncrement\":\"1\",\"increment\":true,\"insert\":true,\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"cropId\",\"htmlType\":\"input\",\"edit\":false,\"query\":false,\"columnComment\":\"作物档案id\",\"updateTime\":1648650926000,\"sort\":1,\"list\":false,\"params\":{},\"javaType\":\"Long\",\"queryType\":\"EQ\",\"columnType\":\"int(11)\",\"createBy\":\"admin\",\"isPk\":\"1\",\"createTime\":1648650800000,\"tableId\":25,\"pk\":true,\"columnName\":\"crop_id\"},{\"capJavaField\":\"CropName\",\"usableColumn\":false,\"columnId\":345,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":true,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"isRequired\":\"1\",\"javaField\":\"cropName\",\"htmlType\":\"input\",\"edit\":true,\"query\":true,\"columnComment\":\"作物名称\",\"isQuery\":\"1\",\"updateTime\":1648650926000,\"sort\":2,\"list\":true,\"params\":{},\"javaType\":\"String\",\"queryType\":\"LIKE\",\"columnType\":\"varchar(32)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648650800000,\"isEdit\":\"1\",\"tableId\":25,\"pk\":false,\"columnName\":\"crop_name\"},{\"capJavaField\":\"PlantGuide\",\"usableColumn\":false,\"columnId\":346,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"plantGuide\",\"htmlType\":\"textarea\",\"edit\":true,\"query\":false,\"columnComment\":\"种植指南\",\"updateTime\":1648650926000,\"sort\":3,\"list\":false,\"params\":{},\"javaType\":\"String\",\"queryType\":\"EQ\",\"columnType\":\"varchar(1024)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648650800000,\"isEdit\":\"1\",\"tableId\":25,\"pk\":false,\"columnName\":\"plant_guide\"},{\"capJavaField\":\"Picture\",\"usableColumn\":false,\"columnId\":347,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"picture\",\"htmlType\":\"imageUpload\",\"edit\":true,\"query\":false,\"columnComment\":\"代表图片\",\"upd', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-30 22:41:00');
INSERT INTO `sys_oper_log` VALUES (439, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', NULL, '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{}', NULL, 0, NULL, '2022-03-30 22:41:16'); INSERT INTO `sys_oper_log` VALUES (439, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', NULL, '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{}', NULL, 0, NULL, '2022-03-30 22:41:16');
INSERT INTO `sys_oper_log` VALUES (440, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"cropName\":\"白菜\",\"updateTime\":1648723792678,\"delFlag\":\"0\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/avator_20220331184949A001.jpg\",\"createBy\":\"\",\"createTime\":1648218814000,\"cropPhaseList\":[],\"updateBy\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 18:49:52');
INSERT INTO `sys_oper_log` VALUES (441, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"cropName\":\"白菜\",\"updateTime\":1648723879143,\"delFlag\":\"0\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/avator_20220331184949A001.jpg\",\"createBy\":\"\",\"createTime\":1648218814000,\"cropPhaseList\":[{\"cropId\":1,\"production\":\"\",\"remark\":\"\",\"params\":{},\"picture\":\"\",\"phaseName\":\"播种\",\"status\":\"\"}],\"updateBy\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 18:51:19');
INSERT INTO `sys_oper_log` VALUES (442, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"cropName\":\"白菜\",\"updateTime\":1648723933078,\"delFlag\":\"0\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/avator_20220331184949A001.jpg\",\"createBy\":\"\",\"createTime\":1648218814000,\"cropPhaseList\":[{\"cropId\":1,\"production\":\"\",\"phaseId\":1,\"remark\":\"\",\"params\":{},\"picture\":\"\",\"phaseName\":\"播种\",\"status\":\"\"},{\"cropId\":1,\"production\":\"\",\"remark\":\"\",\"params\":{},\"picture\":\"\",\"phaseName\":\"幼苗\",\"status\":\"\"}],\"updateBy\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 18:52:13');
INSERT INTO `sys_oper_log` VALUES (443, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"cropName\":\"白菜\",\"description\":\"清脆无条多叶的白菜\",\"updateTime\":1648726529335,\"delFlag\":\"0\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/avator_20220331184949A001.jpg\",\"createBy\":\"\",\"createTime\":1648218814000,\"cropPhaseList\":[{\"cropId\":1,\"production\":\"\",\"phaseId\":1,\"remark\":\"\",\"params\":{},\"picture\":\"\",\"phaseName\":\"播种\",\"status\":\"\"},{\"cropId\":1,\"production\":\"\",\"phaseId\":2,\"remark\":\"\",\"params\":{},\"picture\":\"\",\"phaseName\":\"幼苗\",\"status\":\"\"}],\"updateBy\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 19:35:29');
INSERT INTO `sys_oper_log` VALUES (444, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"cropName\":\"白菜\",\"description\":\"清脆无丝多叶少梗的白菜\",\"updateTime\":1648726549759,\"delFlag\":\"0\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/avator_20220331184949A001.jpg\",\"createBy\":\"\",\"createTime\":1648218814000,\"cropPhaseList\":[{\"cropId\":1,\"production\":\"\",\"phaseId\":1,\"remark\":\"\",\"params\":{},\"picture\":\"\",\"phaseName\":\"播种\",\"status\":\"\"},{\"cropId\":1,\"production\":\"\",\"phaseId\":2,\"remark\":\"\",\"params\":{},\"picture\":\"\",\"phaseName\":\"幼苗\",\"status\":\"\"}],\"updateBy\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 19:35:49');
INSERT INTO `sys_oper_log` VALUES (445, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"cropName\":\"白菜\",\"description\":\"清脆无丝多叶少梗的白菜\",\"updateTime\":1648727599188,\"delFlag\":\"0\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/白菜_20220331195317A003.jpg\",\"createBy\":\"\",\"createTime\":1648218814000,\"cropPhaseList\":[{\"cropId\":1,\"production\":\"\",\"phaseId\":1,\"remark\":\"\",\"params\":{},\"picture\":\"\",\"phaseName\":\"播种\",\"status\":\"\"},{\"cropId\":1,\"production\":\"\",\"phaseId\":2,\"remark\":\"\",\"params\":{},\"picture\":\"\",\"phaseName\":\"幼苗\",\"status\":\"\"}],\"updateBy\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 19:53:19');
INSERT INTO `sys_oper_log` VALUES (446, '作物档案', 1, 'com.jlt.csa.controller.CropFileController.add()', 'POST', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":2,\"cropName\":\"茄子\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/茄子_20220331195518A004.jpg\",\"createTime\":1648727719546,\"cropPhaseList\":[],\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 19:55:19');
INSERT INTO `sys_oper_log` VALUES (447, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":2,\"cropName\":\"紫茄子\",\"description\":\"紫色茄子富含花青素\",\"updateTime\":1648727742705,\"delFlag\":\"0\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/茄子_20220331195518A004.jpg\",\"createBy\":\"\",\"createTime\":1648727720000,\"cropPhaseList\":[],\"updateBy\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 19:55:42');
INSERT INTO `sys_oper_log` VALUES (448, '作物档案', 1, 'com.jlt.csa.controller.CropFileController.add()', 'POST', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":3,\"cropName\":\"辣椒\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/辣椒_20220331195927A005.jpeg\",\"createTime\":1648727969116,\"cropPhaseList\":[],\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 19:59:29');
INSERT INTO `sys_oper_log` VALUES (449, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":3,\"cropName\":\"辣椒\",\"description\":\"辣度适中,皮薄味香\",\"updateTime\":1648730099774,\"delFlag\":\"0\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/辣椒_20220331195927A005.jpeg\",\"createBy\":\"\",\"createTime\":1648727969000,\"cropPhaseList\":[],\"updateBy\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 20:34:59');
INSERT INTO `sys_oper_log` VALUES (450, '作物档案', 1, 'com.jlt.csa.controller.CropFileController.add()', 'POST', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":4,\"cropName\":\"菜椒\",\"description\":\"口感香脆,营养丰富\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/菜椒_20220331204817A006.jpg\",\"createTime\":1648730898603,\"cropPhaseList\":[],\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 20:48:18');
INSERT INTO `sys_oper_log` VALUES (451, '作物档案', 1, 'com.jlt.csa.controller.CropFileController.add()', 'POST', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":5,\"cropName\":\"菠菜\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/菠菜_20220331205640A008.png\",\"createTime\":1648731402650,\"cropPhaseList\":[],\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 20:56:42');
INSERT INTO `sys_oper_log` VALUES (452, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":5,\"cropName\":\"菠菜\",\"description\":\"冬天怎么少得了菠菜\",\"updateTime\":1648731435134,\"delFlag\":\"0\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/菠菜_20220331205640A008.png\",\"createBy\":\"\",\"createTime\":1648731403000,\"cropPhaseList\":[],\"updateBy\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 20:57:15');
INSERT INTO `sys_oper_log` VALUES (453, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"cropName\":\"白菜\",\"description\":\"清脆无丝多叶少梗的白菜\",\"updateTime\":1648733025468,\"delFlag\":\"0\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/白菜_20220331195317A003.jpg\",\"createBy\":\"\",\"createTime\":1648218814000,\"cropPhaseList\":[],\"updateBy\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 21:23:45');
INSERT INTO `sys_oper_log` VALUES (454, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"updateTime\":1648733599226,\"params\":{},\"status\":\"1\"}', '{\"msg\":\"操作失败\",\"code\":500}', 0, NULL, '2022-03-31 21:33:19');
INSERT INTO `sys_oper_log` VALUES (455, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"updateTime\":1648733615604,\"params\":{},\"status\":\"1\"}', '{\"msg\":\"操作失败\",\"code\":500}', 0, NULL, '2022-03-31 21:33:35');
INSERT INTO `sys_oper_log` VALUES (456, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"updateTime\":1648733937760,\"params\":{},\"status\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 21:38:57');
INSERT INTO `sys_oper_log` VALUES (457, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"updateTime\":1648733943280,\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 21:39:03');
INSERT INTO `sys_oper_log` VALUES (458, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":4,\"updateTime\":1648733960361,\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 21:39:20');
INSERT INTO `sys_oper_log` VALUES (459, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":4,\"updateTime\":1648734109712,\"params\":{},\"status\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 21:41:49');
INSERT INTO `sys_oper_log` VALUES (460, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":4,\"updateTime\":1648734121900,\"params\":{},\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 21:42:02');
INSERT INTO `sys_oper_log` VALUES (461, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', NULL, '/tool/gen', '127.0.0.1', '内网IP', '{\"sub\":false,\"subTableName\":\"\",\"functionAuthor\":\"郏磊涛\",\"columns\":[{\"capJavaField\":\"CropId\",\"usableColumn\":false,\"columnId\":344,\"isIncrement\":\"1\",\"increment\":true,\"insert\":true,\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"cropId\",\"htmlType\":\"input\",\"edit\":false,\"query\":false,\"columnComment\":\"作物档案id\",\"updateTime\":1648651260000,\"sort\":1,\"list\":false,\"params\":{},\"javaType\":\"Long\",\"queryType\":\"EQ\",\"columnType\":\"int(11)\",\"createBy\":\"admin\",\"isPk\":\"1\",\"createTime\":1648650800000,\"tableId\":25,\"pk\":true,\"columnName\":\"crop_id\"},{\"capJavaField\":\"CropName\",\"usableColumn\":false,\"columnId\":345,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":true,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"isRequired\":\"1\",\"javaField\":\"cropName\",\"htmlType\":\"input\",\"edit\":true,\"query\":true,\"columnComment\":\"作物名称\",\"isQuery\":\"1\",\"updateTime\":1648651260000,\"sort\":2,\"list\":true,\"params\":{},\"javaType\":\"String\",\"queryType\":\"LIKE\",\"columnType\":\"varchar(32)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648650800000,\"isEdit\":\"1\",\"tableId\":25,\"pk\":false,\"columnName\":\"crop_name\"},{\"capJavaField\":\"PlantGuide\",\"usableColumn\":false,\"columnId\":346,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"plantGuide\",\"htmlType\":\"textarea\",\"edit\":true,\"query\":false,\"columnComment\":\"种植指南\",\"updateTime\":1648651260000,\"sort\":3,\"list\":false,\"params\":{},\"javaType\":\"String\",\"queryType\":\"EQ\",\"columnType\":\"varchar(1024)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648650800000,\"isEdit\":\"1\",\"tableId\":25,\"pk\":false,\"columnName\":\"plant_guide\"},{\"capJavaField\":\"Picture\",\"usableColumn\":false,\"columnId\":347,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"updateBy\":\"\",\"isInsert\":\"1\",\"javaField\":\"picture\",\"htmlType\":\"imageUpload\",\"edit\":true,\"query\":false,\"columnComment\":\"代表图片\",\"updateTime\":1648', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 22:01:54');
INSERT INTO `sys_oper_log` VALUES (462, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.synchDb()', 'GET', 1, 'admin', NULL, '/tool/gen/synchDb/csa_crop_file', '127.0.0.1', '内网IP', '{tableName=csa_crop_file}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 22:02:04');
INSERT INTO `sys_oper_log` VALUES (463, '代码生成', 2, 'com.ruoyi.generator.controller.GenController.editSave()', 'PUT', 1, 'admin', NULL, '/tool/gen', '127.0.0.1', '内网IP', '{\"sub\":false,\"subTableName\":\"\",\"functionAuthor\":\"郏磊涛\",\"columns\":[{\"capJavaField\":\"CropId\",\"usableColumn\":false,\"columnId\":344,\"isIncrement\":\"1\",\"increment\":true,\"insert\":true,\"required\":false,\"superColumn\":false,\"isInsert\":\"1\",\"javaField\":\"cropId\",\"htmlType\":\"input\",\"edit\":false,\"query\":false,\"columnComment\":\"作物档案id\",\"updateTime\":1648735324000,\"sort\":1,\"list\":false,\"params\":{},\"javaType\":\"Long\",\"queryType\":\"EQ\",\"columnType\":\"int(11)\",\"createBy\":\"admin\",\"isPk\":\"1\",\"createTime\":1648650800000,\"tableId\":25,\"pk\":true,\"columnName\":\"crop_id\"},{\"capJavaField\":\"CropName\",\"usableColumn\":false,\"columnId\":345,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":true,\"superColumn\":false,\"isInsert\":\"1\",\"isRequired\":\"1\",\"javaField\":\"cropName\",\"htmlType\":\"input\",\"edit\":true,\"query\":true,\"columnComment\":\"作物名称\",\"isQuery\":\"1\",\"updateTime\":1648735324000,\"sort\":2,\"list\":true,\"params\":{},\"javaType\":\"String\",\"queryType\":\"LIKE\",\"columnType\":\"varchar(32)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648650800000,\"isEdit\":\"1\",\"tableId\":25,\"pk\":false,\"columnName\":\"crop_name\"},{\"capJavaField\":\"PlantGuide\",\"usableColumn\":false,\"columnId\":346,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"isInsert\":\"1\",\"javaField\":\"plantGuide\",\"htmlType\":\"textarea\",\"edit\":true,\"query\":false,\"columnComment\":\"种植指南\",\"updateTime\":1648735324000,\"sort\":3,\"list\":false,\"params\":{},\"javaType\":\"String\",\"queryType\":\"EQ\",\"columnType\":\"varchar(1024)\",\"createBy\":\"admin\",\"isPk\":\"0\",\"createTime\":1648650800000,\"isEdit\":\"1\",\"tableId\":25,\"pk\":false,\"columnName\":\"plant_guide\"},{\"capJavaField\":\"Picture\",\"usableColumn\":false,\"columnId\":347,\"isIncrement\":\"0\",\"increment\":false,\"insert\":true,\"isList\":\"1\",\"dictType\":\"\",\"required\":false,\"superColumn\":false,\"isInsert\":\"1\",\"javaField\":\"picture\",\"htmlType\":\"imageUpload\",\"edit\":true,\"query\":true,\"columnComment\":\"配图\",\"isQuery\":\"1\",\"updateTime\":1648735324000,\"sort\":4,\"list\":true,\"params\":{},\"javaType\":\"Stri', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 22:03:32');
INSERT INTO `sys_oper_log` VALUES (464, '代码生成', 8, 'com.ruoyi.generator.controller.GenController.batchGenCode()', 'GET', 1, 'admin', NULL, '/tool/gen/batchGenCode', '127.0.0.1', '内网IP', '{}', NULL, 0, NULL, '2022-03-31 22:03:44');
INSERT INTO `sys_oper_log` VALUES (465, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"cropName\":\"白菜\",\"description\":\"清脆无丝多叶少梗的白菜\",\"updateTime\":1648735642818,\"delFlag\":\"0\",\"params\":{},\"picture\":\"/profile/upload/2022/03/31/白菜_20220331195317A003.jpg\",\"createBy\":\"\",\"createTime\":1648218814000,\"updateBy\":\"admin\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 22:07:23');
INSERT INTO `sys_oper_log` VALUES (466, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"updateTime\":1648735645621,\"params\":{},\"updateBy\":\"admin\",\"status\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 22:07:25');
INSERT INTO `sys_oper_log` VALUES (467, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"updateTime\":1648735648108,\"params\":{},\"updateBy\":\"admin\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 22:07:28');
INSERT INTO `sys_oper_log` VALUES (468, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"updateTime\":1648735649650,\"params\":{},\"updateBy\":\"admin\",\"status\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 22:07:29');
INSERT INTO `sys_oper_log` VALUES (469, '作物档案', 2, 'com.jlt.csa.controller.CropFileController.edit()', 'PUT', 1, 'admin', NULL, '/csa/cropfile', '127.0.0.1', '内网IP', '{\"cropId\":1,\"updateTime\":1648735652218,\"params\":{},\"updateBy\":\"admin\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2022-03-31 22:07:32');
-- ---------------------------- -- ----------------------------
-- Table structure for sys_post -- Table structure for sys_post
@ -2135,7 +2179,7 @@ CREATE TABLE `sys_user` (
-- ---------------------------- -- ----------------------------
-- Records of sys_user -- Records of sys_user
-- ---------------------------- -- ----------------------------
INSERT INTO `sys_user` VALUES (1, 103, 'admin', '超级管理员', '00', '', '', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2022-03-30 22:05:34', 'admin', '2022-03-20 21:45:25', '', '2022-03-30 22:05:33', '管理员'); INSERT INTO `sys_user` VALUES (1, 103, 'admin', '超级管理员', '00', '', '', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2022-03-31 20:34:10', 'admin', '2022-03-20 21:45:25', '', '2022-03-31 20:34:10', '管理员');
INSERT INTO `sys_user` VALUES (2, 101, 'boss', '农场管理员', '00', '', '', '2', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2022-03-20 21:45:25', 'admin', '2022-03-20 21:45:25', 'admin', '2022-03-29 17:51:59', ''); INSERT INTO `sys_user` VALUES (2, 101, 'boss', '农场管理员', '00', '', '', '2', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2022-03-20 21:45:25', 'admin', '2022-03-20 21:45:25', 'admin', '2022-03-29 17:51:59', '');
INSERT INTO `sys_user` VALUES (100, 104, '101', '场长', '00', '88@66.com', '18888888888', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2022-03-30 22:05:56', 'admin', '2022-03-29 18:18:00', 'admin', '2022-03-30 22:05:56', NULL); INSERT INTO `sys_user` VALUES (100, 104, '101', '场长', '00', '88@66.com', '18888888888', '0', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2022-03-30 22:05:56', 'admin', '2022-03-29 18:18:00', 'admin', '2022-03-30 22:05:56', NULL);