id, crop_name, remarks, deleted
    
    
    
        insert into ir_crop
        
            
                id,
            
            
                crop_name,
            
            
                remarks,
            
            
                deleted,
            
        
        
            
                #{id,jdbcType=BIGINT},
            
            
                #{cropName,jdbcType=VARCHAR},
            
            
                #{remarks,jdbcType=VARCHAR},
            
            
                #{deleted,jdbcType=TINYINT},
            
        
    
    
    
        
        update ir_crop
        set deleted = 1
        where id = #{id,jdbcType=BIGINT}
    
    
    
        update ir_crop
        
            
                crop_name = #{cropName,jdbcType=VARCHAR},
            
            
                remarks = #{remarks,jdbcType=VARCHAR},
            
            
                deleted = #{deleted,jdbcType=TINYINT},
            
        
        where id = #{id,jdbcType=BIGINT}