| | |
| | | |
| | | Long selectSomeCount(Map<String, Object> params); |
| | | |
| | | List<BaPrivilege> selectByIds(List<String> ids) ; |
| | | List<BaPrivilege> selectByIds(@Param("ids") List<String> ids) ; |
| | | |
| | | /** |
| | | * 查询某个用户所隶属所有角色的所有权限 |
| | |
| | | |
| | | import com.dy.pmsGlobal.pojoPlt.PltProduct; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | |
| | | String selectMaxCode(); |
| | | |
| | | boolean exists(String name, Long id); |
| | | boolean exists(@Param("name") String name, @Param("id") Long id); |
| | | |
| | | PltProduct selectByCode(String productCode); |
| | | } |
| | |
| | | |
| | | import com.dy.pmsGlobal.pojoPlt.PltProductionLine; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | int insertSelective(PltProductionLine record); |
| | | |
| | | PltProductionLine selectByPrimaryKey(Long id); |
| | | Long selectByNameId(Long id,String name); |
| | | Long selectByNameId(@Param("id") Long id, @Param("name") String name); |
| | | |
| | | int updateByPrimaryKeySelective(PltProductionLine record); |
| | | |
| | |
| | | List<PltStation> selectStationList(PltStation record); |
| | | |
| | | |
| | | long selectByLineAndStatus(Long lineId, boolean disabled); |
| | | long selectByLineAndStatus(@Param("lineId") Long lineId, @Param("disabled") boolean disabled); |
| | | } |
| | |
| | | |
| | | import com.dy.pmsGlobal.pojoPr.PrAssemblyPlan; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | |
| | | int deleteLogicById(Long id); |
| | | |
| | | boolean exists(String name, Long id); |
| | | boolean exists(@Param("name") String name, @Param("id") Long id); |
| | | |
| | | PrAssemblyPlan selectByDeviceNo(String proCode, String batchNumber); |
| | | PrAssemblyPlan selectByDeviceNo(@Param("proCode") String proCode,@Param("batchNumber") String batchNumber); |
| | | |
| | | List<PrAssemblyPlan> selectAssyPlanList(PrAssemblyPlan params); |
| | | |
| | |
| | | |
| | | import com.dy.pmsGlobal.pojoPr.PrDevOpsPlan; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | |
| | | int deleteLogicById(Long id); |
| | | |
| | | boolean exists(String name, Long id); |
| | | boolean exists(@Param("name") String name, @Param("id") Long id); |
| | | } |
| | |
| | | |
| | | import com.dy.pmsGlobal.pojoPr.PrProductionNode; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | int updateByPrimaryKeySelective(PrProductionNode record); |
| | | |
| | | List<PrProductionNode> selectByProcess(Long processId); |
| | | List<PrProductionNode> selectByProcess(@Param("processId") Long processId); |
| | | |
| | | void deleteByProcessId(Long id); |
| | | |
| | |
| | | import com.dy.pmsGlobal.pojoPr.PrProductionProcess; |
| | | import org.apache.ibatis.annotations.MapKey; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | @MapKey("id") |
| | | List<Map<String,String>> queryAll(Long proId); |
| | | |
| | | boolean exists(String name, Long id); |
| | | boolean exists(@Param("name") String name,@Param("id") Long id); |
| | | } |
| | |
| | | <!--@mbg.generated--> |
| | | id, `name`, phone, `password`, supper_admin, disabled, deleted, create_dt |
| | | </sql> |
| | | <sql id="part_Column_List"> |
| | | <sql id="part_Column_List"><![CDATA[ |
| | | ${alias}.id, ${alias}.name, ${alias}.phone, ${alias}.password, ${alias}.disabled,${alias}.create_dt |
| | | </sql> |
| | | ]]></sql> |
| | | <sql id="Login_Column_List"> |
| | | id, name, phone, supper_admin |
| | | </sql> |
| | |
| | | dt,start_date,end_date, |
| | | deleted,content,input_number,output_number |
| | | </sql> |
| | | <sql id="part_Column_List"> |
| | | <sql id="part_Column_List" > |
| | | ${alias}.id, |
| | | ${alias}.pro_id, |
| | | ${alias}.batch_id, |
| | |
| | | <if test="endDate != null">#{endDate,jdbcType=VARCHAR},</if> |
| | | <if test="deleted != null">#{deleted,jdbcType=TINYINT},</if> |
| | | <if test="content != null">#{content,jdbcType=VARCHAR},</if> |
| | | <if test="inputNumber != null">#{intputNumber,jdbcType=INTEGER},</if> |
| | | <if test="inputNumber != null">#{inputNumber,jdbcType=INTEGER},</if> |
| | | <if test="outputNumber != null">#{outputNumber,jdbcType=INTEGER},</if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="id != null">#{id,jdbcType=BIGINT},</if> |
| | | <if test="proId != null">#{proId,jdbcType=BIGINT},</if> |
| | | <if test="batchId != null">#{batchId,jdbcType=BIGINT},</if> |
| | | <if test="deviceNo != null">#{deviceNo</if> |
| | | <if test="deviceNo != null">#{deviceNo},</if> |
| | | <if test="status != null">#{status,jdbcType=TINYINT},</if> |
| | | </trim> |
| | | </insert> |
| | |
| | | batch_id = #{batchId,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="deviceNo != null"> |
| | | device_no = #{deviceNo |
| | | device_no = #{deviceNo}, |
| | | </if> |
| | | <if test="status != null"> |
| | | status = #{status,jdbcType=TINYINT}, |
| | | status = #{status,jdbcType=TINYINT} |
| | | </if> |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | |
| | | set |
| | | pro_id = #{proId,jdbcType=BIGINT}, |
| | | batch_id = #{batchId,jdbcType=BIGINT}, |
| | | device_no = #{deviceNo |
| | | device_no = #{deviceNo}, |
| | | status = #{status,jdbcType=TINYINT} |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | |
| | | </if> |
| | | </trim> |
| | | order by sort asc |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |
| | | #{start}, #{count} |
| | | </if> |
| | | </trim> |
| | | <!-- <trim prefix="limit " >--> |
| | | <!-- <if test="start != null and count != null">--> |
| | | <!-- #{start}, #{count}--> |
| | | <!-- </if>--> |
| | | <!-- </trim>--> |
| | | </select> |
| | | <select id="isEndNode" resultType="java.lang.Boolean"> |
| | | select |
| | |
| | | <!-- </if>--> |
| | | </trim> |
| | | </select> |
| | | <select id="queryAll" resultType="map"> |
| | | <select id="queryAll" resultType="java.util.List"> |
| | | select |
| | | CAST(id AS CHAR) AS id,name |
| | | from pr_production_process |
| | |
| | | node_id,work_type,dt,status, |
| | | start_time,end_time,assistants |
| | | </sql> |
| | | <sql id="part_Column_List"> |
| | | <sql id="part_Column_List"><![CDATA[ |
| | | ${alias}.id, |
| | | ${alias}.user_id, |
| | | ${alias}.line_id, |
| | |
| | | ${alias}.start_time, |
| | | ${alias}.end_time, |
| | | ${alias}.assistants |
| | | </sql> |
| | | ]]></sql> |
| | | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </select> |
| | | |
| | | <select id="selectByUserAndStation" resultMap="BaseResultMap"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from plt_station where status ==1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="id != null and id !=''"> |
| | | id = #{id,jdbcType=BIGINT} and |
| | | </if> |
| | | <if test="code != null and code !=''"> |
| | | code = #{code,jdbcType=VARCHAR} and |
| | | </if> |
| | | <if test="name != null and name !=''"> |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="disabled != null and disabled !=''"> |
| | | disabled = #{disabled,jdbcType=TINYINT} and |
| | | </if> |
| | | <if test="lineId != null and lineId !=''"> |
| | | line_id = #{lineId,jdbcType=BIGINT} and |
| | | </if> |
| | | </trim> |
| | | order by id desc |
| | | </select> |
| | | <!-- <select id="selectByUserAndStation" resultMap="BaseResultMap">--> |
| | | <!-- select--> |
| | | <!-- <include refid="Base_Column_List"/>--> |
| | | <!-- from plt_station where status =1--> |
| | | <!-- <trim prefix="and" suffixOverrides="and">--> |
| | | <!-- <if test="id != null and id !=''">--> |
| | | <!-- id = #{id,jdbcType=BIGINT} and--> |
| | | <!-- </if>--> |
| | | <!-- <if test="code != null and code !=''">--> |
| | | <!-- code = #{code,jdbcType=VARCHAR} and--> |
| | | <!-- </if>--> |
| | | <!-- <if test="name != null and name !=''">--> |
| | | <!-- name like concat('%', #{name}, '%') and--> |
| | | <!-- </if>--> |
| | | <!-- <if test="disabled != null and disabled !=''">--> |
| | | <!-- disabled = #{disabled,jdbcType=TINYINT} and--> |
| | | <!-- </if>--> |
| | | <!-- <if test="lineId != null and lineId !=''">--> |
| | | <!-- line_id = #{lineId,jdbcType=BIGINT} and--> |
| | | <!-- </if>--> |
| | | <!-- </trim>--> |
| | | <!-- order by id desc--> |
| | | <!-- </select>--> |
| | | |
| | | <select id="selectList" resultMap="BaseResultMap"> |
| | | select |
| | |
| | | and status = #{status,jdbcType=TINYINT} |
| | | </if> |
| | | <if test="startTime != null and startTime !=''"> |
| | | and start_time = #{startTime,jdbcType=TIMESTAMP}, |
| | | and start_time = #{startTime,jdbcType=TIMESTAMP} |
| | | </if> |
| | | <if test="endTime != null and endTime !=''"> |
| | | and end_time = #{endTime,jdbcType=TIMESTAMP}, |
| | | and end_time = #{endTime,jdbcType=TIMESTAMP} |
| | | </if> |
| | | <if test="assistants != null and assistants !=''"> |
| | | and assistants = #{assistants,jdbcType=VARCHAR} |
| | |
| | | and p.name like concat('%', #{planName}, '%') |
| | | </if> |
| | | <if test="processName != null and processName != '' "> |
| | | and pp.name like concat('%', #{processName}, '%') |
| | | and ppp.name like concat('%', #{processName}, '%') |
| | | </if> |
| | | <if test="nodeName != null and nodeName != '' "> |
| | | and n.content like concat('%', #{nodeName}, '%') |
| | |
| | | curr_node,node_content,device_cycle_content, |
| | | status,result, |
| | | error_msg,assistants, |
| | | updated_by,in_time,out_time, |
| | | updated_by,in_time,out_time,in_line_time,out_line_time, |
| | | memo |
| | | </sql> |
| | | <select id="selectByDeviceNo" parameterType="java.lang.String" resultMap="joinResultMap"> |