提交 b75ee1b1 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 ba2d6387
......@@ -573,6 +573,22 @@ public class Purchase_order extends EntityMP implements Serializable {
@JSONField(name = "picking_type_id")
@JsonProperty("picking_type_id")
private Long pickingTypeId;
/**
* ID
*/
@DEField(name = "requisition_id")
@TableField(value = "requisition_id")
@JSONField(name = "requisition_id")
@JsonProperty("requisition_id")
private Long requisitionId;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.businesscentral.core.odoo_purchase.domain.Purchase_requisition odooRequisition;
/**
*
......@@ -902,6 +918,14 @@ public class Purchase_order extends EntityMP implements Serializable {
this.modify("picking_type_id",pickingTypeId);
}
/**
* 设置 [ID]
*/
public void setRequisitionId(Long requisitionId){
this.requisitionId = requisitionId ;
this.modify("requisition_id",requisitionId);
}
@Override
public Serializable getDefaultKey(boolean gen) {
......
......@@ -293,6 +293,13 @@ public class Purchase_orderSearchContext extends QueryWrapperContext<Purchase_or
this.getSearchCond().eq("picking_type_id", n_picking_type_id_eq);
}
}
private Long n_requisition_id_eq;//[ID]
public void setN_requisition_id_eq(Long n_requisition_id_eq) {
this.n_requisition_id_eq = n_requisition_id_eq;
if(!ObjectUtils.isEmpty(this.n_requisition_id_eq)){
this.getSearchCond().eq("requisition_id", n_requisition_id_eq);
}
}
/**
* 启用快速搜索
......
......@@ -62,6 +62,8 @@ public interface Purchase_orderMapper extends BaseMapper<Purchase_order>{
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
List<Purchase_order> selectByRequisitionId(@Param("id") Serializable id) ;
List<Purchase_order> selectByFiscalPositionId(@Param("id") Serializable id) ;
List<Purchase_order> selectByIncotermId(@Param("id") Serializable id) ;
......
......@@ -38,6 +38,8 @@ public interface IPurchase_orderService extends IService<Purchase_order>{
boolean save(Purchase_order et) ;
void saveBatch(List<Purchase_order> list) ;
Page<Purchase_order> searchDefault(Purchase_orderSearchContext context) ;
List<Purchase_order> selectByRequisitionId(Long id) ;
void removeByRequisitionId(Long id) ;
List<Purchase_order> selectByFiscalPositionId(Long id) ;
void removeByFiscalPositionId(Long id) ;
List<Purchase_order> selectByIncotermId(Long id) ;
......
......@@ -59,6 +59,9 @@ public class Purchase_orderServiceImpl extends ServiceImpl<Purchase_orderMapper,
protected cn.ibizlab.businesscentral.core.odoo_purchase.service.IPurchase_order_lineService purchaseOrderLineService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_purchase.service.IPurchase_requisitionService purchaseRequisitionService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_account.service.IAccount_fiscal_positionService accountFiscalPositionService;
@Autowired
@Lazy
......@@ -188,6 +191,16 @@ public class Purchase_orderServiceImpl extends ServiceImpl<Purchase_orderMapper,
}
@Override
public List<Purchase_order> selectByRequisitionId(Long id) {
return baseMapper.selectByRequisitionId(id);
}
@Override
public void removeByRequisitionId(Long id) {
this.remove(new QueryWrapper<Purchase_order>().eq("requisition_id",id));
}
@Override
public List<Purchase_order> selectByFiscalPositionId(Long id) {
return baseMapper.selectByFiscalPositionId(id);
......
......@@ -48,6 +48,9 @@ import org.springframework.util.StringUtils;
@Service("Purchase_requisitionServiceImpl")
public class Purchase_requisitionServiceImpl extends ServiceImpl<Purchase_requisitionMapper, Purchase_requisition> implements IPurchase_requisitionService {
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_purchase.service.IPurchase_orderService purchaseOrderService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.odoo_purchase.service.IPurchase_requisition_lineService purchaseRequisitionLineService;
......
......@@ -122057,6 +122057,23 @@
"data_type":"BIGINT",
"key_field":0,
"major_field":0
},
{
"fieldname":"REQUISITION_ID" ,
"codename":"Requisition_id",
"field_logic_name":"ID",
"entity_name":"Purchase_order",
"ref_de":"PURCHASE_REQUISITION",
"ref_field_name":"ID",
"relation_name":"DER1N_PURCHASE_ORDER_PURCHASE_REQUISITION_REQUISITION_ID",
"relation_codename":"Odoo_requisition",
"field_type":"PICKUP",
"nullable":1,
"physical_field":1,
"data_type":"BIGINT",
"data_length":20,
"key_field":0,
"major_field":0
}
],
"subEntitys":[
......@@ -122080,6 +122097,12 @@
}
],
"parentEntitys":[
{"name":"DER1N_PURCHASE_ORDER_PURCHASE_REQUISITION_REQUISITION_ID",
"relation_type":"DER1N",
"code_name":"Odoo_requisition",
"entity_name":"PURCHASE_ORDER",
"ref_entity_name":"PURCHASE_REQUISITION"
},
{"name":"DER1N_PURCHASE_ORDER__ACCOUNT_FISCAL_POSITION__FISCAL_POSITION_ID",
"relation_type":"DER1N",
"code_name":"Odoo_fiscal_position",
......@@ -123966,6 +123989,12 @@
}
],
"subEntitys":[
{"name":"DER1N_PURCHASE_ORDER_PURCHASE_REQUISITION_REQUISITION_ID",
"relation_type":"DER1N",
"code_name":"Odoo_requisition",
"entity_name":"PURCHASE_ORDER",
"ref_entity_name":"PURCHASE_REQUISITION"
},
{"name":"DER1N_PURCHASE_REQUISITION_LINE_PURCHASE_REQUISITION_REQUISITION_ID",
"relation_type":"DER1N",
"code_name":"Requisition",
......@@ -655,6 +655,15 @@ public class Purchase_orderDTO extends DTOBase implements Serializable {
@NotNull(message = "[交货到]不允许为空!")
private Long pickingTypeId;
/**
* 属性 [REQUISITION_ID]
*
*/
@JSONField(name = "requisition_id")
@JsonProperty("requisition_id")
@JsonSerialize(using = ToStringSerializer.class)
private Long requisitionId;
/**
* 设置 [ACCESS_TOKEN]
......@@ -864,6 +873,14 @@ public class Purchase_orderDTO extends DTOBase implements Serializable {
this.modify("picking_type_id",pickingTypeId);
}
/**
* 设置 [REQUISITION_ID]
*/
public void setRequisitionId(Long requisitionId){
this.requisitionId = requisitionId ;
this.modify("requisition_id",requisitionId);
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册