From 60d6333813c5ae3c8b37199f361232d20b4d7ca7 Mon Sep 17 00:00:00 2001 From: liuxiaoxu <1793812695@qq.com> Date: Tue, 22 Oct 2024 11:04:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A7=E7=89=88=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E7=9A=84=E6=A0=87=E7=AD=BE=E6=89=93=E5=8D=B0=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=20tag=5Ftemplate=E5=92=8C=E7=B3=BB=E7=BB=9F=E4=B8=AD?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E7=9A=84=E5=89=8D=E7=AB=AF=E6=89=80=E6=9C=89?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=92=8C=E5=90=8E=E7=AB=AF=E6=89=80=E6=9C=89?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=20=E5=92=8C=E5=AF=B9=E5=BA=94=E7=9A=84?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=8F=9C=E5=8D=95=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/ck/domain/TagTemplate.java | 249 ------------------ .../ruoyi/ck/mapper/TagTemplateMapper.java | 63 ----- .../ruoyi/ck/service/ITagTemplateService.java | 61 ----- .../service/impl/TagTemplateServiceImpl.java | 95 ------- .../resources/mapper/ck/TagTemplateMapper.xml | 92 ------- 5 files changed, 560 deletions(-) delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/ck/domain/TagTemplate.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/ck/mapper/TagTemplateMapper.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/ck/service/ITagTemplateService.java delete mode 100644 ruoyi-admin/src/main/java/com/ruoyi/ck/service/impl/TagTemplateServiceImpl.java delete mode 100644 ruoyi-admin/src/main/resources/mapper/ck/TagTemplateMapper.xml diff --git a/ruoyi-admin/src/main/java/com/ruoyi/ck/domain/TagTemplate.java b/ruoyi-admin/src/main/java/com/ruoyi/ck/domain/TagTemplate.java deleted file mode 100644 index 39139932..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/ck/domain/TagTemplate.java +++ /dev/null @@ -1,249 +0,0 @@ -package com.ruoyi.ck.domain; - -import java.math.BigInteger; -import java.util.Calendar; - -/** - * Created by sunzhenhu on 2021/7/26 14:44 - * 标签打印模板 - */ -public class TagTemplate { - private String box_id; - private String box_id_text; - - private String wlCode; - private String wlCode_text; - - private String batch; - private String batch_text; - - private String vendor; - private String vendor_text; - private String quantity; - private String quantity_text; - - private String createtime; - private String createtime_text; -// private String workformcode; - private String special; - private String special_text; - private String other; - private String other_text; - private String other_prefix; - public void initBoxId_text(String vendor, String address, Calendar calendar,int sn){ - StringBuilder builder=new StringBuilder(); - String convert="0123456789ABCDEFGHJKLMNPRSTUVWXYZ"; - String date=dateConvert(calendar); - BigInteger bigInteger=new BigInteger(String.valueOf((sn+1)),10); - int dec=bigInteger.intValue(); - StringBuilder result= new StringBuilder(base(dec, convert)); - int dis=5-result.length(); - for (int j=1;j<=dis;j++){ - result.insert(0, "0"); - } - builder.append(vendor).append(address).append(date).append(result); - this.box_id_text=builder.toString(); - } - public String base(int num,String convert){ - if (num50){ - year--; - } - year=year%10; - String weekYear=weekOfYear+""; - for (int i=0;i<2;i++){ - if (weekYear.length()<2){ - weekYear="0"+weekYear; - } - } - String result=year+""+weekYear; - System.out.println(result); - return result; - } - - - public String getBox_id_text() { - return box_id_text; - } - - public void setBox_id_text(String box_id_text) { - this.box_id_text = box_id_text; - } - - public String getWlCode_text() { - return wlCode_text; - } - - public void setWlCode_text(String wlCode_text) { - this.wlCode_text = wlCode_text; - } - - public String getBatch_text() { - return batch_text; - } - - public void setBatch_text(String batch_text) { - this.batch_text = batch_text; - } - - public String getVendor_text() { - return vendor_text; - } - - public void setVendor_text(String vendor_text) { - this.vendor_text = vendor_text; - } - - public String getQuantity_text() { - return quantity_text; - } - - public void setQuantity_text(String quantity_text) { - this.quantity_text = quantity_text; - } - - public String getCreatetime_text() { - return createtime_text; - } - - public void setCreatetime_text(String createtime_text) { - this.createtime_text = createtime_text; - } - - public String getSpecial_text() { - return special_text; - } - - public void setSpecial_text(String special_text) { - this.special_text = special_text; - } - - public String getBox_id() { - return box_id; - } - - public void setBox_id(String box_id) { - this.box_id = box_id; - } - - public String getWlCode() { - return wlCode; - } - - public void setWlCode(String wlCode) { - this.wlCode = wlCode; - } - - public String getBatch() { - return batch; - } - - public void setBatch(String batch) { - this.batch = batch; - } - - public String getVendor() { - return vendor; - } - - public void setVendor(String vendor) { - this.vendor = vendor; - } - - public String getQuantity() { - return quantity; - } - - public void setQuantity(String quantity) { - this.quantity = quantity; - } - - public String getCreatetime() { - return createtime; - } - - public void setCreatetime(String createtime) { - this.createtime = createtime; - } - - public String getOther() { - return other; - } - - public void setOther(String other) { - this.other = other; - } - - public String getOther_text() { - return other_text; - } - - public void setOther_text(String other_text) { - this.other_text = other_text; - } - - public String getOther_prefix() { - return other_prefix; - } - - public void setOther_prefix(String other_prefix) { - this.other_prefix = other_prefix; - } - - // public String getWorkformcode() { -// return workformcode; -// } -// -// public void setWorkformcode(String workformcode) { -// this.workformcode = workformcode; -// } -// -// - public String getSpecial() { - return special; - } - - public void setSpecial(String special) { - this.special = special; - } - - @Override - public String toString() { - return "TagTemplate{" + - "box_id='" + box_id + '\'' + - ", box_id_text='" + box_id_text + '\'' + - ", wlCode='" + wlCode + '\'' + - ", wlCode_text='" + wlCode_text + '\'' + - ", batch='" + batch + '\'' + - ", batch_text='" + batch_text + '\'' + - ", vendor='" + vendor + '\'' + - ", vendor_text='" + vendor_text + '\'' + - ", quantity='" + quantity + '\'' + - ", quantity_text='" + quantity_text + '\'' + - ", createtime='" + createtime + '\'' + - ", createtime_text='" + createtime_text + '\'' + - ", special='" + special + '\'' + - ", special_text='" + special_text + '\'' + - ", other='" + other + '\'' + - ", other_text='" + other_text + '\'' + - ", other_prefix='" + other_prefix + '\'' + - '}'; - } -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/ck/mapper/TagTemplateMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/ck/mapper/TagTemplateMapper.java deleted file mode 100644 index 85958078..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/ck/mapper/TagTemplateMapper.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.ruoyi.ck.mapper; - -import com.ruoyi.ck.domain.TagTemplate; - -import java.util.List; - -/** - * 标签打印记录Mapper接口 - * - * @author ruoyi - * @date 2021-07-26 - */ -public interface TagTemplateMapper -{ - /** - * 查询标签打印记录 - * - * @param id 标签打印记录ID - * @return 标签打印记录 - */ - public TagTemplate selectTagTemplateById(Long id); - - /** - * 查询标签打印记录列表 - * - * @param tagTemplate 标签打印记录 - * @return 标签打印记录集合 - */ - public List selectTagTemplateList(TagTemplate tagTemplate); - - /** - * 新增标签打印记录 - * - * @param tagTemplate 标签打印记录 - * @return 结果 - */ - public int insertTagTemplate(TagTemplate tagTemplate); - - /** - * 修改标签打印记录 - * - * @param tagTemplate 标签打印记录 - * @return 结果 - */ - public int updateTagTemplate(TagTemplate tagTemplate); - - /** - * 删除标签打印记录 - * - * @param id 标签打印记录ID - * @return 结果 - */ - public int deleteTagTemplateById(Long id); - - /** - * 批量删除标签打印记录 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - public int deleteTagTemplateByIds(String[] ids); - -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/ck/service/ITagTemplateService.java b/ruoyi-admin/src/main/java/com/ruoyi/ck/service/ITagTemplateService.java deleted file mode 100644 index a77eebe0..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/ck/service/ITagTemplateService.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.ck.service; - -import java.util.List; -import com.ruoyi.ck.domain.TagTemplate; - -/** - * 标签打印记录Service接口 - * - * @author ruoyi - * @date 2021-07-26 - */ -public interface ITagTemplateService -{ - /** - * 查询标签打印记录 - * - * @param id 标签打印记录ID - * @return 标签打印记录 - */ - public TagTemplate selectTagTemplateById(Long id); - - /** - * 查询标签打印记录列表 - * - * @param tagTemplate 标签打印记录 - * @return 标签打印记录集合 - */ - public List selectTagTemplateList(TagTemplate tagTemplate); - - /** - * 新增标签打印记录 - * - * @param tagTemplate 标签打印记录 - * @return 结果 - */ - public int insertTagTemplate(TagTemplate tagTemplate); - - /** - * 修改标签打印记录 - * - * @param tagTemplate 标签打印记录 - * @return 结果 - */ - public int updateTagTemplate(TagTemplate tagTemplate); - - /** - * 批量删除标签打印记录 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - public int deleteTagTemplateByIds(String ids); - - /** - * 删除标签打印记录信息 - * - * @param id 标签打印记录ID - * @return 结果 - */ - public int deleteTagTemplateById(Long id); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/ck/service/impl/TagTemplateServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/ck/service/impl/TagTemplateServiceImpl.java deleted file mode 100644 index 14da95ae..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/ck/service/impl/TagTemplateServiceImpl.java +++ /dev/null @@ -1,95 +0,0 @@ -package com.ruoyi.ck.service.impl; - -import com.ruoyi.ck.domain.TagTemplate; -import com.ruoyi.ck.mapper.TagTemplateMapper; -import com.ruoyi.ck.service.ITagTemplateService; -import com.ruoyi.common.core.text.Convert; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * 标签打印记录Service业务层处理 - * - * @author ruoyi - * @date 2021-07-26 - */ -@Service -public class TagTemplateServiceImpl implements ITagTemplateService -{ - @Autowired - private TagTemplateMapper tagTemplateMapper; - - /** - * 查询标签打印记录 - * - * @param id 标签打印记录ID - * @return 标签打印记录 - */ - @Override - public TagTemplate selectTagTemplateById(Long id) - { - return tagTemplateMapper.selectTagTemplateById(id); - } - - /** - * 查询标签打印记录列表 - * - * @param tagTemplate 标签打印记录 - * @return 标签打印记录 - */ - @Override - public List selectTagTemplateList(TagTemplate tagTemplate) - { - return tagTemplateMapper.selectTagTemplateList(tagTemplate); - } - - /** - * 新增标签打印记录 - * - * @param tagTemplate 标签打印记录 - * @return 结果 - */ - @Override - public int insertTagTemplate(TagTemplate tagTemplate) - { - return tagTemplateMapper.insertTagTemplate(tagTemplate); - } - - /** - * 修改标签打印记录 - * - * @param tagTemplate 标签打印记录 - * @return 结果 - */ - @Override - public int updateTagTemplate(TagTemplate tagTemplate) - { - return tagTemplateMapper.updateTagTemplate(tagTemplate); - } - - /** - * 删除标签打印记录对象 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - @Override - public int deleteTagTemplateByIds(String ids) - { - return tagTemplateMapper.deleteTagTemplateByIds(Convert.toStrArray(ids)); - } - - /** - * 删除标签打印记录信息 - * - * @param id 标签打印记录ID - * @return 结果 - */ - @Override - public int deleteTagTemplateById(Long id) - { - return tagTemplateMapper.deleteTagTemplateById(id); - } -} diff --git a/ruoyi-admin/src/main/resources/mapper/ck/TagTemplateMapper.xml b/ruoyi-admin/src/main/resources/mapper/ck/TagTemplateMapper.xml deleted file mode 100644 index f5241d04..00000000 --- a/ruoyi-admin/src/main/resources/mapper/ck/TagTemplateMapper.xml +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - select id, wlCode, batch, vendor, quantity, createtime, special, workformcode from tag_template - - - - - - - - - - - - - insert into tag_template - - wlCode, - batch, - vendor, - quantity, - createtime, - special, - workformcode, - - - #{wlCode}, - #{batch}, - #{vendor}, - #{quantity}, - #{createtime}, - #{special}, - #{workformcode}, - - - - - update tag_template - - wlCode = #{wlCode}, - batch = #{batch}, - vendor = #{vendor}, - quantity = #{quantity}, - createtime = #{createtime}, - special = #{special}, - workformcode = #{workformcode}, - - where id = #{id} - - - - delete from tag_template where id = #{id} - - - - delete from tag_template where id in - - #{id} - - - - \ No newline at end of file