Compare commits
2 Commits
5c08e5f5e2
...
1144d4692a
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1144d4692a | ||
![]() |
4a295a4ec0 |
@ -6,7 +6,6 @@ import com.baomidou.mybatisplus.annotation.KeySequence;
|
|||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
|
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
@ -18,7 +17,8 @@ import java.util.List;
|
|||||||
* @author 艾楷
|
* @author 艾楷
|
||||||
*/
|
*/
|
||||||
@TableName("sf_handling_group_amount_specifications")
|
@TableName("sf_handling_group_amount_specifications")
|
||||||
@KeySequence("sf_handling_group_amount_specifications_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
@KeySequence("sf_handling_group_amount_specifications_seq")
|
||||||
|
// 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||||
@Data
|
@Data
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@ToString(callSuper = true)
|
@ToString(callSuper = true)
|
||||||
@ -40,6 +40,11 @@ public class HandlingGroupAmountSpecificationsDO extends BaseDO {
|
|||||||
* 搬运规格id
|
* 搬运规格id
|
||||||
*/
|
*/
|
||||||
private Long handlingSpecificationsId;
|
private Long handlingSpecificationsId;
|
||||||
|
/**
|
||||||
|
* 搬运规格名称
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String handlingSpecificationsName;
|
||||||
/**
|
/**
|
||||||
* 搬运组id
|
* 搬运组id
|
||||||
*/
|
*/
|
||||||
|
@ -50,4 +50,11 @@ public interface HandlingGroupMapper extends BaseMapperX<HandlingGroupDO> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
IPage<HandlingGroupAmountSpecificationsVO> selectPageListByDateStr(@Param("page") Page<Object> page, @Param("vo") HandlingGroupAmountSpecificationsPageReqDTO vo);
|
IPage<HandlingGroupAmountSpecificationsVO> selectPageListByDateStr(@Param("page") Page<Object> page, @Param("vo") HandlingGroupAmountSpecificationsPageReqDTO vo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
HandlingGroupDO getHandlingGroup(@Param("id") Long id);
|
||||||
}
|
}
|
||||||
|
@ -44,4 +44,11 @@ public interface HandlingSpecificationsMapper extends BaseMapperX<HandlingSpecif
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<HandlingSpecificationsDO> getHandlingSpecificationsList(@Param("vo") HandlingSpecificationsPageReqVO vo);
|
List<HandlingSpecificationsDO> getHandlingSpecificationsList(@Param("vo") HandlingSpecificationsPageReqVO vo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
HandlingSpecificationsDO getHandlingSpecifications(@Param("id") Long id);
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ public class HandlingGroupServiceImpl extends ServiceImpl<HandlingGroupMapper, H
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HandlingGroupDO getHandlingGroup(Long id) {
|
public HandlingGroupDO getHandlingGroup(Long id) {
|
||||||
return handlingGroupMapper.selectById(id);
|
return handlingGroupMapper.getHandlingGroup(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -64,7 +64,7 @@ public class HandlingSpecificationsServiceImpl extends ServiceImpl<HandlingSpeci
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HandlingSpecificationsDO getHandlingSpecifications(Long id) {
|
public HandlingSpecificationsDO getHandlingSpecifications(Long id) {
|
||||||
return handlingSpecificationsMapper.selectById(id);
|
return handlingSpecificationsMapper.getHandlingSpecifications(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
from sf_handling_group a
|
from sf_handling_group a
|
||||||
left join sf_factory_info as b on a.factory_id = b.id
|
left join sf_factory_info as b on a.factory_id = b.id
|
||||||
<where>
|
<where>
|
||||||
|
a.deleted = 0
|
||||||
|
and b.deleted = 0
|
||||||
<if test="vo.factoryId != null">
|
<if test="vo.factoryId != null">
|
||||||
and a.factory_id = #{vo.factoryId}
|
and a.factory_id = #{vo.factoryId}
|
||||||
</if>
|
</if>
|
||||||
@ -26,7 +28,8 @@
|
|||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<resultMap id="handlingSummaryMap" type="cn.iocoder.yudao.module.smartfactory.controller.admin.handlinggroupamountspecifications.vo.HandlingGroupAmountSpecificationsVO">
|
<resultMap id="handlingSummaryMap"
|
||||||
|
type="cn.iocoder.yudao.module.smartfactory.controller.admin.handlinggroupamountspecifications.vo.HandlingGroupAmountSpecificationsVO">
|
||||||
<!-- 基础字段映射 -->
|
<!-- 基础字段映射 -->
|
||||||
<id property="id" column="id"/>
|
<id property="id" column="id"/>
|
||||||
<result property="factoryId" column="factory_id"/>
|
<result property="factoryId" column="factory_id"/>
|
||||||
@ -87,7 +90,6 @@
|
|||||||
<where>
|
<where>
|
||||||
a.deleted = 0
|
a.deleted = 0
|
||||||
and b.deleted = 0
|
and b.deleted = 0
|
||||||
and c.deleted = 0
|
|
||||||
<if test="vo.factoryId != null">
|
<if test="vo.factoryId != null">
|
||||||
and a.factory_id = #{vo.factoryId}
|
and a.factory_id = #{vo.factoryId}
|
||||||
</if>
|
</if>
|
||||||
@ -131,4 +133,13 @@
|
|||||||
a.date_str,
|
a.date_str,
|
||||||
a.handling_group_id
|
a.handling_group_id
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getHandlingGroup"
|
||||||
|
resultType="cn.iocoder.yudao.module.smartfactory.dal.dataobject.handlinggroup.HandlingGroupDO">
|
||||||
|
SELECT a.*,
|
||||||
|
b.short_name as factoryName
|
||||||
|
FROM sf_handling_group AS a
|
||||||
|
left join sf_factory_info as b on a.factory_id = b.id
|
||||||
|
WHERE a.deleted = 0
|
||||||
|
and a.id = #{id}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
@ -51,4 +51,18 @@
|
|||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getHandlingSpecifications"
|
||||||
|
resultType="cn.iocoder.yudao.module.smartfactory.dal.dataobject.handlingspecifications.HandlingSpecificationsDO">
|
||||||
|
select a.*,
|
||||||
|
b.short_name as factoryName
|
||||||
|
from sf_handling_specifications as a
|
||||||
|
left join sf_factory_info as b on a.factory_id = b.id
|
||||||
|
<where>
|
||||||
|
a.deleted = 0
|
||||||
|
and b.deleted = 0
|
||||||
|
<if test="id != null">
|
||||||
|
and a.id = #{id}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
Loading…
Reference in New Issue
Block a user